/* Cardie — estilos (marca, painel e página pública) */
:root {
  --c-bg: #F7F8FC; --c-surface: #FFFFFF; --c-soft: #F1F3FA; --c-border: #E6E8F2;
  --c-ink: #1D2033; --c-muted: #5E6480;
  --c-primary: #4453E8; --c-primary-hover: #3442D6; --c-primary-soft: #EEF0FF;
  --c-mint: #1FA97F; --c-mint-soft: #E2F7EF; --c-peach-soft: #FFF1EA; --c-sun-soft: #FFF5D6;
  --c-danger: #BE3535;
  --shadow: 0 1px 2px rgba(29,32,51,.04), 0 10px 30px rgba(29,32,51,.06);
  --font: 'Ubuntu', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--c-bg); color: var(--c-ink); line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--c-primary); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(68,83,232,.4); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--c-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- componentes da marca ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-ink); font-weight: 700; font-size: 23px; letter-spacing: -.01em; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 500; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, box-shadow .15s, transform .1s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: 0 6px 16px rgba(68,83,232,.22); }
.btn-primary:hover { background: var(--c-primary-hover); color: #fff; }
.btn-ghost { background: var(--c-surface); border-color: var(--c-border); color: var(--c-ink); }
.btn-ghost:hover { background: var(--c-soft); }
.btn-soft { background: var(--c-primary-soft); color: var(--c-primary); }
.btn-soft:hover { background: #E2E6FF; }
.btn-danger { background: transparent; border-color: #EFC6C6; color: var(--c-danger); }
.btn-danger:hover { background: #FDF1F1; }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.icon-btn { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px;
  border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-ink); cursor: pointer; }
.icon-btn:hover { background: var(--c-soft); }
.icon-btn svg { width: 19px; height: 19px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
.field .hint { font-weight: 400; color: var(--c-muted); font-size: 12px; }
.input { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--c-border); background: var(--c-surface);
  font-size: 15px; font-weight: 400; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-soft); }
textarea.input { min-height: 90px; resize: vertical; line-height: 1.4; }
.input-prefix { display: flex; align-items: center; border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-surface); overflow: hidden; }
.input-prefix:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-soft); }
.input-prefix span { padding: 0 2px 0 12px; color: var(--c-muted); font-size: 15px; white-space: nowrap; }
.input-prefix .input { border: none; box-shadow: none; padding-left: 2px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--c-border); background: var(--c-surface); font-size: 14px; cursor: pointer; transition: all .15s; }
.chip:hover { border-color: #C9CDE0; }
.chip[aria-pressed="true"] { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.switch { flex: none; width: 46px; height: 28px; border-radius: 999px; border: none; padding: 3px; background: #CDD1E0; cursor: pointer; display: flex; transition: background .18s; }
.switch span { width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .18s; }
.switch.on { background: var(--c-mint); }
.switch.on span { transform: translateX(18px); }
.tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.tag-feat { background: var(--c-sun-soft); color: #7A5800; }
.tag-sched { background: var(--c-primary-soft); color: var(--c-primary); }
.tag-soon { background: var(--c-peach-soft); color: #9A3E1C; }
.err { color: var(--c-danger); font-size: 13px; margin: 0; min-height: 1.2em; }
.ok { color: var(--c-mint); font-size: 13px; margin: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); background: var(--c-ink); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-size: 14px; opacity: 0; transition: all .2s; z-index: 200; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal-back { position: fixed; inset: 0; background: rgba(29,32,51,.35); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 100; animation: fade .15s ease; }
.modal { position: relative; background: var(--c-surface); border-radius: 22px; box-shadow: 0 30px 80px rgba(29,32,51,.25); width: 100%; max-width: 440px; padding: 28px;
  display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 32px); overflow: auto; animation: rise .2s ease; }
.modal h2 { margin: 0; font-size: 23px; }
.modal-x { position: absolute; top: 14px; right: 14px; }
.demo-bar { background: var(--c-sun-soft); color: #5C4300; font-size: 13px; padding: 8px 16px; text-align: center; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- painel ---------- */
.app { display: flex; min-height: 100vh; }
.side { width: 250px; flex: none; background: var(--c-surface); border-right: 1px solid var(--c-border); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; }
.side .logo { padding: 2px 10px 22px; }
.nav-btn { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 12px; border: none; background: transparent; color: var(--c-muted);
  font-size: 15px; cursor: pointer; text-align: left; width: 100%; transition: background .15s, color .15s; }
.nav-btn svg { width: 20px; height: 20px; flex: none; }
.nav-btn:hover { background: var(--c-soft); color: var(--c-ink); }
.nav-btn[aria-current="page"] { background: var(--c-primary-soft); color: var(--c-primary); font-weight: 500; }
.nav-count { margin-left: auto; font-size: 12px; background: var(--c-mint-soft); color: #0F6B4F; padding: 2px 8px; border-radius: 999px; }
.side-plan { margin-top: auto; padding: 16px; border-radius: 16px; background: var(--c-peach-soft); display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.side-plan strong { font-size: 14px; }
.side-plan .meter { height: 6px; border-radius: 3px; background: #F6D9CB; overflow: hidden; }
.side-plan .meter i { display: block; height: 100%; background: #E07A52; border-radius: 3px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 28px; background: rgba(247,248,252,.86);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-border); position: sticky; top: 0; z-index: 20; }
.url-pill { display: flex; align-items: center; gap: 10px; padding: 5px 5px 5px 16px; border-radius: 999px; background: var(--c-surface); border: 1px solid var(--c-border); min-width: 0; max-width: 100%; }
.url-pill a { color: var(--c-ink); text-decoration: none; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.url-pill a:hover { color: var(--c-primary); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-mint); flex: none; box-shadow: 0 0 0 4px var(--c-mint-soft); }
.top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.save-state { font-size: 13px; color: var(--c-muted); margin-right: 4px; display: inline-flex; align-items: center; gap: 6px; }
.save-state svg { width: 16px; height: 16px; color: var(--c-mint); }
.save-state[data-state="err"] { color: var(--c-danger); }
.work { flex: 1; display: flex; gap: 36px; padding: 28px; align-items: flex-start; justify-content: center; }
.panel { flex: 1; min-width: 0; max-width: 780px; display: flex; flex-direction: column; gap: 18px; animation: rise .2s ease; }
.panel h1 { margin: 0; font-size: 28px; letter-spacing: -.015em; }
.panel-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.panel-head p { margin: 4px 0 0; }
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.card h2 { margin: 0; font-size: 17px; font-weight: 500; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.preview-col { width: 340px; flex: none; position: sticky; top: 96px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.preview-col .muted { font-size: 13px; }
.phone { width: 320px; height: 660px; border-radius: 46px; padding: 10px; background: #1D2033; box-shadow: 0 30px 60px rgba(29,32,51,.18); }
.phone-screen { width: 100%; height: 100%; border-radius: 36px; overflow: auto; background: #fff; scrollbar-width: none; }
.phone-screen::-webkit-scrollbar { display: none; }
.phone-screen .cd-page { min-height: 100%; }
.phone-screen .cd-inner { padding-top: 40px; }
.only-narrow { display: none; }

.add-panel { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; animation: rise .2s ease; }
.add-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.add-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--c-border); background: var(--c-bg); cursor: pointer; text-align: left;
  min-height: 66px; transition: border-color .15s, transform .15s, box-shadow .15s, background .15s; }
.add-item:hover { border-color: var(--c-primary); background: var(--c-surface); transform: translateY(-1px); box-shadow: var(--shadow); }
.add-item b { display: block; font-size: 14px; font-weight: 500; }
.add-item small { color: var(--c-muted); font-size: 12px; }
.bico { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--c-primary-soft); color: var(--c-primary); display: flex; align-items: center; justify-content: center; }
.bico svg { width: 20px; height: 20px; }
.bico.t-whatsapp, .bico.t-pix { background: var(--c-mint-soft); color: #0F7A58; }
.bico.t-product, .bico.t-countdown { background: var(--c-peach-soft); color: #B44A22; }
.bico.t-header, .bico.t-text { background: var(--c-soft); color: var(--c-ink); }

.blist { display: flex; flex-direction: column; gap: 10px; }
.brow { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 18px; padding: 12px 14px; transition: box-shadow .15s, border-color .15s; }
.brow:hover { box-shadow: var(--shadow); }
.brow.open { border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-soft); }
.brow.off .brow-top > :not(.switch) { opacity: .5; }
.brow.dragging { opacity: .35; }
.brow-top { display: flex; align-items: center; gap: 12px; }
.grip { cursor: grab; color: #A4A9BF; display: flex; padding: 8px 0; border: none; background: none; }
.grip svg { width: 18px; height: 18px; }
.brow-main { flex: 1; min-width: 0; min-height: 44px; border: none; background: none; text-align: left; cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0; }
.brow-title { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow-sub { font-size: 13px; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow-clicks { font-size: 12px; color: var(--c-muted); white-space: nowrap; }
.brow-edit { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--c-border); margin-top: 12px; padding-top: 16px; animation: rise .2s ease; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-2 .wide { grid-column: 1 / -1; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.img-edit { display: flex; gap: 16px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--c-bg); border: 1px solid var(--c-border); }
.img-thumb { width: 96px; height: 96px; flex: none; border-radius: 12px; overflow: hidden; background: var(--c-surface); border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center; color: #A4A9BF; }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.img-thumb svg { width: 28px; height: 28px; }
.img-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.img-label { font-size: 13px; font-weight: 500; }
.img-link { font-weight: 400; color: var(--c-muted); font-size: 12px; }
.row-actions .btn[aria-pressed="true"] { background: var(--c-sun-soft); border-color: #F2D58A; color: #6B4C00; }
.empty { padding: 44px 24px; text-align: center; border: 2px dashed var(--c-border); border-radius: 18px; color: var(--c-muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }

.theme-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.theme-card { border: 2px solid var(--c-border); border-radius: 16px; padding: 8px; background: var(--c-surface); cursor: pointer; display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; font-weight: 500; transition: border-color .15s, box-shadow .15s; }
.theme-card:hover { border-color: #C9CDE0; }
.theme-card[aria-pressed="true"] { border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-soft); }
.theme-sw { height: 88px; border-radius: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 0 14px; }
.theme-sw i { display: block; width: 100%; height: 12px; border-radius: 6px; }
.theme-sw b { width: 20px; height: 20px; border-radius: 50%; }
.opt-group { display: flex; flex-direction: column; gap: 10px; }
.opt-group h3 { margin: 0; font-size: 14px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.kpi span { font-size: 13px; color: var(--c-muted); }
.kpi strong { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 170px; border-bottom: 1px solid var(--c-border); }
.bars div { flex: 1; background: var(--c-primary); border-radius: 4px 4px 0 0; min-height: 2px; opacity: .8; transition: opacity .15s; }
.bars div:hover { opacity: 1; }
.bars-x { display: flex; justify-content: space-between; font-size: 12px; color: var(--c-muted); }
.rank { display: flex; flex-direction: column; gap: 6px; }
.rank-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.rank-bar { height: 8px; border-radius: 4px; background: var(--c-soft); }
.rank-bar i { display: block; height: 100%; border-radius: 4px; background: var(--c-mint); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--c-border); }
.table th { font-weight: 500; color: var(--c-muted); font-size: 13px; }
.avatar-edit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.av { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; background: var(--c-primary-soft); color: var(--c-primary); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 26px; flex: none; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.plan { border: 1px solid var(--c-border); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.plan.current { border-color: var(--c-primary); background: var(--c-primary-soft); }
.plan ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--c-muted); }
.qr-img { width: 240px; height: 240px; align-self: center; border-radius: 12px; border: 1px solid var(--c-border); }
/* seletor de perfis */
.pswitch { position: relative; margin: 0 0 14px; }
.pswitch-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 14px; border: 1px solid var(--c-border);
  background: var(--c-bg); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.pswitch-btn:hover { border-color: #C9CDE0; background: var(--c-surface); }
.pswitch-btn > svg { width: 18px; height: 18px; color: var(--c-muted); flex: none; }
.pav { width: 36px; height: 36px; border-radius: 50%; flex: none; object-fit: cover; background: var(--c-primary); color: #fff; display: inline-flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 13px; }
.pav-new { background: var(--c-primary-soft); color: var(--c-primary); }
.pav-new svg { width: 18px; height: 18px; }
.pav-lg { width: 64px; height: 64px; font-size: 22px; box-shadow: 0 0 0 4px #fff; }
.pinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pinfo b, .pinfo small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pinfo b { font-weight: 500; font-size: 14px; }
.pinfo small { color: var(--c-muted); font-size: 12px; }
.pmenu { position: absolute; left: 0; top: calc(100% + 6px); width: max(100%, 260px); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 16px;
  box-shadow: 0 20px 50px rgba(29,32,51,.16); padding: 6px; z-index: 60; display: flex; flex-direction: column; gap: 2px; max-height: 380px; overflow: auto; animation: rise .15s ease; }
.pmenu-label { font-size: 12px; color: var(--c-muted); padding: 8px 10px 4px; }
.pmenu-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; border: none; background: none; cursor: pointer; text-align: left; width: 100%;
  min-height: 48px; font-size: 14px; color: var(--c-ink); }
.pmenu-item:hover { background: var(--c-soft); }
.pmenu-item[aria-current="true"] { background: var(--c-primary-soft); }
.pmenu-item > svg { width: 18px; height: 18px; color: var(--c-primary); flex: none; }
.pmenu-new { color: var(--c-primary); font-weight: 500; border-top: 1px solid var(--c-border); border-radius: 0 0 10px 10px; margin-top: 4px; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pcard { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding-bottom: 16px; }
.pcard.current { border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-soft); }
.pcard-top { height: 92px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 16px; position: relative; }
.pcard-top .pav-lg { transform: translateY(24px); }
.pcard-sw { display: flex; gap: 6px; align-self: center; }
.pcard-sw i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid transparent; }
.pcard-body { display: flex; flex-direction: column; gap: 4px; padding: 26px 16px 0; align-items: flex-start; }
.pcard-body b { font-size: 16px; font-weight: 500; }
.pcard-body a { font-size: 14px; text-decoration: none; word-break: break-all; }
.pcard .row-actions { padding: 0 16px; }
.pcard-new { align-items: center; justify-content: center; text-align: center; padding: 28px 16px; border: 2px dashed var(--c-border); background: transparent; cursor: pointer;
  min-height: 220px; gap: 8px; font: inherit; color: var(--c-ink); transition: border-color .15s, background .15s; }
.pcard-new:hover { border-color: var(--c-primary); background: var(--c-primary-soft); }
.loading { padding: 80px; text-align: center; color: var(--c-muted); }

@media (max-width: 1180px) {
  .preview-col { display: none; }
  .only-narrow { display: inline-flex; }
  body.show-preview .preview-col { display: flex; position: fixed; inset: 0; top: 0; z-index: 90; background: rgba(29,32,51,.45); backdrop-filter: blur(4px);
    justify-content: center; padding: 20px; width: auto; }
  body.show-preview .preview-col .muted { color: #fff; }
  .work { padding: 22px; }
}
@media (max-width: 820px) {
  .app { flex-direction: column; }
  .side { position: static; height: auto; width: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 10px 12px; border-right: none; border-bottom: 1px solid var(--c-border); gap: 2px; }
  .side .logo { padding: 0 8px 0 2px; font-size: 20px; }
  .side-plan, .nav-count { display: none; }
  .nav-btn { width: auto; white-space: nowrap; padding: 0 10px; }
  .topbar { padding: 12px 16px; position: static; }
  .work { padding: 16px; }
  .add-grid, .theme-grid, .kpis, .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid { grid-template-columns: minmax(0, 1fr); }
  .pswitch { margin: 0 6px 0 0; flex: none; width: 210px; position: static; }
  .pmenu { left: 12px; right: 12px; top: auto; width: auto; margin-top: 6px; position: absolute; }
  .side { position: relative; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .brow-clicks { display: none; }
}

/* ---------- página pública (cd-*) ---------- */
.cd-page { background: var(--p-bg); color: var(--p-text); font-family: var(--p-font); min-height: 100vh; display: flex; justify-content: center; }
.cd-inner { width: 100%; max-width: 580px; padding: 56px 20px 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cd-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--p-accent); color: var(--p-on-accent); display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 700; box-shadow: 0 0 0 4px var(--p-card), 0 10px 30px rgba(0,0,0,.08); flex: none; }
.cd-name { margin: 10px 0 0; font-size: 22px; font-weight: 700; text-align: center; }
.cd-bio { margin: 0; color: var(--p-muted); text-align: center; font-size: 15px; max-width: 440px; white-space: pre-line; }
.cd-social { display: flex; gap: 8px; margin: 6px 0 2px; flex-wrap: wrap; justify-content: center; }
.cd-social a { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--p-text); background: var(--p-card); border: 1px solid var(--p-border); transition: transform .15s; }
.cd-social a:hover { transform: translateY(-2px); }
.cd-social svg { width: 19px; height: 19px; }
.cd-blocks { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.layout-grid .cd-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout-grid .cd-h, .layout-grid .cd-text, .layout-grid .cd-media, .layout-grid .cd-form, .layout-grid .cd-spotify, .layout-grid .cd-prod { grid-column: 1 / -1; }
.cd-btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; padding: 12px 18px; border-radius: var(--p-radius); background: var(--p-card); color: var(--p-text);
  border: 1px solid var(--p-border); text-decoration: none; font-weight: 500; font-size: 15px; text-align: center; cursor: pointer; width: 100%; font-family: inherit;
  transition: transform .15s, box-shadow .15s; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
a.cd-btn:hover, button.cd-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.cd-btn.is-empty { opacity: .6; }
.cd-lbl { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cd-lbl small { font-size: 12px; font-weight: 400; color: var(--p-muted); }
.cd-count-l { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px; }
.cd-ico { display: none; width: 36px; height: 36px; flex: none; border-radius: min(var(--p-radius), 10px); background: var(--p-bg); color: var(--p-accent); align-items: center; justify-content: center; }
.cd-ico svg { width: 18px; height: 18px; }
.layout-cards .cd-btn { justify-content: flex-start; text-align: left; }
.layout-cards .cd-count-l { justify-content: flex-start; }
.layout-cards .cd-ico { display: flex; }
.btn-outline .cd-btn { background: transparent; border: 2px solid var(--p-text); box-shadow: none; }
.btn-solid .cd-btn { background: var(--p-accent); color: var(--p-on-accent); border-color: transparent; }
.btn-solid .cd-btn small, .cd-btn.is-feat small { color: inherit; opacity: .85; }
.btn-solid .cd-ico, .cd-btn.is-feat .cd-ico { background: rgba(255,255,255,.18); color: inherit; }
.cd-btn.is-feat { background: var(--p-accent); color: var(--p-on-accent); border-color: transparent; }
.btn-solid .cd-btn.is-feat { background: var(--p-text); color: var(--p-bg); }
.cd-prod.is-feat, .cd-media.is-feat, .cd-form.is-feat { box-shadow: 0 0 0 2px var(--p-accent); }
.anim-pulse .is-feat { animation: cdPulse 2.4s ease-in-out infinite; }
@keyframes cdPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
.anim-rise .cd-blocks > * { animation: cdRise .5s ease both; }
.anim-rise .cd-blocks > *:nth-child(2) { animation-delay: .05s; } .anim-rise .cd-blocks > *:nth-child(3) { animation-delay: .1s; }
.anim-rise .cd-blocks > *:nth-child(4) { animation-delay: .15s; } .anim-rise .cd-blocks > *:nth-child(5) { animation-delay: .2s; }
.anim-rise .cd-blocks > *:nth-child(n+6) { animation-delay: .25s; }
@keyframes cdRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cd-page *, .cd-page { animation: none !important; transition: none !important; } }
.cd-h { margin: 14px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: center; color: var(--p-muted); }
.cd-text { margin: 0; text-align: center; font-size: 15px; white-space: pre-line; }
.cd-muted { color: var(--p-muted); }
.cd-prod { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: min(var(--p-radius), 20px); background: var(--p-card); border: 1px solid var(--p-border);
  text-decoration: none; color: var(--p-text); transition: transform .15s, box-shadow .15s; }
a.cd-prod:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.cd-prod-img { width: 76px; height: 76px; flex: none; border-radius: min(var(--p-radius), 14px); overflow: hidden; background: var(--p-bg); color: var(--p-muted); display: flex; align-items: center; justify-content: center; }
.cd-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.cd-prod-img svg { width: 26px; height: 26px; }
.cd-prod-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.cd-prod-info strong { font-weight: 500; font-size: 15px; }
.cd-prod-info span { color: var(--p-muted); font-size: 14px; }
.cd-prod-cta { font-size: 13px; font-weight: 700; padding: 9px 14px; border-radius: 999px; background: var(--p-accent); color: var(--p-on-accent); flex: none; }
.cd-media { margin: 0; border-radius: min(var(--p-radius), 20px); overflow: hidden; background: var(--p-card); border: 1px solid var(--p-border); }
.cd-embed { position: relative; aspect-ratio: 16 / 9; background: #111; }
.cd-embed iframe, .cd-embed img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.cd-play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; }
.cd-play svg { width: 24px; height: 24px; }
.cd-media figcaption { padding: 11px 14px; font-size: 14px; font-weight: 500; }
.cd-spotify iframe { width: 100%; border: 0; border-radius: 12px; display: block; }
.cd-form { padding: 16px; border-radius: min(var(--p-radius), 20px); background: var(--p-card); border: 1px solid var(--p-border); display: flex; flex-direction: column; gap: 10px; }
.cd-form label { font-weight: 500; font-size: 15px; text-align: center; }
.cd-form div { display: flex; gap: 8px; }
.cd-form input { flex: 1; min-width: 0; min-height: 46px; border-radius: 12px; border: 1px solid var(--p-border); background: var(--p-bg); color: var(--p-text); padding: 0 12px; font: inherit; }
.cd-form button { min-height: 46px; padding: 0 16px; border-radius: 12px; border: none; background: var(--p-accent); color: var(--p-on-accent); font: inherit; font-weight: 700; cursor: pointer; }
.cd-form-ok { margin: 0; text-align: center; font-size: 14px; color: var(--p-muted); }
.cd-brand { margin-top: auto; padding-top: 32px; font-size: 13px; color: var(--p-muted); text-decoration: none; }
.cd-brand:hover { color: var(--p-text); }
