/* Visual do app do dono: fundo suave, cards brancos com sombra leve, fotos redondas e botao com degrade. Mantem as cores da Knissa. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --paper: #FCF3FB; --line: #EBD3EE; --line-strong: #E2BEE6; --tile: #F8DDF4; }
}
:root[data-theme="light"] { --paper: #FCF3FB; --line: #EBD3EE; --line-strong: #E2BEE6; --tile: #F8DDF4; }

.list { border-radius: 20px; box-shadow: var(--shadow); border-color: transparent; }
.list > li + li { border-top-color: var(--line); }
.item.has-avatar { grid-template-columns: 52px 1fr auto; gap: 2px 14px; padding-block: 12px; }
.item.has-avatar .avatar { width: 52px; height: 52px; overflow: hidden; box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--line-strong); }
.item.has-avatar .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.btn.primary:not(:disabled) { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 82%, #fff), var(--brand) 60%, var(--brand-hover)); border-color: transparent; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--brand) 70%, transparent); }

.page-head h1 { letter-spacing: -.02em; }
.badge.open { background: var(--pen-soft); color: var(--pen); }
@media (max-width: 480px) {
  .item.has-avatar { grid-template-columns: 44px 1fr auto; gap: 2px 12px; }
  .item.has-avatar .avatar { width: 44px; height: 44px; }
}

/* Vitrine do dono */
.vt { display: grid; gap: 22px; }
.vt-cover { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--tile); box-shadow: var(--shadow); }
.vt-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vt-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(17 21 28 / .25), transparent 35%, rgb(17 21 28 / .7)); }
.vt-edit { position: absolute; z-index: 2; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: rgb(17 21 28 / .55); color: #fff; font: 650 .875rem var(--body); cursor: pointer; backdrop-filter: blur(8px); }
.vt-edit svg { width: 18px; height: 18px; }
.vt-id { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; display: flex; align-items: center; gap: 12px; color: #fff; }
.vt-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px #fff; background: #fff; }
.vt-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-name { min-width: 0; }
.vt-name h1 { margin: 0; font: 700 1.375rem/1.15 var(--display); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-name p { margin: 2px 0 0; font-size: .875rem; opacity: .9; }
.vt-acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.vt-acts .btn { flex: 1 1 auto; justify-content: center; }
.vt-sec { display: grid; gap: 12px; }
.vt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vt-head h2 { margin: 0; font: 700 1.125rem var(--display); }
.vt-promos { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.vt-promo { position: relative; flex: 0 0 82%; max-width: 340px; scroll-snap-align: start; aspect-ratio: 16 / 8; border: 0; padding: 0; border-radius: 20px; overflow: hidden; text-align: left; cursor: pointer; box-shadow: var(--shadow); color: #fff; }
.vt-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vt-promo-t { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 14px; background: linear-gradient(180deg, transparent 30%, rgb(17 21 28 / .72)); }
.vt-promo-t b { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--brand); font: 700 .75rem var(--body); }
.vt-promo-t span { font: 700 1.0625rem/1.2 var(--display); }
.vt-promo-t small { opacity: .9; }
.vt-prods { display: flex; gap: 12px; overflow-x: auto; text-decoration: none; color: inherit; padding-bottom: 4px; }
.vt-prod { flex: 0 0 118px; display: grid; gap: 2px; }
.vt-prod img { width: 118px; height: 118px; border-radius: 16px; object-fit: cover; background: var(--pen-soft); display: block; box-shadow: var(--shadow); }
.vt-prod-n { margin-top: 6px; font-weight: 650; font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-prod-p { color: var(--ink-2); font-size: .875rem; }
@media (min-width: 900px) { .vt { max-width: 860px; } .vt-promo { flex-basis: 340px; } }

/* Pedidos, produtos e conta */
.chips { margin-top: 14px; margin-bottom: 14px; }
.chip { background: var(--card); border-color: var(--line); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 82%, #fff), var(--brand-hover)); color: var(--on-brand); border-color: transparent; }
.card { border-radius: 20px; box-shadow: var(--shadow); border-color: transparent; }
.pframe { border-radius: 18px; box-shadow: var(--shadow); }
.ac-profile { flex-wrap: wrap; display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 18px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.ac-avatar { flex: none; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--brand); }
.ac-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-who { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ac-who strong { font: 700 1.0625rem var(--display); overflow-wrap: anywhere; }
.ac-who span { color: var(--ink-2); font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty.card .art svg { width: 56px; height: 56px; }
.pa-img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 14px; display: block; margin-bottom: 10px; }

/* ---------- assinatura ---------- */
.as { display: grid; gap: 16px; max-width: 640px; }
.as-status { display: grid; gap: 4px; padding: 18px; }
.as-big { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -.01em; }
.as-plans { display: grid; gap: 12px; }
.as-plan { display: grid; gap: 12px; padding: 18px; }
.as-plan.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.as-plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.as-plan-head strong { font-size: 1.125rem; }
.as-price b { font-size: 1.25rem; }
.as-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.as-list li { display: flex; gap: 8px; align-items: flex-start; }
.as-list svg { width: 18px; height: 18px; flex: none; color: var(--brand); margin-top: 2px; }
.as-note { margin: 0; }
.as-plan .chip { justify-self: start; }
.trial-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 10px 14px; border-radius: var(--r-md); background: var(--warn-soft); color: var(--warn); font-size: .9375rem; }
.trial-bar a { font-weight: 600; color: inherit; }

.ac-name { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; text-align: right; min-width: 0; overflow-wrap: anywhere; }

.vt-info { display: grid; gap: 10px; padding: 16px; }
.vt-line { margin: 0; display: flex; align-items: flex-start; gap: 10px; overflow-wrap: anywhere; }
.vt-line svg { width: 20px; height: 20px; flex: none; color: var(--pen); margin-top: 1px; }
.vt-about { margin: 0; color: var(--ink-2); }

/* redes sociais (folha Sobre o negocio) */
.soc { display: grid; gap: 8px; }
.soc-title { font-weight: 600; }
.soc-rows { display: grid; gap: 8px; }
.soc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: 10px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.soc-row .input { grid-column: 1 / -1; }
.soc-del { min-width: 38px; padding: 0 8px; }
.soc-del svg { width: 18px; height: 18px; }

.ac-mail { min-width: 0; }
.ac-mail .num { overflow-wrap: anywhere; font-weight: 600; }

.ac-profile .ac-link { flex: 1 0 100%; justify-content: center; }
.ac-who span { white-space: normal; overflow-wrap: anywhere; }
.nudge { display: grid; gap: 10px; justify-items: start; }
.nudge:not(:empty) { margin: 14px 0 6px; }

/* seletor da cor de destaque (tela Pagina de reservas) */
.accent-row { display: flex; flex-wrap: wrap; gap: 10px; }
.accent-opt { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 2px solid transparent; padding: 3px; background: transparent; cursor: pointer; }
.accent-opt::before { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--sw); }
.accent-opt[aria-checked="true"] { border-color: var(--ink); }
.accent-opt:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.accent-opt[data-k="roxo"] { --sw: #800080; }
.accent-opt[data-k="rosa"] { --sw: #C2185B; }
.accent-opt[data-k="vinho"] { --sw: #8E1B3A; }
.accent-opt[data-k="azul"] { --sw: #1D5FD1; }
.accent-opt[data-k="verde"] { --sw: #0F7B5F; }
.accent-opt[data-k="laranja"] { --sw: #B8500A; }
.accent-opt[data-k="grafite"] { --sw: #2B2F3A; }
.accent-opt[data-k="dourado"] { --sw: #9A6B00; }

/* ---------- ajuda: assistente, chamados e central ---------- */
.sp-thread { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.sp-msg { display: grid; gap: 4px; max-width: 88%; padding: 10px 14px 8px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface, var(--paper)); justify-self: start; }
.sp-msg.dono { justify-self: end; background: var(--brand); border-color: transparent; color: var(--on-brand); border-bottom-right-radius: 6px; }
.sp-msg.assistente, .sp-msg.equipe { border-bottom-left-radius: 6px; }
.sp-who { font-size: .75rem; font-weight: 700; opacity: .75; }
.sp-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.sp-time { font-size: .6875rem; justify-self: end; }
.sp-msg.dono .sp-time { color: inherit; opacity: .7; }
.sp-compose { display: grid; gap: 10px; margin-top: 14px; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sp-state { margin: 6px 0 0; font-size: .875rem; color: var(--ink-2); }
.sp-state.equipe { color: var(--pen, var(--brand)); font-weight: 600; }
.sp-status { font-size: .8125rem; font-weight: 650; }
.sp-status.equipe { color: var(--pen, var(--brand)); }
.sp-status.fechado { color: var(--ink-3); }
.sp-articles { display: grid; gap: 8px; }
.sp-article { border: 1px solid var(--line); border-radius: 16px; background: var(--surface, var(--paper)); padding: 0 16px; }
.sp-article summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 650; }
.sp-article[open] summary { color: var(--pen, var(--brand)); }
.sp-article p { margin: 0 0 14px; color: var(--ink-2); line-height: 1.5; }
