/* =========================================================
   PAINEL — visual AssisIA (carregado depois de styles.css)
   ========================================================= */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-name { font-size: 27px; font-weight: 800; letter-spacing: -.8px; line-height: 1; color: #fff; }
.brand-name span { color: #3b82f6; }
.brand-tag { font-size: 13px; color: #c3cad9; margin-top: 4px; }
.brand.dark .brand-name { color: var(--ink); }
.brand.dark .brand-tag { color: var(--muted); }
.brand.sm .brand-mark { width: 36px; height: 36px; }
.brand.sm .brand-name { font-size: 22px; }

.app-shell .sidebar { width: 264px; background: #0b1730; border-right: 0; padding: 22px 10px 18px; color: #fff; }
.app-shell .sidebar .brand { margin: 0 14px 30px; }
.app-shell .nav { gap: 4px; }
.app-shell .nav-item { color: #d0d6e2; padding: 12px 16px; font-size: 15px; font-weight: 500; gap: 16px; border-radius: 10px; }
.app-shell .nav-item .icon { color: #d0d6e2; width: 21px; height: 21px; }
.app-shell .nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.app-shell .nav-item.active { background: #2563eb; color: #fff; font-weight: 600; box-shadow: 0 6px 16px -6px rgba(37,99,235,.7); }
.app-shell .nav-item.active .icon { color: #fff; }
.nav-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #e5484d; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }

.help-card { margin: auto 10px 0; padding: 22px 18px; border-radius: 14px; background: #101f3d; border: 1px solid #1d2d4f; text-align: center; }
.help-card .icon { width: 34px; height: 34px; color: #3b82f6; }
.help-card b { display: block; font-size: 16.5px; margin: 10px 0 6px; }
.help-card p { margin: 0 0 16px; font-size: 14px; color: #c3cad9; line-height: 1.5; }
.help-card a { display: block; padding: 9px; border: 1px solid #44557a; border-radius: 9px; color: #fff; text-decoration: none; font-weight: 650; font-size: 14.5px; }
.help-card a:hover { background: rgba(255,255,255,.06); }
.nav-spacer { height: 24px; flex: none; }

.app-shell .main { padding: 0; display: flex; flex-direction: column; }
.app-header { display: flex; align-items: center; gap: 24px; padding: 22px 30px 18px; }
.app-header h1 { margin: 0; font-size: 23px; font-weight: 750; color: var(--ink); letter-spacing: -.4px; }
.app-header .page-sub { color: #475467; font-size: 14.5px; margin-top: 4px; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.clock { display: flex; align-items: center; gap: 12px; padding-right: 26px; border-right: 1px solid var(--line); }
.clock .icon { width: 24px; height: 24px; color: #475467; }
.clock small { display: block; font-size: 12px; color: var(--muted); }
.clock b { font-size: 19px; color: var(--ink); font-variant-numeric: tabular-nums; }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 12px; background: transparent; border: 0; cursor: pointer; padding: 4px; border-radius: 12px; text-align: left; }
.user-btn:hover { background: rgba(16,24,40,.04); }
.user-btn .avatar { width: 40px; height: 40px; background: var(--ink); font-size: 14px; }
.user-btn b { display: block; font-size: 15px; color: var(--ink); }
.user-btn small { color: var(--muted); font-size: 12.5px; }
.user-btn > .icon { color: var(--muted); margin-left: 8px; }
.user-drop { position: absolute; right: 0; top: calc(100% + 8px); width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 50; }
.user-menu.open .user-drop { display: block; }
.user-drop a, .user-drop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px; border: 0; background: transparent; text-decoration: none; color: var(--ink-2); font-size: 14px; cursor: pointer; text-align: left; }
.user-drop a:hover, .user-drop button:hover { background: var(--line-2); }
.user-drop .icon { width: 17px; height: 17px; color: var(--muted); }

.content { padding: 0 30px 24px; flex: 1; }
.app-footer { display: flex; align-items: center; gap: 14px; padding: 18px 30px; border-top: 1px solid var(--line); background: #fff; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.app-footer .fb { font-weight: 800; font-size: 17px; color: var(--ink); letter-spacing: -.4px; }
.app-footer .fb span { color: #2563eb; }
.app-footer .sep { width: 1px; height: 14px; background: var(--line); }
.app-footer .right { margin-left: auto; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 16px; align-items: stretch; margin-bottom: 18px; }
.kpi-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; gap: 16px; align-items: flex-start; box-shadow: var(--shadow-sm); }
.tile { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.tile .icon { width: 30px; height: 30px; }
.tile.blue { background: #e8f0fe; color: #2563eb; }
.tile.purple { background: #f1ebfe; color: #7c3aed; }
.tile.green { background: #e7f8ee; color: #16a34a; }
.tile.orange { background: #fff1e6; color: #f97316; }
.tile.red { background: var(--red-50); color: var(--red); }
.tile.gray { background: var(--line-2); color: #475467; }
.tile.sm { width: 40px; height: 40px; border-radius: 50%; }
.tile.sm .icon { width: 19px; height: 19px; }
.kpi-card .lbl { font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.kpi-card .num { font-size: 28px; font-weight: 750; color: var(--ink); margin: 4px 0; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-card .foot { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.dotc { width: 9px; height: 9px; border-radius: 50%; background: #16a34a; display: inline-block; flex: none; }
.dotc.gray { background: #98a2b3; }
.dotc.amber { background: #f79009; }
.foot.ok, .s.ok { color: #16a34a; }
.sys-card { align-self: center; background: #ecfdf3; border: 1px solid #abefc6; border-radius: 12px; padding: 12px 16px; min-width: 150px; }
.sys-card b { display: flex; align-items: center; gap: 8px; color: #067647; font-size: 15px; }
.sys-card small { display: block; font-size: 11px; color: #067647; margin-top: 4px; line-height: 1.4; opacity: .85; }
.sys-card.demo { background: var(--amber-50); border-color: #fedf89; }
.sys-card.demo b, .sys-card.demo small { color: #b54708; }
.sys-card.demo .dotc { background: #f79009; }

/* Widgets */
.widgets-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.widgets-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 14px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; min-width: 0; }
.w-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 8px; }
.w-ic { width: 44px; height: 44px; border-radius: 10px; background: var(--line-2); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.w-ic .icon { width: 22px; height: 22px; }
.w-head h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; }
.w-head p { margin: 3px 0 0; font-size: 14px; color: var(--muted); }
.w-link { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #2563eb; font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.w-link:hover { background: var(--brand-50); border-color: var(--brand-100); }
.w-link .icon { width: 15px; height: 15px; }
.w-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 36px 20px; min-height: 270px; }
.w-empty > .icon { width: 50px; height: 50px; color: #475467; stroke-width: 1.6; margin-bottom: 18px; }
.w-empty b { font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.w-empty p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; max-width: 360px; line-height: 1.5; }
.w-rows { display: grid; }
.w-row { display: flex; align-items: center; gap: 14px; padding: 10px 2px; border-top: 1px solid var(--line-2); min-width: 0; }
.w-row:first-child { border-top: 0; }
.w-row .txt { min-width: 0; flex: 1; }
.w-row .t { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-row .s { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.w-row .time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.w-row > .btn { min-width: 110px; }
.brand-ic { width: 32px; height: 32px; display: grid; place-items: center; flex: none; }
.brand-ic svg { width: 28px; height: 28px; }
.w-row .switch { width: 44px; height: 25px; cursor: pointer; }
.w-row .switch i::after { width: 19px; height: 19px; }
.w-row .switch input:checked + i { background: #16a34a; }
.w-row .switch input:checked + i::after { transform: translateX(19px); }

.bars { display: grid; gap: 14px; margin-top: 12px; }
.bar-row { display: grid; grid-template-columns: 140px 1fr 50px; gap: 12px; align-items: center; font-size: 14px; }
.bar-track { height: 10px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.bar-track span { display: block; height: 100%; border-radius: 99px; background: #2563eb; }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }

.page-grid { display: grid; gap: 16px; }

/* ---------- iPhone + WhatsApp na landing ---------- */
.mock { min-height: 600px; }
.mock .mock-window { inset: 40px 150px 90px 0; }
.iphone { position: absolute; right: 10px; top: 0; width: 280px; height: 580px; border-radius: 52px; padding: 11px; background: linear-gradient(145deg, #3a3d42, #1c1d20 40%, #2c2e33); box-shadow: inset 0 0 0 2px #55585e, inset 0 0 0 4px #111, 0 40px 80px -20px rgba(11,23,48,.55), 0 18px 30px -18px rgba(0,0,0,.5); z-index: 2; }
.iphone .side { position: absolute; width: 4px; background: #2a2c30; border-radius: 2px; }
.iphone .l1 { left: -3px; top: 110px; height: 30px; }
.iphone .l2 { left: -3px; top: 160px; height: 56px; }
.iphone .l3 { left: -3px; top: 226px; height: 56px; }
.iphone .r1 { right: -3px; top: 180px; height: 86px; }
.iphone-screen { position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: #efe7dd; display: flex; flex-direction: column; font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif; }
.island { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 92px; height: 27px; background: #000; border-radius: 20px; z-index: 3; }
.ios-status { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px 6px 30px; background: #fff; font-size: 14px; color: #000; height: 44px; }
.ios-icons { display: flex; gap: 5px; align-items: center; }
.ios-icons svg { width: 17px; height: 11px; fill: #000; }
.batt { width: 24px; height: 11.5px; border: 1.3px solid rgba(0,0,0,.45); border-radius: 3.5px; padding: 1.2px; position: relative; }
.batt::after { content: ""; position: absolute; right: -3.5px; top: 3.2px; width: 1.6px; height: 4px; background: rgba(0,0,0,.45); border-radius: 0 1px 1px 0; }
.batt span { display: block; height: 100%; width: 78%; background: #000; border-radius: 1.5px; }
.wa-head { display: flex; align-items: center; gap: 8px; padding: 6px 12px 8px 8px; background: #fff; border-bottom: 1px solid #e6e6e6; color: #111b21; }
.wa-back { width: 11px; height: 18px; color: #0a7cff; margin-right: 2px; }
.wa-avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; background: url("assisia-avatar.svg") center/cover, radial-gradient(circle at 50% 38%, #f3c6a5 0 26%, transparent 27%), radial-gradient(circle at 50% 110%, #2563eb 0 46%, transparent 47%), radial-gradient(circle at 50% 30%, #5b3a29 0 40%, transparent 41%), linear-gradient(160deg, #dbeafe, #bfdbfe); box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.wa-who { flex: 1; line-height: 1.15; }
.wa-who b { font-size: 15px; font-weight: 600; }
.wa-who small { display: block; font-size: 11.5px; color: #667781; }
.wa-ico { width: 21px; height: 21px; color: #0a7cff; margin-left: 10px; }
.wa-chat { flex: 1; padding: 10px 10px 8px; display: flex; flex-direction: column; gap: 6px; overflow: hidden;
  background-color: #efe7dd;
  background-image: radial-gradient(rgba(0,0,0,.035) 1.2px, transparent 1.3px), radial-gradient(rgba(0,0,0,.025) 1px, transparent 1.1px);
  background-size: 18px 18px, 11px 11px; background-position: 0 0, 6px 9px; }
.wa-day { align-self: center; background: #fff; color: #54656f; font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 7px; box-shadow: 0 1px .5px rgba(11,20,26,.13); margin-bottom: 2px; }
.wa-msg { position: relative; max-width: 84%; padding: 6px 8px 15px; border-radius: 9px; font-size: 12.5px; line-height: 1.38; color: #111b21; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.wa-msg.in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.wa-msg.out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 2px; min-width: 70px; }
.wa-msg.in::before, .wa-msg.out::before { content: ""; position: absolute; top: 0; width: 8px; height: 10px; }
.wa-msg.in::before { left: -7px; background: linear-gradient(to bottom left, #fff 50%, transparent 51%); }
.wa-msg.out::before { right: -7px; background: linear-gradient(to bottom right, #d9fdd3 50%, transparent 51%); }
.wa-meta { position: absolute; right: 7px; bottom: 3px; font-size: 9.5px; color: #667781; display: inline-flex; align-items: center; gap: 3px; }
.ticks { width: 15px; height: 10px; color: #53bdeb; }
.wa-msg.audio { display: flex; align-items: center; gap: 8px; padding: 8px 10px 17px; width: 84%; }
.wa-play { width: 0; height: 0; border-left: 11px solid #54656f; border-top: 7px solid transparent; border-bottom: 7px solid transparent; flex: none; }
.wa-wave { display: flex; align-items: center; gap: 2px; flex: 1; }
.wa-wave i { display: block; width: 2.5px; border-radius: 2px; background: #8696a0; }
.wa-wave i:nth-child(-n+9) { background: #34b7f1; }
.wa-input { display: flex; gap: 6px; align-items: center; padding: 6px 8px 8px; background: #f6f6f6; }
.wa-field { flex: 1; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 18px; padding: 7px 10px; font-size: 13px; border: 1px solid #e3e3e3; }
.wa-field em { flex: 1; font-style: normal; color: #8696a0; }
.wa-mic { width: 32px; height: 32px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; }
.wa-mic svg { width: 17px; height: 17px; }
.home-bar { height: 22px; background: #f6f6f6; display: grid; place-items: center; }
.home-bar::after { content: ""; width: 110px; height: 4.5px; border-radius: 3px; background: #111; }
.ios-notif { position: absolute; left: -10px; top: 62px; width: 310px; z-index: 3; display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 20px; background: rgba(250,250,252,.82); backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%); box-shadow: 0 18px 40px -12px rgba(11,23,48,.35), 0 0 0 1px rgba(255,255,255,.6) inset; animation: notif-in .6s cubic-bezier(.2,.9,.3,1.2) .6s both; font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif; }
.ios-notif .wa-avatar { width: 38px; height: 38px; }
.ios-notif > div { flex: 1; min-width: 0; }
.n-top { display: flex; justify-content: space-between; align-items: baseline; }
.n-top b { font-size: 13.5px; color: #111; }
.n-top small { font-size: 11.5px; color: #6b7280; }
.ios-notif p { margin: 2px 0 0; font-size: 12.8px; line-height: 1.35; color: #1f2937; }
@keyframes notif-in { from { opacity: 0; transform: translateY(-14px) scale(.96); } }

@media (max-width: 1080px) {
  .mock { max-width: 520px; }
}
@media (max-width: 640px) {
  .mock { min-height: 560px; }
  .mock .mock-window { display: none; }
  .iphone { left: 50%; right: auto; transform: translateX(-50%) scale(.92); transform-origin: top center; }
  .ios-notif { left: 50%; transform: translateX(-50%); width: min(310px, 92%); top: 70px; animation: none; }
}

/* ---------- Editar conta (admin) ---------- */
.edit-dialog { border: 0; border-radius: 16px; padding: 24px; width: min(480px, 100% - 32px); box-shadow: var(--shadow-lg); }
.edit-dialog::backdrop { background: rgba(11,23,48,.45); }

/* ---------- Autenticador ---------- */
.mfa-box { width: min(460px, 100% - 32px); margin: 48px auto; text-align: center; padding: 32px 28px; }
.mfa-box h1 { font-size: 24px; margin: 0 0 8px; color: var(--ink); letter-spacing: -.4px; }
.mfa-steps { text-align: left; color: #344054; font-size: 14px; line-height: 1.6; padding-left: 20px; margin: 16px 0; }
.mfa-qr { border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.mfa-secret { display: block; margin-top: 8px; font-size: 13px; letter-spacing: 1px; word-break: break-all; }
.mfa-form { display: grid; gap: 12px; margin: 18px 0 8px; }
.mfa-form input { text-align: center; font-size: 26px; letter-spacing: 8px; padding: 12px; border: 1.5px solid #d0d5dd; border-radius: 12px; font-variant-numeric: tabular-nums; }
.mfa-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }

/* ---------- Equipe ---------- */
.role-list { display: grid; gap: 8px; }
.role-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; margin: 0 !important; }
.role-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.role-opt input { margin-top: 3px; accent-color: var(--brand); }
.role-opt b { display: block; color: var(--ink); font-size: 14.5px; }
.role-opt span { color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.45; }

/* ---------- Tabela do admin ---------- */
.table-wrap { overflow-x: auto; margin-top: 8px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 860px; }
.data-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 650; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #f9fafb; }
.data-table td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; color: var(--ink-2); }
.data-table tr:hover td { background: #fafbfd; }
.data-table .muted { font-size: 12px; margin-top: 2px; }

/* ---------- Teste grátis no site ---------- */
.trial-band { padding: 0 0 40px; }
.trial-box { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: 48px; border-radius: 24px; background: linear-gradient(135deg, #0b1730, #1d3a7a); color: #fff; position: relative; overflow: hidden; }
.trial-box::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(59,130,246,.45), transparent 70%); }
.trial-box > * { position: relative; z-index: 1; }
.trial-box .kicker { color: #93c5fd; }
.trial-box h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -1px; line-height: 1.1; margin: 0 0 14px; }
.trial-box p { color: #c3cad9; font-size: 16.5px; line-height: 1.6; margin: 0 0 24px; }
.trial-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: t; }
.trial-steps li { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.trial-steps li:first-child { background: rgba(34,197,94,.16); border-color: rgba(34,197,94,.35); }
.trial-steps b { font-size: 15px; }
.trial-steps span { font-size: 14px; color: #e4e7ec; line-height: 1.4; }
.trial-steps em { font-style: normal; color: #93c5fd; font-size: 13px; }

/* ---------- Ativação do teste (checkout) ---------- */
.checkout { min-height: 100vh; background: var(--bg); }
.checkout-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 32px; background: #fff; border-bottom: 1px solid var(--line); }
.checkout-grid { width: min(1120px, 100% - 32px); margin: 32px auto 60px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.checkout h1 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.8px; margin: 16px 0 8px; color: var(--ink); }
.checkout .lead { color: #475467; font-size: 16px; line-height: 1.6; margin: 0 0 8px; }
.step-title { font-size: 16px; color: var(--ink); margin: 28px 0 12px; }
.ck-toggle .billing-toggle { margin: 0 0 12px; }
.ck-plans { display: grid; gap: 10px; }
.ck-plan { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.ck-plan:hover { border-color: #b2ccff; }
.ck-plan.on { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37,99,235,.1); }
.ck-plan input { accent-color: var(--brand); width: 18px; height: 18px; }
.ck-plan b { color: var(--ink); font-size: 15.5px; }
.ck-price { font-weight: 800; font-size: 20px; color: var(--ink); white-space: nowrap; }
.ck-price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.coupon-row { display: flex; gap: 8px; max-width: 440px; }
.coupon-row input { flex: 1; padding: 11px 12px; border: 1px solid #d0d5dd; border-radius: 10px; text-transform: uppercase; background: #fff; }
.ok-text { color: #067647; font-weight: 600; }
.pay-tabs { display: inline-flex; gap: 6px; padding: 4px; background: var(--line-2); border-radius: 12px; margin-bottom: 16px; }
.pay-tabs button { border: 0; background: transparent; padding: 9px 16px; border-radius: 9px; font-weight: 650; color: var(--muted); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.pay-tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.ck-form { max-width: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.ck-form .btn.block { margin-top: 18px; }
.ck-summary { position: sticky; top: 24px; }
.ck-summary h3 { font-size: 17px; margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 14.5px; color: #344054; }
.sum-row.ok { color: #067647; }
.sum-row.total { font-size: 18px; color: var(--ink); }
.sum-row.total b { color: #16a34a; }
.sum-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; font-size: 13.5px; color: #475467; }
.sum-list li { display: flex; gap: 8px; align-items: flex-start; }
.sum-list .icon { color: #16a34a; width: 17px; height: 17px; margin-top: 1px; }
.pix-wait { text-align: center; margin-top: 18px; display: grid; gap: 12px; justify-items: center; }
.pix-wait img { border-radius: 12px; border: 1px solid var(--line); }
.copy-row { display: flex; gap: 8px; width: 100%; max-width: 420px; }
.copy-row input { flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }

@media (max-width: 900px) {
  .trial-box { grid-template-columns: 1fr; padding: 32px 22px; }
  .trial-steps li { grid-template-columns: 96px 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .ck-summary { position: static; order: -1; }
  .checkout-top { padding: 12px 16px; }
}

@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .sys-card { grid-column: 1 / -1; }
  .widgets-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .app-header { padding: 18px 16px; flex-wrap: wrap; }
  .header-right { margin-left: 0; width: 100%; justify-content: space-between; }
  .clock { padding-right: 0; border-right: 0; }
  .content { padding: 0 16px 20px; }
  .widgets-2, .widgets-3 { grid-template-columns: 1fr; }
  .app-footer { padding: 16px; }
  .mobile-bar { background: #0b1730; border-bottom: 0; }
  .mobile-bar .icon-btn { color: #fff; }
  .mobile-bar .icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr; }
  .user-btn .who { display: none; }
  .bar-row { grid-template-columns: 100px 1fr 40px; }
}

/* Compromisso compartilhado por outra conta (somente leitura) */
.badge.shared { background: #eef4ff; color: #2563eb; display: inline-flex; align-items: center; gap: 4px; }
.badge.shared::before { display: none; }
.badge.shared svg { width: 13px; height: 13px; }

/* =========================================================
   MOBILE — navegação de app (site + painel)
   ========================================================= */
.landing { overflow-x: clip; }
.nav-login-mobile, .site-menu-btn, .site-menu, .tabbar, .drawer-close { display: none; }
body.no-scroll { overflow: hidden; }

@media (max-width: 900px) {
  /* Site: menu ☰ com as seções */
  .site-menu-btn { display: grid; color: var(--ink); width: 42px; height: 42px; }
  .site-menu { display: grid; gap: 4px; max-height: 0; overflow: hidden; padding: 0 16px; background: #fff; transition: max-height .25s ease, padding .25s ease; }
  .site-nav.menu-open { border-bottom-color: var(--line); background: #fff; }
  .site-nav.menu-open .site-menu { max-height: 420px; padding: 8px 16px 18px; border-top: 1px solid var(--line-2); }
  .site-menu a:not(.btn) { display: flex; align-items: center; gap: 12px; padding: 14px 10px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 16px; }
  .site-menu a:not(.btn):active { background: var(--line-2); }
  .site-menu a .icon { color: var(--brand); }
  .site-menu .btn { margin-top: 8px; padding: 13px; font-size: 15px; }

  /* Painel: menu lateral vira gaveta com botão fechar */
  .app-shell .sidebar { width: min(300px, 86vw); padding-top: calc(18px + env(safe-area-inset-top)); }
  .drawer-close { display: grid; position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 10px; color: #d0d6e2; }
  .drawer-close:hover { background: rgba(255,255,255,.08); color: #fff; }
  .app-shell .nav-item { padding: 13px 16px; font-size: 15.5px; }
  .help-card { display: none; }

  /* Barra superior enxuta */
  .mobile-bar { padding: calc(10px + env(safe-area-inset-top)) 12px 10px; }
  .app-header { flex-wrap: nowrap; align-items: center; gap: 12px; padding: 16px 16px 14px; }
  .app-header h1 { font-size: 20px; line-height: 1.2; }
  .app-header .page-sub { font-size: 13.5px; line-height: 1.4; }
  .header-right { width: auto; margin-left: auto; flex: none; gap: 0; }
  .clock { display: none; }
  .user-btn .who, .user-btn > .icon { display: none; }
  .user-btn .avatar { width: 38px; height: 38px; }

  /* Barra inferior fixa (estilo app) */
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border: 0; background: transparent; color: var(--muted); font-size: 11.5px; font-weight: 600; text-decoration: none; cursor: pointer; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
  .tab .icon { width: 23px; height: 23px; }
  .tab.active { color: var(--brand); }
  .tab.active .icon { stroke-width: 2.4; }
  .tab:active { background: var(--line-2); }
  .app-shell .main { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .app-footer { display: none; }
  .toasts { right: 16px; left: 16px; width: auto; bottom: calc(84px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  /* Site: só "Entrar" no topo */
  .site-nav .wrap { height: 60px; gap: 10px; }
  .site-cta .nav-login, .site-cta .nav-start { display: none; }
  .nav-login-mobile { display: inline-flex; padding: 10px 18px; }
  .hero { padding: 28px 0 40px; }
  .hero h1 { font-size: 34px; letter-spacing: -1px; margin: 16px 0 14px; }
  .hero .lead { font-size: 16.5px; margin-bottom: 22px; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { gap: 10px 16px; font-size: 13px; }
  .pill { font-size: 12px; line-height: 1.35; }
  .mock { min-height: 500px; margin-top: 8px; }
  .iphone { transform: translateX(-50%) scale(.84); }
  .ios-notif { width: min(290px, 90%); }
  .audience .wrap { justify-content: flex-start; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 28px; }
  .trial-box h2 { font-size: 27px; }
  .trial-steps li { grid-template-columns: 1fr; gap: 4px; }
  .plan { padding: 24px; }
  .cta-box .btn, .trial-copy .btn { width: 100%; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }

  /* Login */
  .login-box { padding: 20px 16px; }
  .login-card h2 { font-size: 25px; }
  .auth-button { padding: 14px 16px; }

  /* Painel: grades em uma coluna, inclusive as definidas no HTML */
  .kpis, .usage { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .kpi-card { flex-direction: column; gap: 10px; padding: 14px; }
  .kpi-card .tile { width: 40px; height: 40px; border-radius: 11px; }
  .kpi-card .tile .icon { width: 21px; height: 21px; }
  .kpi-card .num { font-size: 24px; }
  .kpi-card .foot { font-size: 12px; }
  .form-row > div[style*="span 2"], .form [style*="span 2"] { grid-column: auto !important; }
  .widget { padding: 16px 14px 12px; }
  .w-head { flex-wrap: wrap; gap: 12px; }
  .w-link { margin-left: 0; }
  .w-empty { min-height: 0; padding: 28px 12px; }
  .w-row { flex-wrap: wrap; }
  .w-row > .btn { min-width: 0; }
  .toolbar .search { max-width: none; min-width: 0; flex-basis: 100%; }
  .toolbar .btn { flex: 1; }
  .form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea, .search input, .coupon-row input { font-size: 16px; } /* evita zoom no iPhone */
  .form .actions .btn { flex: 1; }
  .item-side { width: 100%; justify-content: space-between; }
  .bar-row { grid-template-columns: 88px 1fr 36px; font-size: 13px; }
  .checkout-grid { margin-top: 16px; }
  .ck-plan { grid-template-columns: auto 1fr; }
  .ck-price { grid-column: 2; }
  .pay-tabs { display: flex; }
  .pay-tabs button { flex: 1; justify-content: center; }
  .edit-dialog { padding: 20px 16px; }
}

@media (max-width: 380px) {
  .kpis, .usage { grid-template-columns: 1fr !important; }
  .tab span { font-size: 10.5px; }
}

/* ---------- Painel Admin no celular ---------- */
.admin-jump { display: none; }
.adm-anchor { scroll-margin-top: 130px; }
@media (max-width: 900px) {
  .admin-jump { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; position: sticky; top: calc(58px + env(safe-area-inset-top)); z-index: 30; margin: 0 -16px 14px; padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--line-2); }
  .admin-jump::-webkit-scrollbar { display: none; }
  .admin-jump a { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; font-weight: 600; text-decoration: none; }
  .admin-jump a .icon { width: 16px; height: 16px; color: var(--brand); }
  .admin-jump a:active { background: var(--brand-50); }
}
@media (max-width: 640px) {
  /* Tabela de clientes vira lista de cartões */
  .people-table { min-width: 0; }
  .people-table thead { display: none; }
  .people-table, .people-table tbody, .people-table tr, .people-table td { display: block; width: 100%; }
  .people-table tr { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; margin-bottom: 10px; background: #fff; }
  .people-table tr:hover td { background: transparent; }
  .people-table td { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); text-align: right; }
  .people-table td:last-child { border-bottom: 0; }
  .people-table td::before { content: attr(data-label); flex: none; color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; padding-top: 2px; }
  .people-table td[data-label="Cliente"] { display: block; text-align: left; padding-top: 12px; }
  .people-table td[data-label="Cliente"]::before { display: none; }
  .people-table td[data-label="Cliente"] b { font-size: 15.5px; }
  .people-table td.row-actions { display: block; padding: 10px 0 12px; }
  .people-table td.row-actions::before { display: none; }
  .people-table td.row-actions .btn { width: 100%; padding: 11px; font-size: 14px; }
  .people-table td:not([data-label]):not(.row-actions)::before { display: none; }
  .table-wrap { overflow: visible; }
  .clients-card { padding: 4px 0 0; background: transparent; border: 0; box-shadow: none; }
  .clients-card .toolbar { padding: 0 2px; }
  .clients-open { width: 100%; }

  /* Gráficos de barra cabem na tela */
  .bar-row { grid-template-columns: 62px 1fr auto; }
  .bar-row b { min-width: 0 !important; font-size: 13px; }

  /* Janela "Editar conta": botões empilhados e grandes */
  .dialog-actions { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .dialog-actions > .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .dialog-actions .btn { width: 100%; padding: 12px; }
  .edit-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 40px); }
}

/* ---------- Resumo de clientes no Painel Admin ---------- */
.clients-open { margin-top: 16px; align-self: flex-start; padding: 11px 18px; }
