:root {
  --ink: #101828;
  --muted: #667085;
  --line: #eaecf0;
  --bg: #f8f9fc;
  --paper: #ffffff;
  --purple: #6d5efc;
  --pink: #ee4b93;
  --grad: linear-gradient(90deg, #6d5efc 0%, #c44bdc 50%, #f04b8d 100%);
  --soft: #f2f4f7;
  --ok: #12b76a;
  --bad: #f04438;
  --shadow: 0 8px 24px rgba(16, 24, 40, .05);
  --radius: 20px;
  --sans: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --page-max: 100%;
  --page-gutter: clamp(12px, 1.8vw, 28px);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { overflow-x: hidden; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-text-size-adjust: 100%; width: 100%; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
.wrap { width: calc(100% - (var(--page-gutter) * 2)); max-width: none; margin: 0 auto; }
.ico { display: inline-block; vertical-align: -3px; flex: 0 0 auto; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; }
.logo-mark { height: 32px !important; width: auto; display: block; }
.logo-full { height: 40px; width: auto; display: block; }
.logo-compact .logo-mark { height: 34px !important; }
.word { font-size: 20px; letter-spacing: -.04em; color: #101828; }
.word b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn-grad { background: var(--grad); color: #fff; }
.btn-line { background: #fff; border: 1px solid #d0d5dd; color: var(--ink); }
.btn-ghost { background: #fff; border: 1px solid #d6ccff; color: var(--purple); }
.btn-wide { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; font-weight: 650; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 800; color: #98a2b3; }
.muted { color: var(--muted); }
.ok { color: var(--ok); font-weight: 700; }
.bad { color: var(--bad); }
.accent { color: var(--purple); }
.accent-pink { color: var(--pink); }
.flash, .errors { padding: 12px 14px; border-radius: 14px; margin: 0 0 16px; }
.flash { background: #ecfdf3; color: var(--ok); }
.flash.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.errors { background: #fff1f2; color: var(--bad); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #f2f4f7; color: #475467; }
.pill.ok, .pill.active { background: #dcfae6; color: #027a48; }
.pill.warn { background: #fef3f2; color: #b42318; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea,
.input, select { width: 100%; border: 1px solid #eaecf0; background: #f9fafb; border-radius: 999px; padding: 12px 16px; outline: none; }
.field textarea, textarea { border-radius: 16px; min-height: 140px; resize: vertical; }
.field-ico { position: relative; display: block; }
.field-ico > .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #98a2b3; pointer-events: none; z-index: 1; }
.field-ico input, .field-ico select { padding-left: 42px; }
.field-ico:has(.toggle-eye) input,
.field-ico:has(.eye-btn) input { padding-right: 46px; }
.field-ico .toggle-eye,
.field-ico .eye-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #98a2b3;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 8px;
}
.field-ico .toggle-eye:hover,
.field-ico .eye-btn:hover { color: #667085; background: #f2f4f7; }
.field-ico .toggle-eye .ico,
.field-ico .eye-btn .ico {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  pointer-events: none;
  color: inherit;
}
.card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.02em; }
.card > .muted { margin-top: 0; }
.table-wrap { overflow: auto; }
.btn-navy { background: var(--grad); color: #fff; }
.btn-gold { background: #fff; border: 1px solid #d6ccff; color: var(--purple); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.stat .meta { display: grid; gap: 2px; min-width: 0; }
.stat .meta b { font-size: 20px; letter-spacing: -.03em; }
.feat { display: flex; gap: 12px; align-items: flex-start; }
.feat .bubble { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #f3efff; color: var(--purple); flex: 0 0 auto; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.grid-split { grid-template-columns: 1.25fr .75fr; }
.filter { max-width: 260px; }
.page-head { margin-bottom: 20px; }
.page-head .muted { margin: 4px 0 0; }
h2 { letter-spacing: -.03em; }
.top-tools { display: flex; align-items: center; gap: 10px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.table th { color: var(--muted); font-size: 12px; font-weight: 700; }

.pub-nav {
  --pub-nav-h: 68px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,252,255,.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid rgba(226, 212, 245, .45);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.lp-page .pub-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(243, 232, 255, .55) 0%, rgba(250, 245, 255, .2) 70%, transparent 100%);
  border-bottom-color: transparent;
  box-shadow: none;
}
.lp-page .pub-nav.is-solid {
  position: fixed;
  background: rgba(250, 245, 255, .94);
  border-bottom-color: rgba(226, 212, 245, .55);
  box-shadow: 0 8px 28px rgba(88, 28, 135, .06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.pub-nav > .wrap { padding-block: 0; }
.pub-nav-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.4vw, 18px);
  padding: 14px 0;
  min-height: var(--pub-nav-h);
  width: 100%;
  min-width: 0;
}
.pub-nav-bar > .logo { flex: 0 0 auto; margin-right: auto; }
.pub-foot .wrap { display: block; padding: 14px 0; }
.nav-links {
  display: flex;
  gap: clamp(10px, 1.4vw, 22px);
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  color: #475467;
  font-weight: 600;
  font-size: clamp(12.5px, 1.15vw, 14px);
}
.nav-links > a:not(.btn):not(.lp-nav-login) {
  position: relative;
  padding: 6px 2px;
  color: #475569;
  transition: color .2s;
}
.nav-links > a:not(.btn):not(.lp-nav-login):hover { color: #7c3aed; }
.lp-nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.9)) padding-box,
    linear-gradient(90deg, #8b5cf6, #ec4899) border-box;
  color: #6d28d9;
  font-weight: 700;
  transition: background .2s, transform .15s;
}
.lp-nav-login:hover {
  background:
    linear-gradient(#faf5ff, #faf5ff) padding-box,
    linear-gradient(90deg, #8b5cf6, #ec4899) border-box;
}
.lp-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex: 0 0 auto;
  margin-left: auto;
}
.lp-nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 99px;
  background: #334155;
  transition: transform .2s ease, opacity .2s ease;
}
body.nav-open .lp-nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .lp-nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .lp-nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.pub-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(2px);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.pub-nav-backdrop[hidden] { display: none !important; }
body.nav-open .pub-nav-backdrop {
  display: block;
  pointer-events: auto;
  opacity: 1;
}
.hero { padding: 70px 0 30px; background: #fff; }
.hero h1 { font-size: clamp(40px, 5.4vw, 62px); line-height: 1.12; letter-spacing: -.02em; margin: 12px 0 16px; font-weight: 800; max-width: 640px; }
.hero-art { border-radius: 28px; min-height: 360px; background: #eee center/cover no-repeat; }
.section { padding: 56px 0; }
.pub-foot { background: #fff; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.trust { display: flex; gap: 20px; margin-top: 20px; font-weight: 650; color: #475467; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Auth pages (Figma match — full bg image) ---------- */
.auth-page {
  margin: 0;
  min-height: 100vh;
  background: #faf9fc;
  overflow-x: hidden;
}
.auth-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 65% 50% at 10% 90%, rgba(236, 72, 153, .04), transparent 55%),
    radial-gradient(ellipse 50% 40% at 82% 12%, rgba(139, 92, 246, .05), transparent 50%),
    #faf9fc;
  isolation: isolate;
}
.auth-shell::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(64vw, 900px);
  height: min(66vh, 600px);
  background-image: var(--auth-bg);
  background-repeat: no-repeat;
  background-position: left 8% bottom;
  background-size: cover;
  -webkit-mask-image:
    linear-gradient(90deg, #000 0%, #000 52%, transparent 96%),
    linear-gradient(180deg, transparent 0%, #000 16%, #000 100%);
  mask-image:
    linear-gradient(90deg, #000 0%, #000 52%, transparent 96%),
    linear-gradient(180deg, transparent 0%, #000 16%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  pointer-events: none;
  z-index: 0;
}
.auth-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900' fill='none'%3E%3Cpath d='M640 40C860 130 1040 80 1260 170C1360 220 1400 300 1440 380' stroke='%23c4b5fd' stroke-width='1.2' stroke-opacity='.55'/%3E%3Cpath d='M580 100C820 190 1020 130 1240 230' stroke='%23e879f9' stroke-width='1' stroke-opacity='.35'/%3E%3Cpath d='M720 0C900 90 1100 40 1320 140' stroke='%23ddd6fe' stroke-width='1' stroke-opacity='.4'/%3E%3C/svg%3E")
    58% 0% / min(1100px, 78vw) auto no-repeat;
  opacity: .95;
}
.auth-bar {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1280px, calc(100% - 72px));
  margin: 0 auto;
  padding: 26px 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.auth-bar .logo-full { height: 42px; }
.auth-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #101828;
  font-size: 14px;
  font-weight: 600;
}
.auth-bar-right .muted { color: #344054; font-weight: 600; }
.auth-bar-right .btn-line,
.auth-bar-right .auth-register,
.auth-bar-right .auth-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1.5px solid #7c3aed;
  background: #fff;
  color: #7c3aed;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: none;
}
.auth-bar-right .btn-line:hover,
.auth-bar-right .auth-register:hover,
.auth-bar-right .auth-top-btn:hover {
  background: #faf5ff;
  border-color: #6d28d9;
  color: #6d28d9;
}
.auth-split {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 460px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  width: min(1280px, calc(100% - 72px));
  margin: 0 auto;
  padding: 18px 0 40px;
}
.auth-visual {
  max-width: 580px;
  padding: 12px 0 40px;
  position: relative;
  z-index: 1;
}
.auth-kicker {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 800;
  color: #9333ea;
}
.auth-visual h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.22;
  letter-spacing: -.03em;
  font-weight: 800;
  color: #101828;
  max-width: min(520px, 100%);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.auth-visual h1 .accent {
  color: #7c3aed;
  background: none;
  -webkit-text-fill-color: #7c3aed;
}
.auth-visual h1 .accent-pink {
  color: #db2777;
  background: none;
  -webkit-text-fill-color: #db2777;
}
.auth-support {
  margin: 0 0 22px;
  color: #667085;
  font-size: 15px;
  line-height: 1.55;
  max-width: min(46ch, 100%);
  overflow-wrap: anywhere;
}
.auth-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  color: #7c3aed;
  font-weight: 700;
  font-size: 15px;
}
.auth-trust span { display: inline-flex; align-items: center; gap: 8px; }
.auth-trust .ico { color: #7c3aed; }
.auth-script {
  position: absolute;
  left: clamp(180px, 22vw, 280px);
  bottom: 36px;
  margin: 0;
  max-width: 280px;
  font-family: "Caveat", cursive;
  font-size: clamp(26px, 2.3vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  color: #5b21b6;
  transform: rotate(-7deg);
  z-index: 2;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
}
.auth-script::after {
  content: "";
  display: block;
  width: 82%;
  height: 2px;
  margin-top: 4px;
  background: linear-gradient(90deg, #a855f7, transparent);
  border-radius: 99px;
  opacity: .65;
}
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 100%;
  padding: 8px 0;
  min-width: 0;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  min-width: 0;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(16, 24, 40, .1);
  border: 1px solid #efeef5;
  padding: 32px 30px 28px;
  overflow: hidden;
}
.auth-card .flash,
.auth-card .errors {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.auth-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -.025em;
  font-weight: 800;
  color: #101828;
  line-height: 1.25;
}
.auth-card > .muted {
  margin: 0 0 20px;
  font-size: 13.5px;
  color: #98a2b3;
  line-height: 1.45;
}
.auth-card .field { margin-bottom: 14px; }
.auth-card .field label {
  color: #101828;
  font-size: 13.5px;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}
.auth-card .field-ico { position: relative; }
.auth-card .field-ico > .ico { color: #98a2b3; left: 14px; }
.auth-card .field-ico input {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  padding: 12px 44px 12px 42px;
  min-height: 48px;
  font-size: 14px;
}
.auth-card .field-ico input:focus {
  border-color: #c4b5fd;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .12);
  outline: none;
}
.auth-card .field-ico .toggle-eye {
  right: 6px;
  width: 34px;
  height: 34px;
  color: #98a2b3;
}
.auth-card .btn-wide {
  min-height: 50px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: .01em;
  background: linear-gradient(90deg, #8b5cf6 0%, #d946ef 48%, #ec4899 100%);
  box-shadow: 0 10px 24px rgba(168, 85, 247, .22);
}
.auth-forgot {
  display: block;
  text-align: right;
  margin: -4px 0 16px;
  color: #8b5cf6;
  font-weight: 700;
  font-size: 13.5px;
}
.auth-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 16px;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}
.auth-agree input { margin-top: 2px; accent-color: #8b5cf6; }
.auth-agree a {
  color: #8b5cf6;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: #c084fc;
}
.auth-foot-link {
  margin: 16px 0 0;
  text-align: center;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}
.auth-foot-link a,
.auth-foot-link .otp-link {
  color: #c026a4;
  font-weight: 800;
}
.auth-center {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: #fff;
  position: relative;
}
.auth-center-brand { position: absolute; top: 24px; left: 28px; }
.auth-card-center { text-align: center; max-width: 460px; }

.brand-chip { background: #fff; border-radius: 14px; padding: 6px 10px; display: inline-flex; }

.app-shell {
  min-height: 100vh;
  background: #f3f5fa;
  --p-bg: #f3f5fa;
  --p-surface: #ffffff;
  --p-border: #e8ecf4;
  --p-ink: #0f172a;
  --p-muted: #667085;
  --p-soft: #f8fafc;
  --p-radius: 16px;
  --p-radius-sm: 12px;
  --p-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  --p-accent: #7c3aed;
  --p-grad: linear-gradient(90deg, #8b5cf6 0%, #d946ef 48%, #ec4899 100%);
}
.app-frame {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
}
.app-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  background: var(--p-bg);
}
.app-top {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 12px 28px;
  border-bottom: 1px solid var(--p-border);
  position: sticky;
  top: 0;
  z-index: 40;
  flex-shrink: 0;
}
.app-top-spacer { flex: 1; }
.portal-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--p-border);
  border-radius: 12px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-right: auto;
  flex-shrink: 0;
}
.portal-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: #344054;
  transition: transform .2s ease, opacity .2s ease;
}
.app-frame.menu-open .portal-menu-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.app-frame.menu-open .portal-menu-btn span:nth-child(2) { opacity: 0; }
.app-frame.menu-open .portal-menu-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.portal-side-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(2px);
  pointer-events: none;
  opacity: 0;
}
.portal-side-backdrop[hidden] { display: none !important; }
.app-frame.menu-open .portal-side-backdrop {
  display: block;
  pointer-events: auto;
  opacity: 1;
}
body.portal-menu-lock { overflow: hidden; }
.app-body {
  display: contents;
}
.side {
  padding: 18px 12px 0;
  background: var(--p-surface);
  border-right: 1px solid var(--p-border);
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-self: start;
}
.side .brand,
.side .logo {
  display: flex;
  margin: 4px 10px 18px;
  flex-shrink: 0;
}
.side-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 4px 28px;
  scrollbar-width: thin;
  scrollbar-color: #d7dbe8 transparent;
}
.side-nav::-webkit-scrollbar { width: 5px; }
.side-nav::-webkit-scrollbar-thumb { background: #d7dbe8; border-radius: 999px; }
.side .group {
  font-size: 10.5px;
  font-weight: 800;
  color: #98a2b3;
  letter-spacing: .1em;
  padding: 18px 14px 8px;
  text-transform: uppercase;
}
.side-nav > .group:first-child { padding-top: 2px; }
.side a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  color: #667085;
  font-weight: 650;
  margin-bottom: 3px;
  font-size: 13.5px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.side a .ico { color: #98a2b3; }
.side a:hover { background: var(--p-soft); color: #344054; }
.side a:hover .ico { color: var(--p-accent); }
.side a.on {
  background: var(--p-grad);
  color: #fff;
  box-shadow: 0 8px 18px rgba(168, 85, 247, .28);
}
.side a.on:hover { color: #fff; }
.side a.on .ico { color: #fff; }
.main {
  padding: 24px 28px 56px;
  min-width: 0;
  width: 100%;
  max-width: none;
  flex: 1;
  box-sizing: border-box;
}
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--p-accent);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  margin-bottom: 10px;
}
.page-head { margin-bottom: 22px; }
.page-title { margin: 0 0 6px; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.03em; font-weight: 800; color: var(--p-ink); }
.page-sub { margin: 0; max-width: 70ch; color: var(--p-muted); font-size: 14.5px; line-height: 1.55; }
.top-tools { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--p-border);
  background: #fff;
  display: grid;
  place-items: center;
  color: #667085;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.icon-btn:hover { background: var(--p-soft); border-color: #ddd6fe; color: var(--p-accent); }
.notif-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f04438;
  border: 2px solid #fff;
}
.user-menu { position: relative; }
.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  font-family: inherit;
  transition: background .15s ease, border-color .15s ease;
}
.user-menu-btn:hover { background: #fff; border-color: var(--p-border); }
.user-menu-btn strong { font-size: 13.5px; color: var(--p-ink); font-weight: 750; }
.user-menu-btn .avatar,
.user-menu-btn img.avatar {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--p-grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.user-menu-btn .ico { color: #98a2b3; transition: transform .18s ease; }
.user-menu.open .user-menu-btn .ico { transform: rotate(180deg); }
.user-menu-drop {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 200px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, .12);
  border: 1px solid var(--p-border);
  padding: 8px;
  z-index: 80;
}
.user-menu.open .user-menu-drop { display: grid; }
.user-menu-drop a,
.user-menu-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #344054;
  font-weight: 650;
  font-size: 14px;
  text-decoration: none;
  border: 0;
  background: none;
  width: 100%;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.user-menu-drop a:hover,
.user-menu-logout:hover { background: var(--p-soft); }
.user-menu-drop a .ico { color: var(--p-accent); }
.user-menu-drop hr { border: 0; border-top: 1px solid var(--p-border); margin: 4px 0; }
.user-menu-logout { color: #f04438 !important; }
.user-menu-logout .ico { color: #f04438; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat {
  background: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
a.stat.is-link { cursor: pointer; }
a.stat.is-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .1);
  border-color: #e8ecf4;
}
.stat .bubble { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #eef4ff; color: var(--purple); flex: 0 0 auto; }
.stat .bubble.ok { background: #ecfdf3; color: #027a48; }
.stat .bubble.tone-green { background: #ecfdf3; color: #027a48; }
.stat .bubble.tone-blue { background: #eff6ff; color: #2563eb; }
.stat .bubble.tone-amber { background: #fff7ed; color: #c2410c; }
.stat .bubble.tone-red { background: #fef2f2; color: #dc2626; }
.stat .bubble.tone-purple { background: #f5f3ff; color: #7c3aed; }
.stat b { display: block; font-size: 18px; margin-top: 2px; }
.stat .stat-cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #7c3aed;
}
.stat.status-pending { background: linear-gradient(180deg, #f8fbff 0%, #fff 70%); }
.stat.status-active { background: linear-gradient(180deg, #f4fdf8 0%, #fff 70%); }
.stat.status-under-notification { background: linear-gradient(180deg, #fffaf0 0%, #fff 70%); }
.stat.status-escalated { background: linear-gradient(180deg, #fff7f7 0%, #fff 70%); }
.stat.status-released { background: linear-gradient(180deg, #faf6ff 0%, #fff 70%); }

.status-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 4px;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.status-step {
  text-align: center;
  padding: 8px 4px;
  border-radius: 12px;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 600;
  position: relative;
}
.status-step .dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e4e7ec;
  margin: 0 auto 6px;
}
.status-step .txt { display: block; line-height: 1.25; }
.status-step.is-on {
  color: #101828;
  background: #f8fafc;
}
.status-step.is-on .dot { box-shadow: 0 0 0 4px rgba(124, 58, 237, .12); }
.status-step.status-active.is-on .dot { background: #16a34a; }
.status-step.status-pending.is-on .dot { background: #4f74e3; }
.status-step.status-under-notification.is-on .dot { background: #d97706; }
.status-step.status-escalated.is-on .dot { background: #ef4444; }
.status-step.status-released.is-on .dot { background: #8b3fd9; }
.checkin-banner {
  background: linear-gradient(105deg, #6d5efc 0%, #9b5cf6 38%, #d946ef 68%, #f9a8d4 100%);
  border-radius: 22px; padding: 22px 26px; color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 16px 0 18px;
}
.checkin-left { display: flex; align-items: center; gap: 16px; }
.checkin-left h2 { margin: 0 0 4px; font-size: 22px; }
.checkin-left p { margin: 0; opacity: .92; font-size: 14px; }
.checkin-ring {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.22);
  display: grid; place-items: center; border: 3px solid rgba(255,255,255,.55); flex: 0 0 auto;
}
.checkin-right { text-align: right; max-width: 240px; }
.checkin-right p { margin: 0 0 10px; font-size: 13.5px; opacity: .95; }
.checkin-cta { background: #fff; color: #6d28d9; font-weight: 800; border-radius: 999px; min-height: 44px; padding: 0 22px; border: 0; cursor: pointer; }
.userchip { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; }
.avatar.lg { width: 72px; height: 72px; font-size: 24px; }
.feat h3 { margin: 0 0 4px; }
select[multiple] { border-radius: 16px; }
.mini { background: #f8f9fc; border-radius: 16px; padding: 14px; }
.progress { height: 7px; background: #eaecf0; border-radius: 99px; overflow: hidden; }
.progress b { display: block; height: 100%; background: var(--grad); }
.ring { width: 78px; height: 78px; border-radius: 50%; background: conic-gradient(#6d5efc calc(var(--p) * 1%), #eee8ff 0); display: grid; place-items: center; }
.ring span { width: 58px; height: 58px; background: #fff; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--ink); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions.end { justify-content: flex-end; }
.actions.between { justify-content: space-between; }
.actions .field-ico { flex: 1 1 180px; min-width: 160px; }
.pay-opt { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; cursor: pointer; }
.pay-opt input { accent-color: #7c3aed; }
.pay-opt.on, .pay-opt:has(input:checked) { background: linear-gradient(90deg, #f5f1ff, #fff); border-color: #d9ceff; }
.row-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.setup-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 16px; border-radius: 16px; background: #f8f9fc; margin-top: 12px; }
.pill.purple { background: #f3e8ff; color: #7c3aed; }
.pill.relative { background: #f3e8ff; color: #7c3aed; }
.pill.friend { background: #ecfdf3; color: #027a48; }
.pill.lawyer { background: #eff8ff; color: #175cd3; }

@media (max-width: 980px) {
  .auth-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .auth-panel { justify-content: stretch; order: -1; }
  .auth-card { max-width: none; }
}
@media (max-width: 860px) {
  .auth-split, .grid-2, .grid-3, .hero .grid { grid-template-columns: 1fr; }
  .auth-shell::before {
    width: 100%;
    height: min(42vh, 320px);
    background-size: cover;
    background-position: left center;
    opacity: .55;
  }
  .auth-shell::after { opacity: .4; }
  .auth-bar,
  .auth-split {
    width: min(100%, calc(100% - 32px));
  }
  .auth-split {
    grid-template-columns: 1fr;
    padding: 8px 0 28px;
    gap: 18px;
  }
  .auth-bar { padding-top: 18px; }
  .auth-visual { padding: 0 0 28px; max-width: none; }
  .auth-visual h1 { max-width: none; font-size: 28px; }
  .auth-script {
    position: static;
    transform: rotate(-3deg);
    margin: 18px 0 0;
    max-width: 240px;
  }
  .auth-panel { justify-content: stretch; order: -1; }
  .auth-card { max-width: none; }
  .auth-bar-right .muted { display: none; }
  .checkin-banner, .row-card, .setup-row, .list-row { flex-direction: column; align-items: flex-start; grid-template-columns: 1fr; }
  .grid-split { grid-template-columns: 1fr; }
  .stats, .fg-grid-2, .fg-grid-split, .fg-keeper-grid, .fg-form-layout { grid-template-columns: 1fr; }
  .status-track { grid-template-columns: 1fr 1fr; }
}


/* ---------- OTP verify screens ---------- */
.otp-page {
  margin: 0;
  min-height: 100vh;
  background: #f5f6fb;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}
.otp-top {
  padding: 28px clamp(20px, 4vw, 48px) 0;
}
.otp-wrap {
  min-height: calc(100vh - 90px);
  display: grid;
  place-items: center;
  padding: 24px 16px 40px;
}
.otp-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(16, 24, 40, .08);
  border: 1px solid rgba(226, 232, 240, .9);
  padding: 28px 28px 24px;
}
.otp-card-center { text-align: center; }
.otp-illust {
  display: block;
  width: min(220px, 70%);
  margin: 0 auto 18px;
  height: auto;
}
.otp-card-center h1,
.otp-card-head h2 {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -.03em;
  font-weight: 800;
  color: #101828;
}
.otp-lead, .otp-hint, .otp-card-head .muted, .otp-intro {
  margin: 0 0 8px;
  color: #667085;
  font-size: 14px;
  line-height: 1.55;
}
.otp-dest-line {
  margin: 0 0 14px;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.otp-dest {
  display: block;
  color: #8b5cf6;
  font-weight: 800;
  font-size: 14.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.otp-hint { margin-bottom: 18px; font-size: 13px; }
.otp-demo {
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #ecfdf3;
  color: #027a48;
  font-size: 13px;
}
.otp-boxes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 18px;
}
.otp-box {
  width: 100%;
  aspect-ratio: 1;
  max-height: 56px;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: #101828;
  border: 1.5px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  outline: none;
}
.otp-box:focus,
.otp-box.filled {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .12);
}
.otp-submit { margin-top: 4px; }
.otp-resend {
  margin: 16px 0 4px;
  color: #667085;
  font-size: 13.5px;
}
.otp-link {
  border: 0;
  background: none;
  color: #c026a4;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.otp-link:disabled {
  color: #c026a4;
  opacity: .55;
  cursor: not-allowed;
}
.otp-timer-line {
  margin: 0 0 16px;
  color: #98a2b3;
  font-size: 12.5px;
}
.otp-sep {
  border: 0;
  border-top: 1px solid #eef2f7;
  margin: 18px 0 14px;
}
.otp-secure {
  margin: 0 0 12px;
  color: #475467;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.otp-change {
  border: 0;
  background: none;
  color: #8b5cf6;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.otp-card-head { margin-bottom: 8px; min-width: 0; }
.otp-card-head h2 { margin-bottom: 10px; }
.auth-card .otp-boxes { margin-top: 4px; }
.auth-card .otp-card-head + .otp-demo { margin-top: 4px; }
.hidden { display: none !important; }


/* ---------- Portal setup shell (no sidebar) ---------- */
.setup-shell { min-height: 100vh; background: #f4f6fb; }
.setup-top { padding: 16px 0 6px; }
.setup-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.setup-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.setup-top-actions .setup-logout {
  margin: 0;
  display: inline-flex;
}
.setup-top-actions .btn {
  white-space: nowrap;
}
.setup-top-cta { min-height: 40px; padding: 0 16px; font-size: 13.5px; }
.setup-body { padding: 10px 0 48px; }
.setup-page-head { margin: 6px 0 16px; }
.setup-page-head h1 { margin: 6px 0 4px; font-size: 26px; }
.setup-back {
  display: inline-flex;
  color: #7c3aed;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
}
.setup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}
.setup-main { padding: 24px 24px 18px; }
.setup-progress-head { margin-bottom: 4px; }
.setup-progress-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
}
.setup-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f3e8ff;
  color: #7c3aed;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.setup-progress-row strong {
  color: #475467;
  font-size: 13.5px;
  font-weight: 650;
}
.setup-progress-bar {
  flex: 1 1 160px;
  min-width: 140px;
  height: 8px;
  border-radius: 99px;
  background: #eceff5;
  overflow: hidden;
}
.setup-progress-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #d946ef);
}
.setup-title {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  color: #0f172a;
}
.setup-sub {
  margin: 0;
  color: #64748b;
  font-size: 14.5px;
  max-width: 52ch;
}
.setup-steps { display: grid; gap: 10px; margin-top: 18px; }
.setup-step {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #eef2f7;
  background: #fafbff;
}
.setup-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef4ff;
  color: #4f46e5;
  flex: 0 0 auto;
}
.setup-ico.soft { background: #eef4ff; color: #4f46e5; }
.setup-copy strong { display: block; font-size: 15px; color: #0f172a; }
.setup-copy p { margin: 3px 0 0; color: #667085; font-size: 13px; line-height: 1.45; }
.setup-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.setup-status.ok { background: #ecfdf3; color: #027a48; }
.setup-status.bad { background: #fff1f2; color: #b42318; }
.setup-status.warn { background: #f2f4f7; color: #667085; }
.setup-action { white-space: nowrap; min-height: 40px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.setup-help {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #eef4ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.setup-help-copy { display: flex; align-items: center; gap: 12px; }
.setup-help-copy strong { display: block; font-size: 14.5px; }
.setup-help-copy p { margin: 2px 0 0; color: #667085; font-size: 13px; }
.setup-help-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
  min-width: min(280px, 100%);
}
.setup-help-card b { display: block; font-size: 13px; color: #0f172a; }
.setup-help-card p { margin: 1px 0 0; color: #667085; font-size: 12px; }
.setup-help-add {
  border: 0;
  background: none;
  color: #4f46e5;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
  padding: 0;
}
.setup-foot {
  margin: 16px 0 0;
  text-align: center;
  color: #98a2b3;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.setup-side { padding: 22px; }

/* Setup page cart (main sidebar — not in modals) */
.setup-cart {
  padding: 20px;
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e8ecf4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
}
.setup-cart-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef2f7;
}
.setup-cart-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}
.setup-cart-head .muted {
  margin: 2px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
}
.setup-cart-badge {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.setup-cart-boosts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
}
.setup-cart-boosts.is-hidden,
.setup-cart-boosts[hidden] { display: none !important; }
.setup-cart-boost {
  flex: 1 1 calc(50% - 4px);
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}
.setup-cart-boost.is-hidden,
.setup-cart-boost[hidden] { display: none !important; }
.setup-cart-boost-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #ede9fe;
  color: #7c3aed;
  flex-shrink: 0;
}
.setup-cart-boost-ico.is-pdf {
  background: #ffedd5;
  color: #ea580c;
}
.setup-cart-boost strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}
.setup-cart-boost .muted {
  display: block;
  font-size: 11px;
  line-height: 1.3;
}
.setup-cart-body {
  padding: 8px 0 4px;
  min-height: 60px;
  max-height: min(42vh, 360px);
  overflow-y: auto;
}
.setup-cart-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid #f2f4f7;
}
.setup-cart-row:last-child { border-bottom: 0; }
.setup-cart-row-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f8fafc;
  color: #64748b;
  flex-shrink: 0;
}
.setup-cart-info {
  flex: 1;
  min-width: 0;
}
.setup-cart-info strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.setup-cart-info .muted {
  font-size: 12px;
  color: #667085;
}
.setup-cart-remove {
  border: 0;
  background: #f8fafc;
  color: #98a2b3;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  flex: 0 0 auto;
}
.setup-cart-remove:hover {
  background: #fef3f2;
  color: #f04438;
}
.setup-cart-empty {
  text-align: center;
  padding: 20px 8px;
  color: #98a2b3;
}
.setup-cart-empty svg { opacity: .45; margin-bottom: 8px; }
.setup-cart-empty p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #667085;
}
.setup-cart-empty .muted {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}
.setup-cart-foot {
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
  display: grid;
  gap: 10px;
}
.setup-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #475467;
}
.setup-cart-total strong {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}
.setup-cart-hint {
  margin: 0;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.45;
  color: #94a3b8;
}
.setup-cart-link {
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #7c3aed;
  text-decoration: none;
}
.setup-cart-link:hover { text-decoration: underline; }
.setup-tips.compact {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
  gap: 10px;
}
.setup-tips.compact li {
  font-size: 12.5px;
  color: #667085;
}
.setup-cart-limit-card {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #faf5ff, #f0fdf4);
  border: 1px solid #e9d5ff;
}
.setup-cart-limit-card.is-hidden,
.setup-cart-limit-card[hidden] { display: none !important; }
.setup-cart-limit-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #7c3aed;
  margin-bottom: 4px;
}
.setup-cart-limit-card strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}
.setup-cart-limit-card .muted { font-size: 12px; }
.setup-cart-row-end {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.setup-cart-qty {
  display: flex;
  align-items: center;
  gap: 4px;
}
.setup-cart-qty-badge {
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 7px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.setup-qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #c4b5fd;
  border-radius: 8px;
  background: #fff;
  color: #7c3aed;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}
.setup-qty-btn:hover { background: #faf5ff; }
.setup-cart-price {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}
.setup-cart-sub { display: block; font-size: 12px; margin-top: 2px; }
.app-toast,
.setup-toast,
.msg-pane .setup-toast {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 3000;
  max-width: min(92vw, 420px);
  padding: 12px 18px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.app-toast.is-on,
.setup-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.app-toast.is-success { background: linear-gradient(135deg, #059669, #047857); }
.app-toast.is-error { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.app-notice { z-index: 3100; }
.app-notice-panel { padding: 22px 22px 18px; }
.app-notice-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.app-notice-head h4 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.02em;
  color: #0f172a;
}
.app-notice-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #a78bfa, #6d28d9);
  box-shadow: 0 8px 18px rgba(109, 40, 217, .22);
}
.app-notice-msg {
  margin: 0 0 18px;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
}
.app-notice-actions { margin-top: 4px; }
.pill.is-hidden { display: none !important; }
.msg-limit-breakdown {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.msg-limit-parts {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
}
.msg-limit-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.msg-limit-banner-text strong { font-size: 13px; color: #9a3412; }
.msg-limit-banner-text span { font-size: 12px; color: #b45309; }
.setup-side-illust {
  display: block;
  width: min(220px, 100%);
  height: auto;
  margin: 0 auto 14px;
  object-fit: contain;
}
.setup-side h3 { margin: 0 0 6px; font-size: 20px; color: #0f172a; }
.setup-side .muted { margin: 0; color: #64748b; font-size: 14px; }
.setup-tips {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.setup-tips li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #475467;
  font-size: 13.5px;
  line-height: 1.45;
}
.setup-tips li svg { color: #7c3aed; flex: 0 0 auto; margin-top: 2px; }
.setup-tips b { color: #0f172a; }
.setup-side-note {
  margin: 22px 0 0;
  color: #8b5cf6;
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
}
.setup-side-note span { color: #ec4899; }
@media (max-width: 820px) {
  .setup-layout { grid-template-columns: 1fr; }
  .setup-cart { position: static; order: -1; }
  .setup-step { grid-template-columns: auto 1fr; }
  .setup-status { justify-self: start; }
  .setup-action { grid-column: 2; justify-self: start; }
  .setup-help { flex-direction: column; align-items: stretch; }
  .setup-top-cta { display: none; }
}

/* ---------- Landing page (full-screen + responsive) ---------- */
.lp-page {
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(236, 72, 153, .08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 20%, rgba(139, 92, 246, .07), transparent 45%),
    #fff;
  overflow-x: hidden;
  width: 100%;
}
.lp-page .wrap,
.lp-page .lp-hero-inner {
  width: 100%;
  max-width: none;
  padding-inline: clamp(12px, 1.6vw, 28px);
  box-sizing: border-box;
}
.lp-page > .lp-section:first-child {
  padding-top: calc(88px + env(safe-area-inset-top, 0px));
}

.lp-kicker {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 800;
  color: #9333ea;
}
.lp-kicker.pink { color: #db2777; }
.lp-lead { color: #64748b; font-size: clamp(15px, 1.3vw, 17px); line-height: 1.7; margin: 0; max-width: 52ch; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-btn-lg { min-height: 52px; padding: 0 26px; font-size: 15px; }

.lp-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 40% at 20% 0%, rgba(233, 213, 255, .55), transparent 55%),
    radial-gradient(ellipse 50% 35% at 80% 5%, rgba(251, 207, 232, .35), transparent 50%),
    linear-gradient(105deg, #faf8ff 0%, #fff 36%, rgba(255,255,255,.65) 52%, transparent 70%);
}
.lp-hero-media {
  position: absolute;
  inset: 0;
  background-position: 72% center;
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 26%, #000 46%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 26%, #000 46%, #000 100%);
}
.lp-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,252,255,.28) 0%, transparent 18%, transparent 82%, rgba(255,255,255,.12) 100%);
  pointer-events: none;
}
.lp-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: calc(88px + env(safe-area-inset-top, 0px)) clamp(12px, 1.6vw, 28px) clamp(48px, 8vh, 88px);
  box-sizing: border-box;
}
.lp-hero-copy {
  max-width: min(560px, 100%);
  padding: 8px 28px 8px 0;
}
.lp-hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.12;
  letter-spacing: -.04em;
  font-weight: 800;
  color: #0f172a;
}
.lp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.lp-btn-play {
  background: rgba(255,255,255,.82);
  border: 1.5px solid transparent;
  color: #6d28d9;
  box-shadow: inset 0 0 0 1.5px rgba(168, 85, 247, .5);
  backdrop-filter: blur(8px);
}
.lp-btn-play .play {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  font-size: 9px;
}
.lp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: #8b5cf6;
  font-weight: 700;
  font-size: 13.5px;
}
.lp-trust span { display: inline-flex; align-items: center; gap: 7px; }
.lp-float-card {
  position: absolute;
  right: max(24px, 4%);
  bottom: clamp(24px, 5vh, 56px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .16);
  max-width: 268px;
  z-index: 3;
  animation: lp-float-in .7s ease .35s both;
  pointer-events: none;
}
@keyframes lp-float-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.lp-float-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: 0 0 auto;
  background-color: #d1fae5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='15' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M4 10h16'/%3E%3C/svg%3E");
  background-size: 20px 20px;
  background-position: center;
  background-repeat: no-repeat;
}
.lp-float-card strong { display: block; font-size: 14px; font-weight: 800; color: #0f172a; letter-spacing: -.01em; }
.lp-float-card span { display: block; font-size: 12px; color: #64748b; margin-top: 2px; }

.lp-section { padding: clamp(64px, 9vw, 108px) 0; }
.lp-how {
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(243, 232, 255, .45), transparent 60%),
    #fff;
  width: 100%;
}
.lp-how > .wrap {
  width: 100%;
  max-width: none;
  padding-inline: clamp(12px, 1.6vw, 28px);
  box-sizing: border-box;
}
.lp-how-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
.lp-how-head h2 { margin: 0 0 12px; font-size: clamp(28px, 3.5vw, 42px); letter-spacing: -.035em; color: #0f172a; }
.lp-how-head p { margin: 0 auto; color: #64748b; max-width: 58ch; line-height: 1.65; }
.lp-how-card {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(360px, 1.18fr);
  min-height: clamp(380px, 42vw, 520px);
  width: 100%;
  border-radius: clamp(20px, 2.4vw, 36px);
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(49, 46, 129, .2);
}
.lp-how-copy {
  display: grid;
  align-content: center;
  padding: clamp(32px, 4.5vw, 56px);
  background: linear-gradient(155deg, #1e1b4b 0%, #312e81 48%, #5b21b6 100%);
  color: #fff;
  position: relative;
  z-index: 1;
}
.lp-how-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16%;
  bottom: 16%;
  width: 4px;
  border-radius: 99px;
  background: linear-gradient(180deg, #60a5fa, #e879f9);
}
.lp-how-copy h3 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.28;
  letter-spacing: -.02em;
  color: #fff;
  padding-left: 16px;
}
.lp-how-copy h3 span { color: #f5d0fe; }
.lp-how-visual {
  position: relative;
  background: 55% center / cover no-repeat;
  min-height: 280px;
  isolation: isolate;
}
.lp-how-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 27, 75, .22) 0%, transparent 28%);
  pointer-events: none;
  z-index: 1;
}
.lp-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  box-shadow:
    0 16px 36px rgba(124, 58, 237, .45),
    0 0 0 12px rgba(255, 255, 255, .28);
  border: 0;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.lp-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow:
    0 18px 40px rgba(124, 58, 237, .5),
    0 0 0 16px rgba(255, 255, 255, .32);
}
.lp-play-tri {
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}
.lp-video-modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(920px, 94vw);
  width: 100%;
}
.lp-video-modal::backdrop { background: rgba(15, 23, 42, .65); }
.lp-video-card {
  background: #0f172a;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  color: #fff;
}
.lp-video-card h3 {
  margin: 0;
  padding: 16px 52px 12px 18px;
  font-size: 16px;
}
.lp-video-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.lp-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.lp-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.lp-video-fallback {
  padding: 28px 24px 32px;
  color: #e2e8f0;
}
.lp-video-fallback code {
  background: rgba(255,255,255,.08);
  padding: 2px 6px;
  border-radius: 6px;
}
.lp-video-fallback ol {
  margin: 16px 0 0;
  padding-left: 18px;
  line-height: 1.7;
}

.lp-sample {
  width: 100%;
  background:
    radial-gradient(ellipse 55% 50% at 8% 18%, rgba(216, 180, 254, .38), transparent 55%),
    radial-gradient(ellipse 50% 45% at 92% 78%, rgba(251, 207, 232, .42), transparent 50%),
    linear-gradient(125deg, #f5f0ff 0%, #eef4ff 45%, #fff5fa 100%);
}
.lp-sample > .wrap {
  width: 100%;
  max-width: none;
  padding-inline: clamp(12px, 1.6vw, 28px);
  box-sizing: border-box;
}
.lp-sample-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}
.lp-sample-mid {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.lp-sample-mid .lp-lead {
  max-width: 46ch;
  margin-bottom: 8px;
}
.lp-sample-mid h2 {
  margin: 10px 0 14px;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.2;
  letter-spacing: -.035em;
  color: #0f172a;
  max-width: 18ch;
}
.lp-sample-mid h2 span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-sample-art {
  margin-top: auto;
  min-height: clamp(220px, 32vw, 320px);
  border-radius: clamp(20px, 2vw, 28px);
  background: center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 24px 56px rgba(88, 28, 135, .14);
  position: relative;
  overflow: hidden;
}
.lp-sample-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, .12) 100%);
  pointer-events: none;
}
.lp-letter {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(88, 28, 135, .12), 0 4px 16px rgba(15, 23, 42, .06);
  overflow: hidden;
  min-height: 100%;
  border: 1px solid rgba(237, 233, 254, .9);
}
.lp-letter-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: #e9edff;
  border-bottom: 0;
}
.lp-letter-ico {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #8b5cf6 0%, #d946ef 100%);
  box-shadow: 0 6px 16px rgba(139, 92, 246, .35);
}
.lp-letter-ico i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  font-style: normal;
}
.lp-letter-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.02em;
  line-height: 1.35;
}
.lp-letter-spark {
  flex-shrink: 0;
  font-size: 18px;
  color: rgba(255, 255, 255, .95);
  text-shadow: 0 0 12px rgba(139, 92, 246, .45);
  line-height: 1;
}
.lp-letter .body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.8vw, 34px) clamp(22px, 2.5vw, 32px) clamp(28px, 3vw, 36px);
  color: #64748b;
  font-size: clamp(14.5px, 1.1vw, 16px);
  line-height: 1.65;
  background: #fff;
}
.lp-letter .body p { margin: 0 0 16px; max-width: none; }
.lp-letter-greeting {
  font-weight: 400;
  color: #64748b;
  font-size: inherit;
  margin-bottom: 12px !important;
}
.lp-letter .sign {
  margin-top: 4px;
  margin-bottom: 0;
  padding-top: 8px;
  color: #0f172a;
  font-weight: 800;
  line-height: 1.5;
}
.lp-letter .sign span {
  color: #0f172a;
  font-weight: 800;
}

.lp-disclaimer-sec {
  width: 100%;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(237, 233, 254, .9), transparent 62%),
    linear-gradient(180deg, #f8f5ff 0%, #fff 55%, #fff 100%);
  padding-top: clamp(28px, 4vw, 48px);
}
.lp-disclaimer-sec > .wrap {
  width: 100%;
  max-width: none;
  padding-inline: clamp(12px, 1.6vw, 28px);
  box-sizing: border-box;
}
.lp-disclaimer {
  width: 100%;
  background: #fff;
  border: 1px solid #ebe4ff;
  border-radius: clamp(20px, 2vw, 32px);
  padding: clamp(22px, 3vw, 40px);
  box-shadow: 0 18px 48px rgba(76, 29, 149, .07);
}
.lp-disclaimer-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(120deg, #faf5ff 0%, #f8fafc 55%, #fff 100%);
  border: 1px solid #f0e9ff;
}
.lp-disclaimer-head .shield {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #7c3aed, #db2777);
  color: #fff;
  flex: 0 0 auto;
  box-shadow: 0 10px 22px rgba(124, 58, 237, .28);
}
.lp-disclaimer-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9333ea;
}
.lp-disclaimer-head h3 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -.025em;
  color: #1e1b4b;
}
.lp-disclaimer-head p { margin: 0; color: #64748b; font-size: 14.5px; line-height: 1.55; max-width: none; }
.lp-disclaimer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.lp-disclaimer-list article {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 16px;
  align-items: flex-start;
  border-radius: 16px;
  background: #fafafa;
  border: 1px solid #f1f5f9;
  transition: border-color .15s, background .15s, transform .15s;
}
.lp-disclaimer-list article:last-child {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, #faf5ff, #fff);
  border-color: #ebe4ff;
}
.lp-disclaimer-list article:hover {
  background: #fff;
  border-color: #ddd6fe;
  transform: translateY(-1px);
}
.lp-disclaimer-list .num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ede9fe, #fce7f3);
  color: #5b21b6;
  font-weight: 800;
  font-size: 13px;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .18);
}
.lp-disclaimer-list strong {
  display: block;
  color: #0f172a;
  margin-bottom: 6px;
  font-size: 15px;
  letter-spacing: -.015em;
  line-height: 1.35;
}
.lp-disclaimer-list p {
  margin: 0;
  color: #64748b;
  font-size: 13.5px;
  line-height: 1.65;
  max-width: none;
}
.lp-disclaimer-foot {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  color: #475569;
  font-size: 13.5px;
  line-height: 1.55;
}
.lp-disclaimer-foot .ico { color: #7c3aed; margin-top: 2px; flex: 0 0 auto; }
.lp-disclaimer-foot a { color: #7c3aed; font-weight: 700; }

.lp-features {
  width: 100%;
  background:
    radial-gradient(ellipse 40% 35% at 50% 0%, rgba(243, 232, 255, .55), transparent 60%),
    #fff;
}
.lp-center-head { text-align: center; max-width: 720px; margin: 0 auto 42px; }
.lp-center-head h2 { margin: 0 0 12px; font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.035em; }
.lp-center-head p { margin: 0 auto; color: #64748b; max-width: 54ch; line-height: 1.65; }
.lp-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 20px);
  width: 100%;
}
.lp-feature-card {
  text-align: left;
  padding: clamp(22px, 2.4vw, 28px) clamp(18px, 2vw, 24px);
  border: 1px solid #f1e8ff;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, #faf8ff 100%);
  transition: box-shadow .22s, transform .22s, border-color .22s;
  height: 100%;
}
.lp-feature-card:hover {
  box-shadow: 0 18px 40px rgba(124, 58, 237, .12);
  transform: translateY(-3px);
  border-color: #e9d5ff;
}
.lp-feature-card .ico-grad {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  margin-bottom: 16px;
  color: #7c3aed;
  background: linear-gradient(145deg, #f3e8ff, #fce7f3);
  box-shadow: inset 0 0 0 1px rgba(192, 132, 252, .25);
}
.lp-feature-card h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.02em; }
.lp-feature-card p { margin: 0; color: #64748b; font-size: 14px; line-height: 1.55; }

.lp-pricing {
  position: relative;
  overflow: hidden;
  width: 100%;
  background:
    radial-gradient(ellipse 45% 55% at 8% 70%, rgba(216, 180, 254, .45), transparent 55%),
    radial-gradient(ellipse 40% 50% at 92% 20%, rgba(251, 207, 232, .4), transparent 50%),
    linear-gradient(160deg, #f8f5ff 0%, #f1f5ff 50%, #fff7fb 100%);
}
.lp-pricing-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.lp-pricing-head .lp-lead {
  margin: 0 auto;
  max-width: 46ch;
}
.lp-pricing-head h2 {
  margin: 8px 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -.035em;
  color: #0f172a;
}
.lp-pricing-head h2 span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-pricing-aside {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 28px auto 0;
  padding: 14px 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(233, 213, 255, .75);
  box-shadow: 0 14px 36px rgba(88, 28, 135, .1);
  text-align: left;
  max-width: 420px;
}
.lp-pricing-aside-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex: 0 0 auto;
  background-color: #7c3aed;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M12 20.2S4.5 15.4 4.5 10.2A4.4 4.4 0 0 1 12 6.4a4.4 4.4 0 0 1 7.5 3.8c0 5.2-7.5 10-7.5 10z'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #6d5efc 0%, #c44bdc 52%, #f04b8d 100%);
  background-size: 22px 22px, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  box-shadow: 0 10px 22px rgba(124, 58, 237, .28);
}
.lp-pricing-aside-ico::before { content: none; }
.lp-pricing-aside strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.015em;
}
.lp-pricing-aside span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.4;
}
.lp-plan-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}
.lp-plan-card {
  position: relative;
  background: #fff;
  border: 1px solid #ede9fe;
  border-radius: clamp(22px, 2vw, 28px);
  padding: clamp(24px, 2.5vw, 32px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .2s, box-shadow .2s;
}
.lp-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(124, 58, 237, .16);
}
.lp-plan-card.featured {
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #8b5cf6, #ec4899) border-box;
  box-shadow: 0 22px 52px rgba(124, 58, 237, .18);
}
.lp-best {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}
.lp-plan-card h3 { margin: 0 0 6px; font-size: 22px; padding-right: 92px; letter-spacing: -.02em; }
.lp-plan-card .desc { margin: 0 0 18px; color: #64748b; font-size: 14px; line-height: 1.5; }
.lp-plan-card .price {
  font-size: clamp(34px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 22px;
  color: #0f172a;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.lp-plan-card .price span { font-size: 15px; font-weight: 600; color: #94a3b8; }
.lp-plan-card ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 13px; flex: 1; }
.lp-plan-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: #334155;
}
.lp-plan-card .tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #8b5cf6, #c026d3);
  color: #fff;
  flex: 0 0 auto;
}
.lp-btn-soft {
  width: 100%;
  background: #f3e8ff;
  color: #7c3aed;
  border-radius: 999px;
  font-weight: 800;
}
.lp-btn-soft:hover { background: #ede9fe; }
.lp-plan-card .btn { width: 100%; margin-top: auto; min-height: 50px; font-size: 15px; }
.lp-addons-block { margin-top: clamp(40px, 5vw, 64px); }

.lp-foot {
  width: 100%;
  background: linear-gradient(180deg, #faf8ff 0%, #fff 40%);
  border-top: 1px solid #f1e8ff;
  padding-top: clamp(40px, 5vw, 60px);
}
.lp-foot > .wrap {
  width: 100%;
  max-width: none;
  padding-inline: clamp(12px, 1.6vw, 28px);
  box-sizing: border-box;
}
.lp-foot-grid {
  display: grid;
  grid-template-columns: 1.4fr .7fr .7fr .7fr;
  gap: 28px;
  padding-bottom: 36px;
}
.lp-foot-brand p { margin: 12px 0 18px; color: #64748b; max-width: 280px; line-height: 1.6; }
.lp-foot-company {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}
.lp-foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: #475569; font-size: 13.5px; }
.lp-foot-contact li { display: flex; align-items: center; gap: 8px; }
.lp-foot h4 {
  margin: 0 0 14px;
  font-size: 15px;
  color: #0f172a;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}
.lp-foot h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: var(--grad);
}
.lp-foot-grid > div > a {
  display: block;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  transition: color .15s;
}
.lp-foot-grid > div > a:hover { color: #7c3aed; }
.lp-foot-bottom {
  border-top: 1px solid #f1e8ff;
  padding: 16px 0;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1100px) {
  .lp-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .pub-nav { --pub-nav-h: 64px; }
  .lp-nav-toggle { display: flex; }
  .pub-nav .nav-links {
    position: fixed;
    left: max(16px, env(safe-area-inset-left));
    right: max(16px, env(safe-area-inset-right));
    top: calc(var(--pub-nav-h) + env(safe-area-inset-top, 0px) + 8px);
    display: none;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e9d5ff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
    z-index: 60;
    max-height: calc(100svh - var(--pub-nav-h) - env(safe-area-inset-top, 0px) - 24px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .pub-nav .nav-links.is-open,
  body.nav-open .pub-nav .nav-links { display: flex; }
  .pub-nav .nav-links a {
    padding: 12px 14px;
    border-radius: 12px;
    min-height: 44px;
    font-size: 14px;
  }
  .pub-nav .nav-links .btn,
  .pub-nav .nav-links .lp-nav-login { width: 100%; justify-content: center; }
  body.nav-open { overflow: hidden; }
  .pub-nav .logo-full { max-height: 38px; width: auto; }
}

@media (max-width: 900px) {
  .lp-page .wrap,
  .lp-hero-inner { width: 100%; padding-inline: 12px; }
  .lp-plan-cards { max-width: none; grid-template-columns: 1fr; }

  .lp-hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #faf8ff;
  }
  .lp-hero-media {
    position: relative;
    inset: auto;
    order: 0;
    min-height: min(62vw, 360px);
    width: 100%;
    margin: 0;
    border-radius: 0;
    background-position: 70% center;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .lp-hero-media::after {
    background: linear-gradient(180deg, rgba(250,245,255,.35) 0%, transparent 30%, transparent 70%, rgba(250,245,255,.55) 100%);
  }
  .lp-hero-copy { max-width: none; padding: 0; }
  .lp-hero-inner {
    order: 1;
    min-height: auto;
    padding: 28px 12px 36px;
    width: 100%;
    margin: 0 auto;
  }
  .lp-float-card {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
    width: auto;
    animation: none;
  }
  .lp-how-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .lp-how-copy { padding: 28px 24px; }
  .lp-how-visual { min-height: 240px; }
  .lp-sample-grid,
  .lp-plan-cards,
  .lp-foot-grid { grid-template-columns: 1fr; }
  .lp-sample-mid h2 { max-width: none; }
  .lp-sample-art { min-height: 220px; }
  .lp-feature-card { text-align: center; }
  .lp-feature-card .ico-grad { margin-inline: auto; }
  .lp-section { padding: 56px 0; }
  .lp-disclaimer { padding: 18px 14px; }
  .lp-disclaimer-head { padding: 14px; }
  .lp-disclaimer-list { grid-template-columns: 1fr; }
  .lp-disclaimer-list article,
  .lp-disclaimer-list article:last-child { grid-column: auto; }
  .lp-disclaimer-list article { padding: 14px 12px; grid-template-columns: 32px 1fr; gap: 10px; }
  .lp-play-btn {
    width: 64px;
    height: 64px;
    box-shadow: 0 12px 28px rgba(124, 58, 237, .4), 0 0 0 8px rgba(255,255,255,.28);
  }
}

@media (max-width: 640px) {
  .lp-page .wrap,
  .lp-hero-inner,
  .wrap { width: 100%; padding-inline: 12px; }
  .pub-nav { --pub-nav-h: 60px; }
  .pub-nav-bar { padding: 10px 0; min-height: var(--pub-nav-h); }
  .lp-feature-grid { grid-template-columns: 1fr; }
  .lp-hero-copy h1 { font-size: clamp(26px, 7.5vw, 34px); }
  .lp-hero-actions { flex-direction: column; }
  .lp-hero-actions .btn { width: 100%; min-height: 48px; }
  .lp-trust { gap: 14px; font-size: 12.5px; }
  .lp-section { padding: 44px 0; }
  .lp-hero-media { min-height: min(72vw, 280px); }
  .lp-how-head h2,
  .lp-center-head h2,
  .lp-pricing-head h2 { font-size: clamp(24px, 7vw, 32px); }
  .lp-how-copy h3 { font-size: clamp(20px, 5.5vw, 26px); }
  .lp-plan-card { padding: 22px 18px 20px; }
  .lp-plan-card h3 { padding-right: 0; }
  .lp-best { position: static; display: inline-flex; margin-bottom: 10px; }
  .lp-foot-grid { gap: 22px; }
  .lp-pricing-aside { margin-top: 20px; max-width: none; width: 100%; box-sizing: border-box; }
  .lp-sample-art { min-height: 180px; margin-top: 20px; }
  .lp-btn-lg { min-height: 48px; }
}

@media (max-width: 420px) {
  .lp-float-card { padding: 12px 14px; gap: 10px; }
  .lp-float-ico { width: 38px; height: 38px; background-size: 18px 18px; }
  .lp-float-card strong { font-size: 13px; }
  .lp-float-card span { font-size: 11px; }
}

/* ---------- Figma portal screens ---------- */
.fg-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #eef2f7;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
  padding: 20px 22px;
}
.fg-sec-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.fg-sec-head.between { justify-content: space-between; align-items: center; }
.fg-sec-head h3 { margin: 0 0 2px; font-size: 16px; color: #0f172a; }
.fg-sec-head p { margin: 0; color: #667085; font-size: 13px; }
.fg-ico {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: #eef4ff; color: #4f46e5; flex: 0 0 auto;
}
.fg-ico.soft { background: #eef4ff; color: #4f46e5; }
.fg-ico.sm { width: 32px; height: 32px; }
.fg-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg-grid-split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; align-items: start; }
.fg-contact-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border: 1px solid #eef2f7; border-radius: 14px; background: #fafbff;
}
.fg-contact-row.compact { background: #fff; margin-bottom: 10px; }
.fg-grow { flex: 1; min-width: 0; }
.fg-label { display: block; color: #98a2b3; font-size: 12px; font-weight: 650; }
.fg-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.btn-text {
  border: 0; background: none; cursor: pointer; font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; text-decoration: none;
}
.btn-text.blue { color: #2563eb; }
.btn-text.red { color: #f04438; }
.btn-dash {
  border: 1.5px dashed #93c5fd; background: #fff; color: #2563eb; border-radius: 12px;
  min-height: 42px; padding: 0 14px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}
.btn-danger-outline {
  border: 1px solid #fda29b; background: #fff; color: #f04438; border-radius: 10px;
  min-height: 36px; padding: 0 12px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.fg-add-inline { display: grid; gap: 10px; margin-top: 8px; }
.fg-add-inline.social { grid-template-columns: 1fr 1fr auto; align-items: center; }
.fg-dialog {
  border: 0; border-radius: 16px; padding: 20px; width: min(420px, 92vw);
  box-shadow: 0 20px 50px rgba(16,24,40,.2);
}
.fg-dialog::backdrop { background: rgba(15,23,42,.35); }
.fg-dialog h4 { margin: 0 0 12px; }
.fg-dialog .input { margin-bottom: 12px; border-radius: 12px; }

.fg-keeper-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.fg-keeper-grid.compact { grid-template-columns: repeat(2, 1fr); }
.fg-keeper-card {
  border: 1px solid #eef2f7; border-radius: 16px; padding: 16px;
  display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: start; background: #fff;
}
.fg-keeper-card.mini { padding: 12px; }
.fg-keeper-photo {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; grid-row: span 2;
  background: #f2f4f7;
}
.fg-keeper-photo.sm { width: 44px; height: 44px; }
.fg-keeper-meta { min-width: 0; }
.fg-keeper-meta strong { display: block; color: #0f172a; font-size: 15px; font-weight: 750; }
.fg-keeper-meta .pill { margin: 6px 0 8px; }
.fg-keeper-meta p { margin: 3px 0; color: #667085; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.fg-keeper-meta p .ico { color: #98a2b3; }
.fg-keeper-actions { grid-column: 2; display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.fg-keeper-empty {
  border: 1.5px dashed #ddd6fe; border-radius: 16px; min-height: 140px;
  display: grid; place-content: center; justify-items: center; gap: 8px;
  color: #7c3aed; font-weight: 700; text-decoration: none; background: #faf5ff;
  transition: background .15s ease, border-color .15s ease;
}
.fg-keeper-empty:hover { background: #f3e8ff; border-color: #c4b5fd; }
.fg-upsell {
  margin: 0; padding: 0; border-radius: 0; background: transparent;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.fg-upsell .feat, .fg-lawyer-row .feat {
  display: flex; align-items: flex-start; gap: 12px; min-width: 0;
}
.fg-upsell strong { display: block; color: #0f172a; font-size: 15px; }
.fg-upsell p, .fg-lawyer-row p { margin: 2px 0 0; color: #667085; font-size: 13px; }
.fg-upsell .btn-ghost, .fg-lawyer-row .btn-ghost {
  border-color: #c4b5fd;
  color: #7c3aed;
  flex-shrink: 0;
}
.fg-lawyer { margin-top: 0; }
.fg-lawyer-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.fg-lawyer-row h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 15px;
  color: #0f172a;
}
.fg-lawyer-row h3 .pill {
  background: #f5f3ff;
  color: #7c3aed;
  font-size: 11px;
}
.fg-note {
  margin-top: 14px; padding: 11px 14px; border-radius: 12px; background: #f8fafc;
  border: 1px solid #e8ecf4;
  color: #475467; font-size: 12.5px; display: flex; align-items: center; gap: 8px;
}

.fg-form-card { padding: 24px; }
.fg-form-layout { display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: start; }
.fg-photo-col { display: grid; justify-items: center; gap: 10px; }
.fg-photo-wrap, .fg-photo-placeholder, .fg-avatar-lg {
  width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center;
  background: #f2f4f7; color: #98a2b3; overflow: hidden;
}
.fg-photo-wrap img, .fg-avatar-lg { width: 120px; height: 120px; object-fit: cover; }
.fg-fields .field { margin-bottom: 12px; }
.fg-fields select { width: 100%; border: 0; background: transparent; outline: none; appearance: none; }
.field-ico.verified {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  padding-right: 8px;
}
.field-ico.verified .pill {
  flex-shrink: 0;
  margin-left: auto;
}
.fg-readonly-val,
.adm-readonly-val {
  flex: 1 1 120px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
  color: var(--p-ink, #101828);
  font-size: 14px;
}
.profile-avatar-picker { display: grid; justify-items: center; gap: 8px; text-align: center; }
.profile-avatar-hint { margin: 0; font-size: 12px; }
.profile-avatar-preview {
  overflow: hidden;
  position: relative;
}
.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-avatar-preview .profile-avatar-initials {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  background: var(--p-grad, var(--grad));
}
.profile-flash { margin-bottom: 16px; }
.profile-form-actions { margin-top: 8px; flex-wrap: wrap; }
.user-menu-btn .user-menu-name {
  max-width: min(160px, 28vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fg-subhead { margin: 8px 0 10px; color: #2563eb; font-size: 14px; }
.fg-password-card { max-width: 520px; }
.fg-pass-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }

.fg-cart-item {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border: 1px solid #eef2f7; border-radius: 14px; margin-bottom: 10px;
}
.fg-cart-item p { margin: 2px 0 0; color: #667085; font-size: 13px; }
.fg-sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; color: #475467; font-size: 14px; }
.fg-sum-row.ok { color: #16a34a; font-weight: 700; }
.fg-sum-row.total { border-top: 1px solid #eef2f7; margin-top: 8px; padding-top: 14px; font-size: 18px; color: #0f172a; }
.fg-sum-row.total.is-free strong:last-child { color: #16a34a; }
.fg-strike {
  display: inline-block;
  margin-right: 8px;
  color: #98a2b3;
  font-size: 14px;
  font-weight: 600;
  text-decoration: line-through;
}
.fg-pay-aside .fg-coupon-card { margin: 14px 0 4px; }

.fg-coupon-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #ebe4ff;
  background:
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(168, 85, 247, .08), transparent 55%),
    #faf8ff;
}
.fg-coupon-card.is-on {
  border-color: #bbf7d0;
  background:
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(34, 197, 94, .08), transparent 55%),
    #f7fdf9;
}
.fg-coupon-card-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.fg-coupon-badge {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #a855f7, #7c3aed);
  color: #fff;
  box-shadow: 0 8px 16px rgba(124, 58, 237, .22);
}
.fg-coupon-card.is-on .fg-coupon-badge {
  background: linear-gradient(145deg, #22c55e, #16a34a);
  box-shadow: 0 8px 16px rgba(22, 163, 74, .2);
}
.fg-coupon-card-head strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 2px;
}
.fg-coupon-card-head p {
  margin: 0;
  font-size: 12px;
  color: #6b7288;
  line-height: 1.4;
}
.fg-coupon-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.fg-coupon-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.fg-coupon-input-wrap > .ico {
  position: absolute;
  left: 12px;
  color: #a78bfa;
  pointer-events: none;
}
.fg-coupon-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #e4e7ec;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px 10px 38px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  outline: none;
}
.fg-coupon-input:focus {
  border-color: #c4b5fd;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}
.fg-coupon-apply-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  white-space: nowrap;
}
.fg-coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #bbf7d0;
}
.fg-coupon-applied-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.fg-coupon-chip {
  display: inline-flex;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.fg-coupon-applied-main strong {
  font-size: 15px;
  letter-spacing: .08em;
  color: #166534;
}
.fg-coupon-applied-main span {
  font-size: 12px;
  color: #15803d;
  font-weight: 600;
}
.fg-coupon-remove {
  border: 1px solid #fecaca;
  background: #fff;
  color: #dc2626;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.fg-coupon-remove:hover { background: #fef2f2; }
.fg-coupon-error {
  margin: 8px 0 0;
  color: #dc2626;
  font-size: 12.5px;
  font-weight: 600;
}
.fg-free-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1px solid #bbf7d0;
}
.fg-free-ico {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #16a34a;
  color: #fff;
}
.fg-free-banner strong { display: block; color: #166534; font-size: 15px; }
.fg-free-banner p { margin: 4px 0 0; color: #15803d; font-size: 13px; line-height: 1.45; }
.fg-free-banner b { font-weight: 800; letter-spacing: .04em; }
.fg-razorpay-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc, #faf5ff);
  border: 1px solid #e8ecf4;
}
.fg-razorpay-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.fg-razorpay-card strong {
  display: block;
  font-size: 15px;
  color: #0f172a;
}
.fg-razorpay-card .muted {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 560px) {
  .fg-coupon-form { grid-template-columns: 1fr; }
  .fg-coupon-apply-btn { width: 100%; justify-content: center; }
}
.fg-secure { margin: 12px 0 0; text-align: center; color: #98a2b3; font-size: 12.5px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn-wide { width: 100%; justify-content: center; margin-top: 8px; }

.fg-success-wrap { min-height: 60vh; display: grid; place-items: center; }
.fg-success-card {
  width: min(440px, 100%); background: #fff; border-radius: 22px; padding: 36px 28px;
  text-align: center; box-shadow: 0 12px 40px rgba(16,24,40,.08); border: 1px solid #eef2f7;
}
.fg-success-badge {
  width: 88px; height: 88px; margin: 0 auto 16px; border-radius: 50%;
  background: #dcfce7; color: #16a34a; display: grid; place-items: center;
}
.fg-success-card h1 { margin: 0 0 8px; font-size: 26px; }
.fg-success-card .pill { margin: 12px 0 18px; }

.fg-overview { display: flex; align-items: center; gap: 20px; margin-top: 8px; }
.fg-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fg-checklist li { display: flex; align-items: center; gap: 8px; color: #98a2b3; font-weight: 650; font-size: 14px; }
.fg-checklist li.ok { color: #027a48; }

/* CMS public pages — full-width, clean layout */
body.cms-page {
  background: #f4f6fa;
}
.cms-hero {
  padding: clamp(28px, 4vw, 48px) 0 clamp(24px, 3vw, 36px);
  background:
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(109, 40, 217, .1), transparent 60%),
    linear-gradient(180deg, #fff 0%, #f4f6fa 100%);
  border-bottom: 1px solid #e8ecf4;
}
.cms-hero-inner {
  width: 100%;
  text-align: center;
}
.cms-kicker {
  margin: 0 auto 12px;
  max-width: 70ch;
  font-size: clamp(11px, 1.2vw, 12px);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7c3aed;
  line-height: 1.5;
}
.cms-title {
  margin: 0;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -.035em;
  color: #0f172a;
}
.cms-hero-lead {
  margin: 14px auto 0;
  max-width: 68ch;
  color: #64748b;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.65;
}
.cms-main {
  padding: clamp(20px, 3vw, 32px) 0 clamp(40px, 5vw, 64px);
}
.cms-layout {
  display: grid;
  gap: clamp(20px, 2.5vw, 28px);
  align-items: start;
  width: 100%;
}
.cms-layout--split {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
}
.cms-layout--full {
  grid-template-columns: 1fr;
}
.cms-content {
  min-width: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: clamp(16px, 2vw, 24px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, .05);
}
.cms-body {
  padding: clamp(24px, 3.5vw, 40px) clamp(20px, 4vw, 48px);
  line-height: 1.75;
  color: #475569;
  font-size: clamp(15px, 1.5vw, 17px);
  min-width: 0;
}
.cms-content-foot {
  padding: 14px clamp(20px, 4vw, 48px) 18px;
  border-top: 1px solid #eef2f7;
  background: #fafbfe;
  border-radius: 0 0 clamp(16px, 2vw, 24px) clamp(16px, 2vw, 24px);
}
.cms-updated {
  margin: 0;
  font-size: 12.5px;
  color: #94a3b8;
}
.cms-body p { margin: 0 0 1em; }
.cms-body p:last-child { margin-bottom: 0; }
.cms-body a {
  color: #6d28d9;
  font-weight: 650;
  text-decoration: none;
}
.cms-body a:hover { text-decoration: underline; }
.cms-body em {
  display: block;
  margin-top: 12px;
  padding: clamp(14px, 2vw, 18px) clamp(16px, 2.5vw, 22px);
  border-radius: 14px;
  background: #faf5ff;
  border: 1px solid #ede9fe;
  color: #5b21b6;
  font-style: normal;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.65;
}
.cms-body h2 {
  margin: 1.75em 0 .65em;
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.02em;
}
.cms-body h2:first-child { margin-top: 0; }
.cms-body ul {
  margin: 0 0 1.1em;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.cms-body ul li {
  position: relative;
  padding-left: 1.35em;
}
.cms-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}
.cms-content--legal .cms-body h2 {
  padding-top: 1.4em;
  border-top: 1px solid #eef2f7;
}
.cms-content--legal .cms-body h2:first-child {
  padding-top: 0;
  border-top: 0;
}
.cms-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(12px, 1.8vw, 20px);
  counter-reset: cms-step;
}
.cms-steps li {
  counter-increment: cms-step;
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 2vw, 20px);
  padding: clamp(16px, 2.2vw, 24px) clamp(18px, 2.5vw, 28px);
  border-radius: 16px;
  border: 1px solid #eef2f7;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.cms-steps li:hover {
  border-color: #e2d9fe;
  box-shadow: 0 8px 24px rgba(109, 40, 217, .06);
}
.cms-steps li::before {
  content: counter(cms-step);
  flex: 0 0 clamp(40px, 4vw, 48px);
  width: clamp(40px, 4vw, 48px);
  height: clamp(40px, 4vw, 48px);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: clamp(14px, 1.4vw, 16px);
  color: #fff;
  background: linear-gradient(135deg, #a78bfa, #6d28d9);
  box-shadow: 0 6px 16px rgba(109, 40, 217, .2);
}
.cms-step-copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}
.cms-steps li strong,
.cms-step-copy strong {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.cms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 2.5vw, 28px);
  padding-top: clamp(18px, 2vw, 24px);
  border-top: 1px solid #eef2f7;
}
.cms-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #f3eefe;
  color: #6d28d9 !important;
  font-weight: 700 !important;
  font-size: 15px;
  text-decoration: none !important;
}
.cms-cta:hover {
  background: #ebe2ff;
  text-decoration: none !important;
}
.cms-body .faq-list { margin-top: 4px; }
.cms-aside {
  min-width: 0;
  width: 100%;
}
.cms-aside--side {
  position: sticky;
  top: 88px;
}
.cms-aside--below {
  margin-top: clamp(20px, 3vw, 28px);
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid #e8ecf4;
}
.cms-help-row {
  display: grid;
  gap: 14px;
  width: 100%;
}
.cms-aside--side .cms-help-row {
  grid-template-columns: 1fr;
}
.cms-aside--below .cms-help-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
}
.cms-help-card {
  padding: clamp(16px, 2vw, 20px);
  border-radius: 18px;
  border: 1px solid #e8ecf4;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
  min-width: 0;
}
.cms-help-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}
.cms-help-card p {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}
.cms-help-checkin {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(160deg, #faf5ff 0%, #fff 100%);
}
.cms-help-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #c084fc, #7c3aed);
  box-shadow: 0 8px 20px rgba(124, 58, 237, .25);
}
.cms-help-checkin strong {
  display: block;
  font-size: 17px;
  color: #0f172a;
  margin-bottom: 4px;
}
.cms-help-checkin p {
  margin: 0;
}
.cms-help-links {
  display: grid;
  gap: 6px;
}
.cms-help-links a {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  color: #475569;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  background: #f8fafc;
  box-sizing: border-box;
}
.cms-help-links a:hover {
  background: #f3eefe;
  color: #6d28d9;
}
.cms-help-cta .btn-wide {
  width: 100%;
  justify-content: center;
  margin-bottom: 8px;
}
.cms-help-cta .btn-wide:last-child { margin-bottom: 0; }
.cms-help-email {
  color: #6d28d9;
  font-weight: 700;
  font-size: 14px;
  word-break: break-word;
}
@media (max-width: 1024px) {
  .cms-layout--split { grid-template-columns: 1fr; }
  .cms-aside--side { position: static; }
  .cms-aside--side .cms-help-row,
  .cms-aside--below .cms-help-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .cms-aside--side .cms-help-row,
  .cms-aside--below .cms-help-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .cms-body { padding: 20px 16px; }
  .cms-content-foot { padding: 12px 16px 16px; }
  .cms-steps li {
    flex-direction: column;
    gap: 12px;
  }
  .cms-steps li::before {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
  .cms-actions { flex-direction: column; }
  .cms-cta { justify-content: center; }
  .cms-help-checkin { flex-direction: column; align-items: flex-start; }
}
.faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  background: #fafbfe;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f3eefe;
  color: #6d28d9;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-a {
  padding: 0 16px 14px;
  color: #475569;
  border-top: 1px solid #eef2f7;
}
.faq-item .faq-a p { margin: 12px 0 0; }

/* ---------- I'm Fine check-in — hanging wire (top) ---------- */
body.ci-lock { overflow: hidden; }
.ci-dock {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  transform: none;
  z-index: 95;
  width: 100%;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.ci-dock > * { pointer-events: auto; }
.ci-dock.is-locked .ci-hang {
  display: none !important;
}
.ci-scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: -1;
  animation: ciFade .22s ease;
}
@keyframes ciFade { from { opacity: 0; } to { opacity: 1; } }

/* Wire + hanging badge */
.ci-hang {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
  animation: ciSway 4.2s ease-in-out infinite;
  filter: drop-shadow(0 10px 18px rgba(124, 58, 237, .18));
  transition: opacity .2s ease, transform .2s ease;
}
@keyframes ciSway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}
.ci-dock.is-open .ci-hang {
  animation: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(.92);
}
.ci-wire {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 14px;
}
.ci-wire-line {
  display: block;
  width: 2.5px;
  height: 96px;
  border-radius: 99px;
  background: linear-gradient(180deg, transparent 0%, #c4b5fd 18%, #a78bfa 55%, #e879f9 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.28);
}
.ci-wire-knot {
  display: block;
  width: 12px;
  height: 12px;
  margin-top: -2px;
  margin-bottom: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f5d0fe, #a855f7 55%, #7c3aed);
  box-shadow:
    0 0 0 2px #fff,
    0 2px 6px rgba(124, 58, 237, .35);
}

/* Floating heart launcher — hanging pill */
.ci-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 9px 22px 9px 9px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 52%, #ec4899 100%);
  color: #fff;
  cursor: pointer;
  box-shadow:
    0 14px 36px rgba(236, 72, 153, .38),
    0 4px 12px rgba(109, 40, 217, .22);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.ci-fab:hover {
  transform: scale(1.03);
  box-shadow:
    0 18px 44px rgba(236, 72, 153, .46),
    0 6px 16px rgba(109, 40, 217, .28);
  filter: brightness(1.04);
}
.ci-fab-pulse,
.ci-fab-pulse-2 {
  position: absolute;
  left: 9px;
  top: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .55);
  pointer-events: none;
  animation: ciPulseRing 2.2s ease-out infinite;
}
.ci-fab-pulse-2 { animation-delay: 1.1s; }
@keyframes ciPulseRing {
  0% { transform: scale(.85); opacity: .7; }
  100% { transform: scale(1.85); opacity: 0; }
}
.ci-fab-heart {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .22);
  flex-shrink: 0;
  animation: ciHeartBeat 1.35s ease-in-out infinite;
}
.ci-fab-heart svg {
  width: 26px;
  height: 26px;
  fill: #fff;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.12));
}
@keyframes ciHeartBeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.14); }
  28% { transform: scale(1); }
  42% { transform: scale(1.1); }
  56% { transform: scale(1); }
}
.ci-fab-copy {
  display: grid;
  gap: 2px;
  text-align: left;
  min-width: 0;
  padding-right: 6px;
}
.ci-fab-copy strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.ci-fab-copy em {
  font-style: normal;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .88);
  white-space: nowrap;
}
.ci-dock.is-done .ci-fab {
  background: #fff;
  color: #7c3aed;
  border: 1.5px solid #e9d5ff;
  box-shadow: 0 12px 28px rgba(124, 58, 237, .14);
}
.ci-dock.is-done .ci-fab-heart {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  animation: none;
}
.ci-dock.is-done .ci-fab-copy em { color: #a78bfa; }
.ci-dock.is-done .ci-fab-pulse,
.ci-dock.is-done .ci-fab-pulse-2 { display: none; }

/* Modal form — centered when open */
.ci-sheet {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(400px, calc(100vw - 32px));
  max-height: min(88vh, 640px);
  overflow-y: auto;
  padding: 28px 26px 22px;
  border-radius: 26px;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(236, 72, 153, .1), transparent 58%),
    #fff;
  border: 1px solid #efe8ff;
  box-shadow: 0 32px 72px rgba(88, 28, 135, .28);
  animation: ciSheet .28s cubic-bezier(.2, .9, .2, 1);
}
@keyframes ciSheet {
  from { opacity: 0; transform: translate(-50%, -46%) scale(.96); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
.ci-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 11px;
  background: #f8fafc;
  color: #667085;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}
.ci-close:hover { background: #f3e8ff; color: #7c3aed; }

/* Heart stage with orbits + sparks */
.ci-heart-stage {
  position: relative;
  width: 108px;
  height: 108px;
  margin: 6px auto 8px;
  display: grid;
  place-items: center;
}
.ci-heart-glow {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 50%, #ec4899 100%);
  box-shadow:
    0 12px 28px rgba(236, 72, 153, .35),
    inset 0 1px 0 rgba(255,255,255,.35);
  animation: ciHeartBeat 1.4s ease-in-out infinite;
}
.ci-heart-svg {
  width: 34px;
  height: 34px;
  fill: #fff;
}
.ci-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(192, 132, 252, .45);
  animation: ciSpin 10s linear infinite;
}
.ci-orbit-b {
  inset: 10px;
  border-style: solid;
  border-color: rgba(244, 114, 182, .28);
  animation-direction: reverse;
  animation-duration: 14s;
}
@keyframes ciSpin { to { transform: rotate(360deg); } }
.ci-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f472b6;
  box-shadow: 0 0 10px #f472b6;
  animation: ciSpark 2s ease-in-out infinite;
}
.ci-spark.s1 { top: 6px; left: 50%; margin-left: -4px; animation-delay: 0s; }
.ci-spark.s2 { bottom: 10px; right: 12px; background: #a78bfa; animation-delay: .4s; }
.ci-spark.s3 { bottom: 14px; left: 10px; background: #e879f9; animation-delay: .8s; }
.ci-spark.s4 { top: 28px; right: 8px; background: #f9a8d4; animation-delay: 1.2s; }
@keyframes ciSpark {
  0%, 100% { transform: scale(.6); opacity: .35; }
  50% { transform: scale(1.2); opacity: 1; }
}
.ci-dock.is-success .ci-heart-glow {
  animation: ciHeartBurst .7s ease;
}
.ci-dock.is-success .ci-spark {
  animation: ciSparkBurst .8s ease forwards;
}
@keyframes ciHeartBurst {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
@keyframes ciSparkBurst {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.4) translateY(-12px); opacity: 0; }
}
.ci-dock.is-done .ci-heart-glow { animation: none; }
.ci-dock.is-done:not(.is-success) .ci-orbit { animation-play-state: paused; opacity: .4; }

.ci-head { text-align: center; padding: 0 22px; margin-bottom: 16px; }
.ci-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fce7f3;
  color: #db2777;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.ci-dock.is-done .ci-badge {
  background: #f5f3ff;
  color: #7c3aed;
}
.ci-head h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #0f172a;
}
.ci-sub {
  margin: 0 auto;
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.55;
  color: #667085;
  font-weight: 500;
}
.ci-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #667085;
}
.ci-phone-row {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.ci-phone-prefix {
  padding: 0 14px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #7c3aed;
  background: #f5f3ff;
  border-right: 1px solid #e4e7ec;
}
.ci-phone-row input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  background: transparent;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  outline: none;
}
.ci-otp-row {
  margin-bottom: 8px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.ci-otp-row input {
  width: 100%;
  height: 48px;
  border: 0;
  background: transparent;
  padding: 0 14px;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .28em;
  text-align: center;
  color: #0f172a;
  outline: none;
}
.ci-otp-hint {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #7c3aed;
}
.ci-linkish {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: none;
  color: #db2777;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ci-cta-link {
  text-decoration: none;
  margin-bottom: 0;
}
.ci-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #faf5ff;
  border: 1px solid #f3e8ff;
}
.ci-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.ci-user-text { min-width: 0; display: grid; gap: 2px; }
.ci-user-text strong {
  font-size: 14.5px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ci-user-text span {
  font-size: 12.5px;
  font-weight: 600;
  color: #db2777;
}
.ci-alert {
  margin: 0 0 14px;
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  background: #f8fafc;
  color: #475569;
}
.ci-alert.is-ok { background: #f5f3ff; color: #6d28d9; }
.ci-alert.is-err { background: #fef2f2; color: #b91c1c; }
.ci-cta {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b5cf6 0%, #d946ef 48%, #ec4899 100%);
  color: #fff;
  font: inherit;
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter .15s ease, transform .15s ease, opacity .15s ease;
  box-shadow: 0 12px 28px rgba(236, 72, 153, .3);
}
.ci-cta[hidden],
.ci-cta-link[hidden],
.ci-guest[hidden],
.ci-user[hidden],
.ci-alert[hidden],
#fine-phone-step[hidden],
#fine-otp-step[hidden] {
  display: none !important;
}
.ci-cta-heart {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}
.ci-cta-heart svg { width: 16px; height: 16px; fill: #fff; }
.ci-cta:hover:not(:disabled) {
  filter: brightness(1.04);
  transform: translateY(-1px);
}
.ci-dock.is-done .ci-cta {
  background: #fff;
  color: #7c3aed;
  border: 1.5px solid #ddd6fe;
  box-shadow: none;
}
.ci-dock.is-done .ci-cta-heart { display: none; }
.ci-dock.is-done .ci-cta:hover {
  background: #faf5ff;
  filter: none;
}
.ci-cta.is-loading { opacity: .7; pointer-events: none; }
.ci-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: #98a2b3;
}

@media (min-width: 981px) {
  .app-shell .ci-dock {
    left: 248px;
    right: 0;
    width: auto;
    top: 0;
    bottom: auto;
    transform: none;
  }
  .ci-wire-line { height: 110px; }
}
@media (max-width: 480px) {
  .ci-dock {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    transform: none;
  }
  .ci-wire-line { height: 72px; }
  .ci-fab-copy em { display: none; }
  .ci-fab { padding-right: 16px; min-height: 60px; }
  .ci-sheet {
    width: min(360px, calc(100vw - 24px));
    padding: 24px 20px 18px;
  }
  .ci-head h3 { font-size: 21px; }
}

/* Message vault rules */
.msg-rules-list {
  margin: 0;
  padding-left: 1.15em;
  color: #475569;
  font-size: 13.5px;
  line-height: 1.55;
  display: grid;
  gap: 6px;
}
.msg-counter { font-weight: 600; }
.msg-counter.is-over { color: #dc2626; }
.msg-counter.is-over .muted { color: #f87171; }
form.is-disabled { opacity: .55; pointer-events: none; }
.err { color: #dc2626; font-weight: 600; font-size: 13px; margin: 0 0 10px; }


/* =========================================================
   User panel — unified clean design system
   ========================================================= */
.app-shell .main,
.setup-shell .setup-body {
  width: 100%;
  max-width: none !important;
  box-sizing: border-box;
}
.app-shell .main { padding: 24px 32px 64px; }
.setup-shell {
  --p-bg: #f3f5fa;
  --p-surface: #ffffff;
  --p-border: #e8ecf4;
  --p-ink: #0f172a;
  --p-muted: #667085;
  --p-soft: #f8fafc;
  --p-radius: 16px;
  --p-radius-sm: 12px;
  --p-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  --p-accent: #7c3aed;
  --p-grad: linear-gradient(90deg, #8b5cf6 0%, #d946ef 48%, #ec4899 100%);
  background: var(--p-bg);
}
.setup-shell .setup-body { padding: 12px 0 56px; }
.setup-shell .setup-page-head h1,
.app-shell .page-title {
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -.03em;
  color: var(--p-ink);
}
.app-shell .page-sub,
.setup-shell .setup-page-head .muted {
  color: var(--p-muted);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 70ch;
}
.app-shell .page-head { margin-bottom: 22px; }

/* ---- Cards (unify .card + .fg-card) ---- */
.app-shell .fg-card,
.app-shell .card,
.setup-shell .fg-card,
.setup-shell .card,
.app-shell .stat,
.app-shell .status-track {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  box-shadow: var(--p-shadow);
}
.app-shell .fg-card,
.app-shell .card,
.setup-shell .fg-card,
.setup-shell .card {
  padding: 22px 24px;
}
.app-shell .fg-card h3,
.app-shell .card h3,
.setup-shell .fg-card h3,
.setup-shell .card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--p-ink);
  letter-spacing: -.02em;
}
.app-shell .fg-card > .muted,
.app-shell .card > .muted { margin-top: 0; color: var(--p-muted); font-size: 13.5px; }

/* Stack / spacing helpers */
.panel-stack { display: grid; gap: 16px; width: 100%; }
.panel-stack > .card,
.panel-stack > .fg-card,
.panel-stack > section { margin-top: 0 !important; }
.u-mt-10 { margin-top: 10px !important; }
.u-mt-12 { margin-top: 12px !important; }
.u-mt-16 { margin-top: 16px !important; }
.u-mt-18 { margin-top: 18px !important; }
.u-mb-0 { margin-bottom: 0 !important; }
.u-flex-1 { flex: 1 1 auto; min-width: 0; }
.u-center { text-align: center; }
.u-wrap { flex-wrap: wrap; }
.file-btn { cursor: pointer; }

/* ---- Forms ---- */
.app-shell .field,
.setup-shell .field { margin-bottom: 14px; gap: 6px; }
.app-shell .field label,
.setup-shell .field label {
  font-size: 13px;
  font-weight: 750;
  color: var(--p-ink);
}
.app-shell .field input,
.app-shell .field select,
.app-shell .field textarea,
.app-shell .input,
.setup-shell .field input,
.setup-shell .field select,
.setup-shell .field textarea,
.setup-shell .input {
  border: 1px solid #e4e7ec;
  background: #fff;
  border-radius: var(--p-radius-sm);
  padding: 12px 14px;
  min-height: 46px;
  color: var(--p-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.app-shell .field textarea,
.setup-shell .field textarea {
  min-height: 140px;
  border-radius: 14px;
}
.app-shell .field input:focus,
.app-shell .field select:focus,
.app-shell .field textarea:focus,
.app-shell .input:focus,
.setup-shell .field input:focus,
.setup-shell .field select:focus,
.setup-shell .field textarea:focus,
.setup-shell .input:focus {
  border-color: #c4b5fd;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .12);
  outline: none;
  background: #fff;
}
.app-shell .field-ico input,
.app-shell .field-ico select,
.setup-shell .field-ico input,
.setup-shell .field-ico select {
  padding-left: 42px;
  border-radius: var(--p-radius-sm);
  background: #fff;
}
.app-shell .actions,
.setup-shell .actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.app-shell .actions.end,
.setup-shell .actions.end { justify-content: flex-end; }
.app-shell .actions.between,
.setup-shell .actions.between { justify-content: space-between; }

/* ---- Buttons ---- */
.app-shell .btn,
.setup-shell .btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 14px;
}
.app-shell .btn-sm,
.setup-shell .btn-sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}
.app-shell .btn-grad,
.setup-shell .btn-grad {
  background: var(--p-grad);
  color: #fff;
  border: 0;
  box-shadow: 0 8px 18px rgba(168, 85, 247, .22);
}
.app-shell .btn-ghost,
.setup-shell .btn-ghost {
  background: #fff;
  border: 1.5px solid #ddd6fe;
  color: var(--p-accent);
}
.app-shell .btn-ghost:hover,
.setup-shell .btn-ghost:hover { background: #faf5ff; }
.app-shell .btn-line,
.setup-shell .btn-line {
  background: #fff;
  border: 1px solid var(--p-border);
  color: var(--p-ink);
}

/* ---- Tables ---- */
.app-shell .table-wrap,
.setup-shell .table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--p-radius-sm);
  border: 1px solid var(--p-border);
  background: #fff;
}
.app-shell .table,
.setup-shell .table { width: 100%; border-collapse: collapse; }
.app-shell .table th,
.app-shell .table td,
.setup-shell .table th,
.setup-shell .table td {
  padding: 13px 14px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  font-size: 13.5px;
  color: var(--p-ink);
}
.app-shell .table th,
.setup-shell .table th {
  background: var(--p-soft);
  color: var(--p-muted);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.app-shell .table tr:last-child td,
.setup-shell .table tr:last-child td { border-bottom: 0; }
.app-shell .table tbody tr:hover td,
.setup-shell .table tbody tr:hover td { background: #fafbff; }

/* ---- Pills / rows ---- */
.app-shell .pill,
.setup-shell .pill {
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 750;
  padding: 4px 10px;
}
.app-shell .row-card,
.setup-shell .row-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.app-shell .feat .bubble,
.setup-shell .feat .bubble {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f5f3ff;
  color: var(--p-accent);
}

/* ---- FG components under portal ---- */
.app-shell .fg-sec-head,
.setup-shell .fg-sec-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.app-shell .fg-sec-head > .btn,
.setup-shell .fg-sec-head > .btn {
  margin-left: auto;
  flex-shrink: 0;
}
.app-shell .fg-sec-head h3 { margin: 0 0 2px; }
.app-shell .fg-sec-head p,
.setup-shell .fg-sec-head p {
  margin: 0;
  color: var(--p-muted);
  font-size: 13.5px;
}
.app-shell .fg-ico,
.setup-shell .fg-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f5f3ff;
  color: var(--p-accent);
  flex: 0 0 auto;
}
.app-shell .fg-ico.soft { background: #eef4ff; color: #4f46e5; }
.app-shell .fg-ico.sm { width: 32px; height: 32px; border-radius: 10px; }
.app-shell .fg-contact-row,
.setup-shell .fg-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--p-border);
  border-radius: 14px;
  background: var(--p-soft);
  margin-bottom: 10px;
}
.app-shell .fg-contact-row:last-child { margin-bottom: 0; }
.app-shell .fg-grow { flex: 1; min-width: 0; }
.app-shell .fg-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--p-muted);
  margin-bottom: 2px;
}
.app-shell .fg-grid-2,
.app-shell .fg-grid-split,
.app-shell .fg-keeper-grid,
.setup-shell .fg-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}
.app-shell .fg-form-card,
.app-shell .fg-upsell,
.app-shell .fg-lawyer { width: 100%; box-sizing: border-box; }
.app-shell .fg-form-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.app-shell .fg-photo-col {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}
.app-shell .fg-avatar-lg {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  object-fit: cover;
  background: var(--p-grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: 800;
}
.app-shell .fg-subhead {
  margin: 18px 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--p-ink);
}
.app-shell .fg-dialog,
.setup-shell .fg-dialog {
  border: 0;
  border-radius: 16px;
  padding: 22px;
  width: min(420px, calc(100vw - 32px));
  box-shadow: 0 24px 60px rgba(15, 23, 42, .2);
}
.app-shell .fg-dialog.keeper-dialog,
.setup-shell .fg-dialog.keeper-dialog {
  width: min(640px, calc(100vw - 24px));
  padding: 24px;
  max-height: calc(100vh - 40px);
  overflow: auto;
}
.app-shell .fg-dialog::backdrop,
.setup-shell .fg-dialog::backdrop { background: rgba(15, 23, 42, .4); }
.app-shell .fg-dialog h4,
.setup-shell .fg-dialog h4 { margin: 0 0 16px; font-size: 18px; font-weight: 800; }

/* Same-page keeper modals (no navigation) */
body.km-open { overflow: hidden; }
.km-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 10px;
}
.km-modal[hidden] { display: none !important; }
.km-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .45);
}
.km-panel {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(90vh, 860px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e8ecf4;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
  padding: 22px 24px 24px;
}
.km-panel-sm { width: min(420px, 100%); }
.km-panel-lg { width: min(820px, 100%); }
.km-panel-xl { width: min(960px, 100%); }
.km-panel-xxl { width: min(1100px, 100%); }
.km-panel.km-clean {
  width: min(980px, calc(100vw - 24px));
  padding: 20px 22px 22px;
  background: #fff;
}
.mc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 20px;
  align-items: start;
}
.mc-section {
  padding: 18px 0;
  border-bottom: 1px solid #eef2f7;
}
.mc-section:first-child { padding-top: 4px; }
.mc-section:last-child { border-bottom: 0; padding-bottom: 0; }
.mc-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.mc-section-head h5 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}
.mc-section-head .muted { margin: 0; font-size: 12.5px; }
.mc-textarea {
  width: 100%;
  min-height: 160px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  padding: 14px 16px;
  resize: vertical;
  background: #fff;
  font: inherit;
  line-height: 1.55;
}
.mc-textarea:focus {
  outline: none;
  border-color: #c4b5fd;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .12);
}
.mc-meter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.mc-meter .progress { flex: 1; margin: 0; }
.mc-meter .msg-counter { font-size: 12.5px; font-weight: 700; color: #667085; white-space: nowrap; }
.mc-row-actions { margin-top: 12px; }
.mc-notice {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #faf5ff;
  border: 1px solid #ede9fe;
}
.mc-notice.is-hidden { display: none; }
.mc-notice strong { display: block; font-size: 13px; }
.mc-notice p { margin: 2px 0 0; font-size: 12.5px; color: #667085; }
.mc-table { border-radius: 12px; }
.mc-upload { margin-top: 12px; }
.mc-upload-grid {
  display: grid;
  grid-template-columns: 1.4fr .7fr auto;
  gap: 10px;
  align-items: end;
}
.mc-cart {
  border: 1px solid #e8ecf4;
  border-radius: 16px;
  padding: 16px;
  background: #f8fafc;
  position: sticky;
  top: 0;
}
.mc-cart h5 { margin: 0; font-size: 14px; font-weight: 800; }
.mc-cart-sub { margin: 2px 0 14px; font-size: 12px; }
.mc-cart-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #e8ecf4;
  font-size: 13px;
}
.mc-cart-item strong { display: block; font-size: 13px; color: #0f172a; }
.mc-cart-item span { color: #667085; font-size: 12px; }
.mc-cart-item button {
  border: 0;
  background: transparent;
  color: #98a2b3;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.mc-cart-item button:hover { color: #f04438; }
.mc-cart-empty { margin: 8px 0 16px; font-size: 13px; color: #98a2b3; }
.mc-cart-total {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
  font-size: 14px;
  font-weight: 800;
}

/* Message modal — wide side-by-side layout */
.km-panel.msg-panel {
  width: min(1280px, calc(100vw - 16px));
  height: calc(100vh - 16px);
  max-height: calc(100vh - 16px);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
}
.msg-panel-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(340px, 380px) minmax(0, 1fr);
  overflow: hidden;
}
.msg-panel-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid #eef2f7;
  background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
  overflow-y: auto;
}
.msg-panel-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: #fff;
}
.msg-panel-side .msg-rule-chips {
  padding: 10px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: transparent;
}
.msg-panel-side .msg-mode-bar,
.msg-panel-side .msg-group-bar {
  padding: 14px 18px;
}
.msg-panel-side .msg-group-bar {
  border-bottom: 1px solid #eef2f7;
}
.msg-group-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.msg-group-bar-head strong {
  font-size: 13px;
  color: #0f172a;
}
.msg-group-slot-count {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.msg-group-hint {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}
.msg-group-cart-pill {
  display: inline-block;
  margin-right: 4px;
  padding: 2px 8px;
  font-size: 10px;
}
.msg-panel-side .msg-delivery {
  margin-top: auto;
  border-top: 1px solid #eef2f7;
  border-radius: 0;
  background: #fff;
}
.msg-panel-side .msg-delivery-body {
  max-height: none;
  padding: 0 16px 16px;
}
.msg-panel-side .msg-delivery-toggle {
  display: none;
}
.msg-panel-side .msg-delivery-summary {
  cursor: default;
  pointer-events: none;
}
.msg-panel-side .msg-keeper-grid {
  grid-template-columns: 1fr;
}
.msg-panel .km-head,
.msg-panel .msg-head {
  padding: 18px 28px 14px;
  margin: 0;
  border-bottom: 1px solid #eef2f7;
  flex-shrink: 0;
}
.msg-panel .km-head h4,
.msg-panel .msg-head h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.msg-rule-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 28px;
  background: linear-gradient(180deg, #faf5ff, #fff);
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.msg-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e9d5ff;
  font-size: 12px;
  font-weight: 700;
  color: #6d28d9;
}
.msg-chip.muted-chip {
  color: #64748b;
  border-color: #e2e8f0;
  background: #f8fafc;
}
.msg-chip em { font-style: normal; opacity: .7; }
.msg-body-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.msg-tabs {
  display: flex;
  gap: 2px;
  padding: 0 24px;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  flex-shrink: 0;
}
.msg-tabs--side {
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-bottom: 1px solid #eef2f7;
  background: transparent;
}
.msg-tab {
  border: 0;
  background: transparent;
  padding: 12px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s, background .15s;
  text-align: left;
  border-radius: 10px;
}
.msg-tabs--side .msg-tab {
  margin-bottom: 0;
  border-bottom: 0;
  border-left: 3px solid transparent;
  padding: 11px 14px;
}
.msg-tab:hover { color: #4f46e5; }
.msg-tab.is-on {
  color: #4f46e5;
  border-bottom-color: #8b5cf6;
}
.msg-tabs--side .msg-tab.is-on {
  border-bottom-color: transparent;
  border-left-color: #8b5cf6;
  background: #ede9fe;
  color: #5b21b6;
}
.msg-pane {
  display: none;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.msg-pane.is-on { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.msg-pane:not(.msg-pane-text).is-on {
  overflow-y: auto;
  padding: 20px 28px;
}
.msg-pane-text.is-on {
  padding: 16px 28px 20px;
  gap: 12px;
  overflow: hidden;
}
.msg-pill-top { margin: 0 0 10px; }
.msg-format-rule {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 13px;
  line-height: 1.5;
  color: #92400e;
}
.msg-format-rule em { font-style: normal; font-weight: 800; }
.msg-vault-badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5f3ff, #faf5ff);
  border: 1px solid #ddd6fe;
  font-size: 13px;
  line-height: 1.5;
  color: #5b21b6;
  flex-shrink: 0;
}
.msg-vault-badge svg,
.msg-vault-badge .ico { flex-shrink: 0; margin-top: 2px; color: #7c3aed; }
.msg-compose {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.msg-text-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 12px;
}
.msg-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}
.msg-limit-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}
.msg-limit-label strong { color: #0f172a; font-weight: 800; }
.msg-draft-status {
  font-size: 12px;
  font-weight: 700;
  color: #027a48;
  background: #ecfdf3;
  padding: 4px 10px;
  border-radius: 999px;
}
.msg-editor {
  display: flex;
  flex: 1;
  min-height: 0;
}
.msg-textarea {
  width: 100%;
  flex: 1;
  min-height: 320px;
  height: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 24px;
  resize: none;
  background: #fcfcfd;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 450;
  line-height: 1.8;
  letter-spacing: .01em;
  color: #1e293b;
  box-sizing: border-box;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
  transition: border-color .15s, box-shadow .15s;
}
.msg-textarea::placeholder {
  color: #94a3b8;
  font-weight: 400;
}
.msg-textarea:focus {
  outline: none;
  border-color: #a78bfa;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .12);
}
.msg-textarea:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}
.msg-limit-banner {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, #fff7ed, #fef3c7);
  border: 1px solid #fdba74;
  box-shadow: 0 2px 8px rgba(251, 146, 60, .12);
}
.msg-limit-banner.is-hidden { display: none; }
.msg-limit-banner.is-shake { animation: msg-shake .35s ease; }
.msg-limit-banner-action { margin: 0; flex-shrink: 0; }
.msg-limit-banner-action .btn { white-space: nowrap; }
.msg-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  padding-top: 4px;
}
.msg-count {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}
.msg-count .progress {
  flex: 1;
  max-width: 160px;
  height: 8px;
  margin: 0;
  border-radius: 99px;
  background: #eef2f7;
}
.msg-count .progress b {
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #d946ef);
}
.msg-count-num { white-space: nowrap; }
.msg-count.is-full { color: #dc2626; }
.msg-count.is-full .progress b { background: linear-gradient(90deg, #f97316, #ef4444); }
.setup-shell .btn-lg {
  min-height: 44px;
  padding: 0 22px;
  font-size: 14.5px;
  border-radius: 12px;
}
.msg-alert.is-shake { animation: msg-shake .35s ease; }
@keyframes msg-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.msg-alert-inline {
  margin: 0 0 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #ffedd5;
  color: #9a3412;
  font-size: 13px;
}
.msg-alert {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #ffedd5;
  color: #9a3412;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.msg-alert.is-hidden { display: none; }
.msg-alert p { margin: 0; }
.hint-xs { display: block; margin-top: 4px; font-size: 12px; }
.msg-meta {
  margin: 0 0 14px;
  font-size: 13px;
}
.msg-file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  background: #fafbff;
}
.msg-file-row strong { display: block; font-size: 14px; }
.msg-file-row .muted { font-size: 12px; }
.msg-file-row form { margin-left: auto; }
.msg-pane-doc.is-on { padding: 18px 28px 24px; }
.msg-doc-quota {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc, #faf5ff);
  border: 1px solid #e8ecf4;
}
.msg-doc-quota-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.msg-doc-quota-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
}
.msg-doc-quota-used { font-size: 12px; }
.msg-doc-quota-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.msg-quota-chip {
  min-width: 72px;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.msg-quota-chip strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
  transition: transform .25s ease, color .25s ease;
}
.msg-quota-chip strong.is-bump,
.msg-quota-chip.is-total strong.is-bump { animation: msg-quota-bump .45s ease; }
@keyframes msg-quota-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.15); color: #4f46e5; }
  100% { transform: scale(1); }
}
.msg-quota-chip span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
}
.msg-quota-chip.is-cart {
  background: #eef2ff;
  border-color: #c7d2fe;
}
.msg-quota-chip.is-cart strong { color: #4f46e5; }
.msg-quota-chip.is-cart.is-zero { opacity: .45; }
.msg-quota-chip.is-total {
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border-color: #bbf7d0;
}
.msg-quota-chip.is-total strong { color: #059669; }
.msg-quota-op {
  font-size: 18px;
  font-weight: 700;
  color: #94a3b8;
}
.msg-doc-quota-need {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
  font-size: 13px;
}
.msg-doc-quota-need.is-hidden { display: none; }
.msg-need-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #c2410c;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.msg-need-badge.is-ok {
  background: #ecfdf5;
  border-color: #86efac;
  color: #059669;
}
.setup-cart-pdf-card {
  background: linear-gradient(135deg, #eff6ff, #faf5ff);
  border-color: #bfdbfe;
}
.msg-pdf-block-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex: 1;
  min-width: 200px;
}
.msg-pdf-in-cart {
  flex-shrink: 0;
  text-align: center;
  padding: 8px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #fdba74;
}
.msg-pdf-in-cart.is-hidden { display: none; }
.msg-pdf-in-cart-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #b45309;
}
.msg-pdf-in-cart strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #ea580c;
  line-height: 1.1;
}
.msg-pdf-block-actions {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}
.msg-pdf-add-one-form { margin: 0; }
.msg-pdf-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.msg-pdf-btn:active { transform: scale(.98); }
.msg-pdf-btn.is-loading { opacity: .65; pointer-events: none; }
.msg-pdf-btn-all {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  border-color: #c2410c;
  color: #fff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, .28);
}
.msg-pdf-btn-all:hover {
  box-shadow: 0 6px 18px rgba(234, 88, 12, .34);
}
.msg-pdf-btn-all .msg-pdf-btn-sub {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 500;
  opacity: .88;
}
.msg-pdf-btn-all .msg-pdf-btn-price {
  background: rgba(255, 255, 255, .18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
}
.msg-pdf-btn-one {
  background: #fff;
  border-color: #fdba74;
  color: #9a3412;
}
.msg-pdf-btn-one:hover {
  background: #fffbf5;
  border-color: #fb923c;
}
.msg-pdf-btn-main { flex: 1; min-width: 0; }
.msg-pdf-btn-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}
.msg-pdf-btn-price {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  font-size: 13px;
  font-weight: 800;
  color: #c2410c;
  white-space: nowrap;
}
.msg-pdf-btn-all.is-hidden { display: none; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.msg-doc-form { display: grid; gap: 12px; }
.msg-doc-form.is-disabled { opacity: .55; pointer-events: none; }
.msg-safe-key-set {
  padding: 14px;
  border: 1px dashed #d7dbe8;
  border-radius: 12px;
  background: #fafbff;
  display: grid;
  gap: 10px;
}
.msg-safe-key-set .field { margin: 0; }
.msg-safe-key-set .muted { margin: 0; font-size: 13px; }
.msg-file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 20px;
  border: 2px dashed #c4b5fd;
  border-radius: 16px;
  background: linear-gradient(180deg, #faf5ff, #fff);
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.msg-file-drop:hover,
.msg-file-drop.is-drag {
  border-color: #8b5cf6;
  background: #faf5ff;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .1);
}
.msg-file-drop.is-hidden { display: none; }
.msg-file-drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.msg-file-drop strong { font-size: 15px; color: #0f172a; }
.msg-file-drop .muted { font-size: 13px; max-width: 28ch; }
.msg-file-drop-ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #ede9fe;
  color: #7c3aed;
  display: grid;
  place-items: center;
}
.msg-file-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e8ecf4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.msg-file-preview.is-hidden { display: none; }
.msg-file-preview-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.msg-file-preview-body { flex: 1; min-width: 0; }
.msg-file-preview-body strong {
  display: block;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #0f172a;
}
.msg-file-preview-body .muted { font-size: 12.5px; line-height: 1.45; }
.msg-file-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.msg-file-metrics.is-hidden { display: none; }
.msg-metric {
  text-align: center;
  padding: 10px 8px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}
.msg-metric strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #4f46e5;
  line-height: 1.2;
}
.msg-metric span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
}
.msg-file-hint {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}
.msg-file-hint.is-hidden { display: none; }
.msg-pdf-scan {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 13px;
  font-weight: 600;
}
.msg-pdf-scan.is-hidden { display: none; }
.msg-pdf-scan-spin {
  width: 16px;
  height: 16px;
  border: 2px solid #c7d2fe;
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: msg-spin .7s linear infinite;
}
@keyframes msg-spin { to { transform: rotate(360deg); } }
.msg-pdf-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border: 1px solid #fdba74;
}
.msg-pdf-block.is-hidden { display: none; }
.msg-pdf-block-text {
  flex: 1;
  min-width: 200px;
  padding-left: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ea580c' stroke-width='2'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E") no-repeat 0 2px;
}
.msg-pdf-block-text strong { display: block; font-size: 14px; font-weight: 700; color: #9a3412; }
.msg-pdf-block-text p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; color: #b45309; }
.msg-upload {
  padding: 18px;
  border: 2px dashed #e4e7ec;
  border-radius: 14px;
  background: #fafbff;
}
.msg-upload.is-disabled { opacity: .55; pointer-events: none; }
.msg-upload .field { margin-bottom: 12px; }
.msg-upload .field:last-of-type { margin-bottom: 16px; }
.msg-mode-bar {
  padding: 12px 28px;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  flex-shrink: 0;
}
.msg-mode-bar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.msg-mode-bar-head strong { font-size: 13px; color: #0f172a; }
.msg-mode-bar-head .muted { font-size: 12px; }
.msg-delivery-mode-bar { margin-top: 0; }
.msg-group-bar {
  padding: 10px 28px 12px;
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(180deg, #faf5ff, #fff);
  flex-shrink: 0;
}
.msg-group-bar .msg-group-hint { margin: 0 0 10px; }
.msg-delivery {
  margin: 0;
  border-radius: 0;
  background: #f8fafc;
  border: 0;
  border-top: 1px solid #e8ecf4;
  overflow: hidden;
  flex-shrink: 0;
}
.msg-delivery-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}
.msg-delivery-summary::-webkit-details-marker { display: none; }
.msg-delivery-summary-main strong { display: block; font-size: 14px; color: #0f172a; }
.msg-delivery-summary-main .muted { display: block; margin-top: 2px; font-size: 12px; }
.msg-delivery-toggle {
  font-size: 12px;
  font-weight: 700;
  color: #7c3aed;
  flex-shrink: 0;
}
.msg-delivery-body { padding: 0 20px 12px; }
.msg-delivery[open] .msg-delivery-body {
  max-height: min(240px, 32vh);
  overflow-y: auto;
}
.msg-mode-btn.is-loading { opacity: .7; pointer-events: none; }
.msg-keeper-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px dashed #cbd5e1;
}
.msg-keeper-empty p { margin: 0; font-size: 12.5px; }
.msg-mode-err {
  margin: 8px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 12.5px;
}
.msg-group-hint {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
}
.msg-mode-btn.is-loading {
  opacity: .65;
  pointer-events: none;
}
.msg-delivery-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.msg-mode-form { margin: 0; }
.msg-mode-btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.msg-mode-btn.is-on {
  border-color: #8b5cf6;
  background: linear-gradient(135deg, #faf5ff, #fff);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .12);
}
.msg-mode-title { display: block; font-size: 14px; font-weight: 700; color: #0f172a; }
.msg-mode-sub { display: block; margin-top: 2px; font-size: 12px; color: #64748b; }
.msg-group-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.msg-group-tabs--stack {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 0;
}
.msg-group-store-form {
  margin: 0;
  width: 100%;
}
.msg-group-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.msg-group-tab-label {
  font-weight: 700;
  color: #0f172a;
}
.msg-group-tab-meta {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
}
.msg-group-tab-meta.ok { color: #16a34a; }
.msg-group-tab-meta.add { color: #7c3aed; }
.msg-group-tab-meta.locked { color: #b45309; }
.msg-group-tab:hover {
  border-color: #c4b5fd;
  background: #faf5ff;
}
.msg-group-tab.is-on {
  border-color: #8b5cf6;
  background: #ede9fe;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .1);
}
.msg-group-tab.is-on .msg-group-tab-label { color: #5b21b6; }
.msg-group-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  font-style: normal;
}
.msg-group-dot.is-ok { background: #22c55e; }
.msg-group-tab-add,
.msg-group-create-form .msg-group-tab-add {
  border-style: dashed;
  background: #fafbff;
}
.msg-group-tab-add:hover {
  border-color: #8b5cf6;
}
.msg-group-tab.is-locked {
  border-style: dashed;
  background: #fffbeb;
  border-color: #fcd34d;
}
.msg-group-tab.msg-group-tab-pending {
  border-style: dashed;
  border-color: #c4b5fd;
  background: linear-gradient(135deg, #faf5ff, #fff);
  cursor: pointer;
}
button.msg-group-tab {
  font: inherit;
  appearance: none;
  cursor: pointer;
  text-align: left;
}
button.msg-group-tab.is-loading {
  opacity: .65;
  pointer-events: none;
}
.msg-group-create-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.msg-group-create-input {
  width: 120px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 12px;
}
.msg-keeper-pick {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}
.msg-keeper-pick-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.msg-keeper-pick-head strong { font-size: 13px; }
.msg-keeper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.msg-keeper-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.msg-keeper-check input { position: absolute; opacity: 0; pointer-events: none; }
.msg-keeper-check:has(input:checked) {
  border-color: #8b5cf6;
  background: #faf5ff;
}
.msg-keeper-check-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
}
.msg-keeper-check:has(input:checked) .msg-keeper-check-box {
  border-color: #7c3aed;
  background: #7c3aed;
  box-shadow: inset 0 0 0 3px #fff;
}
.msg-keeper-check-body strong { display: block; font-size: 13px; }
.msg-keeper-check-body .muted { font-size: 11.5px; }
.msg-keeper-save { margin-top: 10px; }
.msg-keeper-readonly { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.msg-keeper-chip {
  padding: 10px 12px;
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  background: #fff;
}
.msg-keeper-chip strong { display: block; font-size: 13px; }
.msg-keeper-chip .muted { font-size: 11.5px; }
.msg-keeper-empty-inline { margin: 0; font-size: 12.5px; }
@media (max-width: 640px) {
  .msg-delivery-mode { grid-template-columns: 1fr; }
}
.msg-pane-extras.is-on { padding: 18px 28px 24px; }
.msg-extras-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.msg-extras-stat {
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fafc, #faf5ff);
  border: 1px solid #e8ecf4;
}
.msg-extras-stat-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
}
.msg-extras-stat strong {
  display: block;
  margin-top: 2px;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}
.msg-extras-stat .muted { display: block; margin-top: 2px; font-size: 11.5px; }
.msg-extras-unlocked {
  padding: 14px 16px;
  border-radius: 14px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  text-align: center;
}
.msg-extras-unlocked .pill { margin-bottom: 6px; }
.msg-extras-unlocked .muted { margin: 0; font-size: 12.5px; }
.msg-addon-list { display: grid; gap: 12px; }
.msg-addon-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e8ecf4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: border-color .15s, box-shadow .15s;
}
.msg-addon-card.is-featured,
.msg-addon-card.is-active {
  border-color: #c4b5fd;
  background: linear-gradient(135deg, #faf5ff, #fdf4ff);
  box-shadow: 0 2px 8px rgba(139, 92, 246, .08);
}
.msg-addon-card.is-pdf.is-active {
  border-color: #fdba74;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  box-shadow: 0 2px 8px rgba(234, 88, 12, .08);
}
.msg-addon-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.msg-addon-icon.is-chars { background: #ede9fe; color: #7c3aed; }
.msg-addon-icon.is-pdf { background: #ffedd5; color: #ea580c; }
.msg-addon-icon.is-dual { background: #dbeafe; color: #2563eb; }
.msg-addon-card strong { display: block; font-size: 15px; color: #0f172a; }
.msg-addon-card .muted { margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; }
.msg-addon-quota {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}
.msg-addon-quota-op { color: #94a3b8; font-weight: 700; }
.msg-addon-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.msg-price {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}
.msg-price small {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}
.msg-addon-main { flex: 1; min-width: 0; }
.msg-in-cart {
  display: inline-flex;
  margin-top: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #027a48;
  font-size: 12px;
  font-weight: 700;
}
.msg-in-cart.is-pdf {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fdba74;
}
.msg-in-cart.is-hidden { display: none; }
@media (max-width: 560px) {
  .msg-extras-summary { grid-template-columns: 1fr; }
  .msg-addon-card { flex-wrap: wrap; }
  .msg-addon-end {
    flex-direction: row;
    align-items: center;
    width: 100%;
    margin-left: 0;
    padding-top: 8px;
    border-top: 1px solid #eef2f7;
  }
}
.msg-panel-foot {
  padding: 12px 28px 16px;
  border-top: 1px solid #eef2f7;
  display: flex;
  justify-content: flex-end;
  background: #fafbff;
  flex-shrink: 0;
}
.msg-group-locked {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 28px;
  text-align: center;
}
.msg-group-locked h3 { margin: 0; font-size: 18px; }
.msg-group-locked .muted { max-width: 420px; line-height: 1.55; }
.msg-lock {
  padding: 32px 28px 24px;
  text-align: center;
  flex: 1;
}
.msg-lock h3 { margin: 12px 0 6px; font-size: 18px; }
.msg-lock .field { max-width: 280px; margin: 16px auto 0; text-align: left; }

@media (max-width: 960px) {
  .msg-panel-layout {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .msg-panel-side {
    border-right: 0;
    border-bottom: 1px solid #eef2f7;
    overflow: visible;
  }
  .msg-tabs--side {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px 16px;
  }
  .msg-tabs--side .msg-tab {
    border-left: 0;
    border-bottom: 2px solid transparent;
    flex: 1 1 auto;
    text-align: center;
    min-width: 90px;
  }
  .msg-tabs--side .msg-tab.is-on {
    border-left-color: transparent;
    border-bottom-color: #8b5cf6;
    background: transparent;
  }
  .msg-panel-side .msg-keeper-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .msg-panel-main {
    min-height: 55vh;
  }
}
@media (max-width: 860px) {
  .km-modal { padding: 6px; }
  .km-panel.msg-panel {
    width: calc(100vw - 8px);
    height: calc(100vh - 8px);
    max-height: calc(100vh - 8px);
    border-radius: 16px;
  }
  .msg-pane-text.is-on { padding: 12px 16px 14px; }
  .msg-pane:not(.msg-pane-text).is-on { padding: 16px; }
  .msg-textarea { font-size: 15px; padding: 16px; min-height: 240px; }
  .msg-limit-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .msg-limit-banner-action .btn { width: 100%; }
}

@media (max-width: 860px) {
  .mc-layout { grid-template-columns: 1fr; }
  .mc-cart { position: static; }
  .mc-upload-grid { grid-template-columns: 1fr; }
}

/* legacy keepers/setup helpers still used elsewhere */
.su-msg-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: start;
}
.su-side-cart {
  background: #f8fafc;
  color: #0f172a;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #e8ecf4;
}
.su-limit-box.is-hidden { display: none; }
.km-sub { margin: 4px 0 0; font-size: 13px; }
.su-block { margin-bottom: 20px; }
.su-block h5,
.su-msg-card h5 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}
.su-msg-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  align-items: start;
}
.su-msg-card {
  background: #f8fafc;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  padding: 16px;
}
.su-hint { margin: 0 0 12px; font-size: 13px; }
.su-vault-lock { text-align: center; max-width: 400px; margin: 0 auto; }
.su-vault-lock .bubble {
  width: 48px; height: 48px; border-radius: 14px; margin: 0 auto 12px;
  display: grid; place-items: center; background: #f5f3ff; color: #7c3aed;
}
.su-vault-lock h3 { margin: 0 0 6px; }
.su-add-row,
.su-inline-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}
.su-add-row .input,
.su-inline-form .input { flex: 1 1 200px; min-height: 44px; border-radius: 12px; }
.su-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  white-space: nowrap;
}
.su-plan-grid { margin-top: 4px; }
.su-plan-active {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  margin-bottom: 16px;
}
.setup-shell .setup-action {
  flex-shrink: 0;
  min-width: 160px;
}
.setup-shell .setup-steps .btn { white-space: nowrap; }
.setup-shell .progress {
  height: 6px;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}
.setup-shell .progress b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
  border-radius: 999px;
}
@media (max-width: 860px) {
  .su-msg-layout { grid-template-columns: 1fr; }
}
.km-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.km-head h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}
.km-x {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #f8fafc;
  color: #667085;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.km-x:hover { background: #eef2f7; color: #0f172a; }

.km-panel.keeper-form-panel {
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.keeper-form-panel .keeper-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.keeper-form-panel .keeper-form-head {
  padding: 20px 24px 16px;
  margin: 0;
  border-bottom: 1px solid #eef2f7;
}
.keeper-form-panel .keeper-form-head h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}
.keeper-form-panel .keeper-form-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.keeper-form-panel .keeper-form-foot {
  padding: 14px 24px 18px;
  border-top: 1px solid #eef2f7;
  background: #fafbff;
  flex-shrink: 0;
}
.keeper-slot-quota {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.keeper-quota-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}
.keeper-quota-chip.is-full {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}
.keeper-optional-tag {
  font-size: 11px;
  font-weight: 600;
  color: #c2410c;
}
.keeper-addon-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}
.keeper-modal-layout {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 0;
}
.keeper-modal-layout .field label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}
.keeper-modal-layout .field-ico input,
.keeper-modal-layout .field-ico select {
  min-height: 44px;
  font-size: 14px;
}
.keeper-modal-layout .err {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.4;
}
.keeper-modal-layout .fg-photo-col { display: grid; gap: 10px; justify-items: center; }
.keeper-modal-layout .fg-photo-wrap,
.keeper-modal-layout .fg-photo-placeholder,
.keeper-modal-layout img {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  object-fit: cover;
}
.keeper-modal-layout .fg-photo-placeholder {
  display: grid;
  place-items: center;
  background: #f5f3ff;
  color: #7c3aed;
  border: 1.5px dashed #ddd6fe;
}
.fg-keeper-empty {
  border: 1.5px dashed #ddd6fe;
  border-radius: 16px;
  min-height: 140px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: #7c3aed;
  font-weight: 700;
  text-decoration: none;
  background: #faf5ff;
  transition: background .15s ease, border-color .15s ease;
  width: 100%;
  cursor: pointer;
  font: inherit;
}
.fg-keeper-empty:hover { background: #f3e8ff; border-color: #c4b5fd; }
@media (max-width: 640px) {
  .keeper-modal-layout { grid-template-columns: 1fr; justify-items: center; }
  .keeper-modal-layout .fg-fields { width: 100%; }
}
.app-shell .btn-text {
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
}
.app-shell .btn-text.blue { color: #4f46e5; }
.app-shell .btn-text.red { color: #dc2626; }

/* Plans */
.app-shell .plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.app-shell .plan-card { position: relative; overflow: hidden; }
.app-shell .plan-card.is-featured {
  background: linear-gradient(180deg, #fff 0%, #faf5ff 100%);
  border-color: #ddd6fe;
}
.app-shell .plan-price {
  margin: 8px 0 12px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--p-ink);
}
.app-shell .plan-price span {
  font-size: 14px;
  font-weight: 600;
  color: var(--p-muted);
}
.app-shell .plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 8px;
  color: var(--p-muted);
  font-size: 13.5px;
}
.app-shell .addon-tile {
  padding: 16px;
  border: 1px solid var(--p-border);
  border-radius: 14px;
  background: var(--p-soft);
}
.app-shell .addon-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f5f3ff;
  color: var(--p-accent);
  margin-bottom: 10px;
}

/* Message vault helpers */
.app-shell .vault-lock {
  max-width: 480px;
}
.app-shell .vault-lock .bubble {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #f5f3ff;
  color: var(--p-accent);
}
.app-shell .msg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.app-shell .msg-head h3 { margin: 0; }
.app-shell .doc-split {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--p-border);
}

/* Check-in page */
.app-shell .checkin-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.app-shell .checkin-hero-ring {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
}
.app-shell .pill.purple,
.setup-shell .pill.purple {
  background: #efe7ff;
  color: #6d5efc;
}
.app-shell .fg-sec-head.is-center,
.app-shell .pay-center .fg-sec-head {
  justify-content: center;
}
.app-shell .actions.center { justify-content: center; }
.app-shell .link-block { display: inline-block; }
.app-shell .hint-xs { font-size: 12px; }

.setup-shell .setup-page-head {
  margin-bottom: 22px;
}
.setup-shell .setup-page-head h1 {
  margin: 0 0 6px;
  font-weight: 800;
}
.setup-shell .setup-back {
  display: inline-flex;
  color: var(--p-accent);
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 10px;
  text-decoration: none;
}

.app-shell .stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

/* Dashboard */
.dash { display: grid; gap: 16px; width: 100%; }
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  width: 100%;
}
.dash .stat {
  padding: 18px 20px;
  gap: 14px;
  align-items: flex-start;
  min-height: 128px;
}
.dash .stat .bubble {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}
.dash .stat .meta { display: grid; gap: 3px; min-width: 0; flex: 1; }
.dash .stat .lbl {
  color: #98a2b3;
  font-size: 12px;
  font-weight: 700;
}
.dash .stat b {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--p-ink);
  line-height: 1.2;
}
.dash .stat .hint {
  color: var(--p-muted);
  font-size: 12.5px;
  line-height: 1.4;
}
.dash .stat .pill { justify-self: start; margin-top: 2px; }
.dash .stat .stat-cta {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 750;
  color: var(--p-accent);
}
.dash .status-track {
  margin: 0;
  padding: 10px;
  gap: 6px;
  width: 100%;
}
.dash .status-step {
  padding: 10px 6px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 650;
}
.dash .status-step.is-on {
  background: var(--p-soft);
  font-weight: 750;
}
.dash .checkin-banner {
  margin: 0;
  width: 100%;
  border-radius: 18px;
  padding: 22px 26px;
  box-shadow: 0 16px 40px rgba(109, 94, 252, .18);
  box-sizing: border-box;
}
.dash .checkin-banner.is-noplan {
  background: linear-gradient(120deg, #faf5ff, #fff1f2);
  box-shadow: var(--p-shadow);
}
.dash .checkin-banner.is-noplan .checkin-left h2 { color: #6d28d9; }
.dash .checkin-cta:disabled {
  opacity: .95;
  cursor: default;
}
.checkin-ring-heart {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 50%, #ec4899 100%);
  box-shadow: 0 10px 22px rgba(236, 72, 153, .28);
  flex-shrink: 0;
}
.checkin-ring-heart svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}
.checkin-cta-heart {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #8b5cf6 0%, #d946ef 48%, #ec4899 100%) !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(236, 72, 153, .28);
  text-decoration: none;
  cursor: pointer;
}
.checkin-cta-heart svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}
.checkin-cta-heart:hover { filter: brightness(1.04); }
.dash-panels {
  gap: 14px;
  align-items: stretch;
  width: 100%;
}
.dash .card-head {
  margin-bottom: 14px;
  align-items: flex-start;
  gap: 12px;
}
.dash .card-head h3 { margin: 0; }
.dash .card-head .muted { margin: 4px 0 0; font-size: 13px; }
.dash .fg-overview { gap: 22px; margin-top: 4px; }
.dash .ring-multi {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.dash .ring-multi span {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--p-ink);
  letter-spacing: -.03em;
}
.dash .fg-checklist { gap: 10px; }
.dash .fg-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 650;
  color: #98a2b3;
}
.dash .fg-checklist li.ok { color: var(--p-ink); }
.dash .fg-checklist li .chk-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.dash .fg-checklist li .ico { display: none; }
.dash .overview-note { margin: 14px 0 0; font-size: 13px; }
.dash .fg-keeper-card.mini {
  background: var(--p-soft);
  border-color: #eef2f7;
}
.dash-addons { width: 100%; }
.dash-addons .fg-tags { margin-top: 4px; }
.dash .empty-inline { margin: 0; }

@media (max-width: 1100px) {
  .app-shell .main { padding: 20px 20px 48px; }
  .dash-stats,
  .app-shell .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-stats .stat:last-child,
  .app-shell .stats > :last-child { grid-column: 1 / -1; }
  .app-shell .fg-form-layout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .app-shell .main { padding: 16px 14px 40px; }
  .dash-stats,
  .app-shell .stats { grid-template-columns: 1fr; }
  .dash-stats .stat:last-child,
  .app-shell .stats > :last-child { grid-column: auto; }
  .dash .status-track { grid-template-columns: 1fr 1fr; }
  .dash .checkin-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .dash .checkin-right {
    text-align: left;
    max-width: none;
    width: 100%;
  }
  .dash .checkin-cta { width: 100%; justify-content: center; }
  .dash-panels,
  .app-shell .fg-grid-2,
  .app-shell .fg-grid-split,
  .app-shell .fg-keeper-grid,
  .setup-shell .fg-grid-2 { grid-template-columns: 1fr !important; }
  .dash .fg-overview { flex-direction: column; align-items: flex-start; }
  .app-top { padding: 10px 14px; }
}

@media (max-width: 520px) {
  .dash .status-track { grid-template-columns: 1fr; }
  .dash .stat { min-height: 0; }
  .user-menu-btn strong { display: none; }
}

/* Cart / checkout polish under portal + setup */
.app-shell .fg-cart-item,
.setup-shell .fg-cart-item {
  border-color: var(--p-border);
  border-radius: 14px;
  background: var(--p-soft);
}
.app-shell .pay-opt,
.setup-shell .pay-opt {
  border-radius: 14px;
  border-color: var(--p-border);
  background: #fff;
  transition: border-color .15s ease, background .15s ease;
}
.app-shell .pay-opt:has(input:checked),
.setup-shell .pay-opt:has(input:checked) {
  border-color: #ddd6fe;
  background: linear-gradient(90deg, #faf5ff, #fff);
}
.app-shell .fg-add-inline,
.setup-shell .fg-add-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  align-items: center;
}
.app-shell .fg-add-inline .input,
.setup-shell .fg-add-inline .input {
  flex: 1 1 180px;
  min-height: 44px;
  border-radius: 12px;
}
.app-shell .btn-dash,
.setup-shell .btn-dash {
  min-height: 44px;
  border-radius: 999px;
  border: 1.5px dashed #c4b5fd;
  background: #faf5ff;
  color: var(--p-accent);
  font-weight: 750;
  padding: 0 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.app-shell .btn-dash:hover,
.setup-shell .btn-dash:hover { background: #f3e8ff; }
.app-shell .fg-password-card {
  max-width: 480px;
}

/* Setup — plans modal */
.su-plans-panel {
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 920px);
  padding: 0;
  overflow: hidden;
}
.su-plans-head {
  padding: 22px 24px 0;
  flex-shrink: 0;
}
.su-plans-head .km-head { margin-bottom: 0; }
.su-plans-head .su-plan-active { margin-top: 14px; margin-bottom: 0; }
.su-plans-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 24px 8px;
}
.su-plans-foot {
  flex-shrink: 0;
  padding: 14px 24px 18px;
  border-top: 1px solid #eef2f7;
  background: #fafbff;
}
.su-plans-foot p { margin: 0; font-size: 13px; line-height: 1.5; }
.su-plans-section,
.su-addons-section { margin-bottom: 8px; }
.su-addons-section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #eef2f7;
}
.su-section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.su-section-head h5 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}
.su-section-head .muted {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}
.su-section-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f5f3ff;
  color: #7c3aed;
  flex-shrink: 0;
}
.su-section-ico.soft { background: #f8fafc; color: #64748b; }
.su-plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.su-plan-card {
  display: flex;
  flex-direction: column;
  padding: 20px 18px 18px;
  border-radius: 16px;
  min-height: 100%;
}
.su-plan-card .plan-list { flex: 1; }
.su-plan-card .su-plan-form { margin-top: auto; }
.su-plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
}
.su-addon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.su-addon-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.su-addon-card:hover {
  border-color: #ddd6fe;
  box-shadow: 0 8px 24px rgba(124, 58, 237, .08);
}
.su-addon-card.is-in-cart {
  border-color: #c4b5fd;
  background: linear-gradient(180deg, #fff 0%, #faf5ff 100%);
}
.su-addon-ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #f5f3ff;
  color: #7c3aed;
}
.su-addon-main { flex: 1; min-width: 0; }
.su-addon-main strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  color: #0f172a;
}
.su-addon-main .muted {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
}
.su-addon-price {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}
.su-addon-price span {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}
.su-addon-form { margin-top: auto; }
.su-addon-btn {
  width: 100%;
  justify-content: center;
}
@media (max-width: 820px) {
  .su-plan-grid { grid-template-columns: 1fr; }
  .su-addon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .su-plans-head,
  .su-plans-body,
  .su-plans-foot { padding-left: 16px; padding-right: 16px; }
  .su-addon-grid { grid-template-columns: 1fr; }
  .su-plan-badge { position: static; display: inline-block; margin-bottom: 8px; }
}

/* Magic check-in landing */
.ci-magic-card { text-align: center; max-width: 440px; }
.ci-magic-heart {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  box-shadow: 0 12px 32px rgba(139, 92, 246, .35);
}
.ci-magic-heart svg { width: 36px; height: 36px; fill: #fff; }
.ci-magic-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #7c3aed;
}
.ci-magic-next { margin: 12px 0 0; font-size: 14px; color: #64748b; }
.ci-magic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Admin check-in reminder track */
.adm-reminder-track { margin-bottom: 16px; }
.adm-reminder-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}
.adm-reminder-meta .k {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #94a3b8;
}
.adm-reminder-meta strong { font-size: 14px; color: #0f172a; }
.adm-reminder-steps { display: grid; gap: 10px; }
.adm-reminder-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #eef2f7;
  background: #fff;
}
.adm-reminder-step.is-done {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.adm-reminder-step.is-active {
  border-color: #ddd6fe;
  background: #faf5ff;
}
.adm-reminder-step.is-escalated {
  border-color: #fecaca;
  background: #fef2f2;
}
.adm-reminder-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  background: #eef2f7;
  color: #64748b;
  flex-shrink: 0;
}
.adm-reminder-step.is-done .adm-reminder-dot {
  background: #22c55e;
  color: #fff;
}
.adm-reminder-step.is-active .adm-reminder-dot {
  background: #8b5cf6;
  color: #fff;
}
.adm-reminder-step.is-escalated .adm-reminder-dot {
  background: #ef4444;
  color: #fff;
}
.adm-reminder-step .body strong { display: block; font-size: 14px; }
.adm-reminder-step .body span { display: block; font-size: 12px; color: #64748b; margin-top: 2px; }
.adm-reminder-log {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #7c3aed;
}

/* Portal — My Message (clean layout) */
.msg-page {
  display: grid;
  gap: 16px;
  width: 100%;
}
.msg-page-banner {
  display: grid;
  gap: 10px;
}
.msg-page-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.msg-page-banner .msg-format-rule,
.msg-page-banner .msg-vault-badge {
  margin: 0;
}
.msg-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: 16px;
  align-items: start;
}
.msg-page-main,
.msg-page-side {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 520px;
  padding: 0 !important;
  overflow: hidden;
}
.msg-page-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 22px 24px 18px;
  gap: 12px;
}
.msg-page-main .msg-editor-head {
  margin-bottom: 0;
}
.msg-page-main .msg-editor-head h3 {
  margin: 0 0 4px;
  font-size: 17px;
}
.msg-page-main .msg-limit-label span {
  color: var(--p-muted);
  font-weight: 600;
}
.msg-page-main .msg-editor {
  flex: 1;
  min-height: 280px;
}
.msg-page-main .msg-textarea {
  min-height: 280px;
  height: 100%;
}
.msg-page-main .msg-foot {
  padding-top: 0;
}
.msg-addon-strip {
  border-top: 1px solid var(--p-border);
  background: #fafbfd;
  padding: 12px 24px 16px;
  display: grid;
  gap: 10px;
}
.msg-addon-strip.is-compact {
  margin-top: auto;
}
.msg-addon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.msg-addon-item > span {
  font-size: 13px;
  color: var(--p-muted);
  font-weight: 600;
}
.msg-addon-item form { margin: 0; flex-shrink: 0; }
.msg-doc-head {
  padding: 22px 24px 0;
}
.msg-doc-head h3 {
  margin: 0 0 4px;
  font-size: 17px;
}
.msg-doc-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 24px 0;
  padding: 14px;
  border: 1px solid var(--p-border);
  border-radius: 14px;
  background: var(--p-soft);
}
.msg-doc-file strong {
  display: block;
  font-size: 14px;
  color: var(--p-ink);
}
.msg-doc-file .muted {
  font-size: 12.5px;
}
.msg-doc-upload {
  padding: 16px 24px 22px;
  margin-top: 8px;
}
.msg-doc-upload .field:last-of-type {
  margin-bottom: 14px;
}
.msg-page-side .msg-addon-strip {
  margin-top: auto;
}
@media (max-width: 960px) {
  .msg-page-grid { grid-template-columns: 1fr; }
  .msg-page-main,
  .msg-page-side { min-height: 0; }
  .msg-page-main .msg-textarea { min-height: 220px; }
}

/* Portal / customer panel — mobile drawer (desktop layout unchanged above 901px) */
@media (max-width: 900px) {
  .app-frame { grid-template-columns: 1fr; }
  .portal-menu-btn { display: inline-flex; }
  .app-top {
    justify-content: flex-end;
    padding: 12px 16px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    gap: 10px;
    z-index: 110;
  }
  .app-top-spacer { display: none; }
  .app-shell .main {
    padding: 16px max(16px, env(safe-area-inset-left)) 40px max(16px, env(safe-area-inset-right));
  }
  .app-shell .page-head { margin-bottom: 16px; }
  .app-shell .page-title { font-size: clamp(20px, 5vw, 26px); }
  .app-shell .page-sub { font-size: 13.5px; }
  .app-shell .side {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    width: min(280px, 86vw);
    max-width: 280px;
    height: 100vh;
    max-height: 100vh;
    align-self: auto;
    transform: translateX(-105%);
    transition: transform .24s ease;
    box-shadow: 16px 0 40px rgba(15, 23, 42, .12);
    pointer-events: none;
    visibility: hidden;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .app-frame.menu-open .side {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
  }
  .app-shell .side .brand,
  .app-shell .side .logo,
  .app-shell .side .group { display: block; }
  .app-shell .side-nav {
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 28px;
  }
  .app-shell .side a {
    white-space: normal;
    margin-bottom: 3px;
  }
  .app-shell .table-wrap {
    margin: 0 -2px;
    -webkit-overflow-scrolling: touch;
  }
  .app-shell .table { min-width: 560px; }
  .setup-top-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  }
  .setup-top-actions { flex-wrap: wrap; }
  .setup-shell .setup-body.wrap {
    padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  }
}

/* —— Safe Key (portal) —— */
.sk-page { max-width: 520px; }
.sk-page-card { padding: 22px 24px 24px; border-radius: 18px; }
.sk-page-lead { margin: 0 0 18px; font-size: 14px; line-height: 1.5; }
.sk-page-intro {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px;
}
.sk-page-intro .muted { margin: 0; font-size: 14px; line-height: 1.5; }
.sk-form { display: grid; gap: 14px; }
.sk-form-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-top: 4px;
}
.sk-link-muted { font-size: 14px; color: #667085; text-decoration: none; }
.sk-link-muted:hover { color: #7c3aed; text-decoration: underline; }
.sk-forgot-strip {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid #eef2f7;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px;
}
.sk-empty { text-align: center; padding: 12px 8px 4px; }
.sk-empty h3 { margin: 12px 0 8px; font-size: 20px; }
.sk-empty .muted { max-width: 360px; margin: 0 auto 18px; font-size: 14px; }
.sk-channel-list { border: 0; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.sk-channel-option { display: block; margin: 0; cursor: pointer; position: relative; }
.sk-channel-option input[type="radio"] {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.sk-channel-box {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 2px solid #e4e7ec; border-radius: 14px; background: #fff;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.sk-channel-option input:checked + .sk-channel-box {
  border-color: #8b5cf6; background: linear-gradient(180deg, #faf5ff, #fff);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .12);
}
.sk-channel-ico {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: #f4f3ff; color: #7c3aed;
}
.sk-channel-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sk-channel-text strong { font-size: 15px; color: #0f172a; }
.sk-channel-text .muted {
  font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sk-page-otp .sk-otp-wrap { padding: 20px 22px 24px; }
.sk-page-otp .otp-card-head h2 { font-size: 22px; margin: 0 0 8px; }
.fg-safe-key-links { font-size: 14px; margin: 4px 0 12px; line-height: 1.5; }

.msg-page-vault { margin-bottom: 16px; padding: 16px 18px; }
.msg-vault-flash { margin-bottom: 12px; }
.msg-safe-key-set.is-shared {
  padding: 0; border: none; background: transparent; gap: 14px;
}
.msg-safe-key-set-head {
  display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;
}
.msg-safe-key-set-head .bubble.sm {
  width: 42px; height: 42px; min-width: 42px; border-radius: 12px;
}
.msg-safe-key-set-head strong { display: block; font-size: 15px; margin-bottom: 4px; }
.msg-safe-key-set-head .muted { margin: 0; font-size: 13px; line-height: 1.45; }
.msg-safe-key-set-head .btn-sm { margin-left: auto; }
.msg-safe-key-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.msg-doc-pin-hint { margin: 8px 0 0; font-size: 13px; }
.msg-doc-remove-form {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
}
.msg-doc-remove-form .msg-safe-key-set.is-compact {
  padding: 0; border: none; background: transparent; margin: 0;
}
.msg-doc-remove-form .field.is-inline { margin: 0; min-width: 100px; }
.msg-doc-remove-form .field-ico { min-height: 40px; }
.msg-doc-remove-pin { width: 96px; font-size: 14px; letter-spacing: .12em; text-align: center; }
.bubble.sm { display: inline-grid; place-items: center; }

@media (max-width: 640px) {
  .msg-safe-key-grid { grid-template-columns: 1fr; }
  .msg-safe-key-set-head .btn-sm { margin-left: 0; width: 100%; }
  .sk-channel-text .muted { white-space: normal; }
}
