/* QuadroPro — estilos gerais */
:root {
  --navy: #0b1324;
  --navy-2: #131d33;
  --navy-3: #1d2944;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f3f5f9;
  --card: #ffffff;
  --primary: #1d5bff;
  --primary-d: #1448d4;
  --amber: #ffb400;
  --amber-d: #e09e00;
  --green: #12a150;
  --red: #e5383b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
img { max-width: 100%; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; font: 600 14px/1.2 var(--font); cursor: pointer; background: #fff; color: var(--ink); border-color: var(--line); text-decoration: none !important; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; min-height: 42px; }
.btn:active { transform: translateY(1px); }
.btn:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-d); border-color: var(--primary-d); }
.btn-amber { background: var(--amber); color: #1b1300; border-color: var(--amber); }
.btn-amber:hover { background: var(--amber-d); border-color: var(--amber-d); }
.btn-dark { background: var(--navy-3); color: #fff; border-color: #2a3858; }
.btn-dark:hover { background: #26345a; border-color: #34446b; }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: #fff1f1; border-color: #fbc7c8; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(15, 23, 42, .06); border-color: transparent; }
.btn-sm { padding: 6px 10px; min-height: 34px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- Formulários ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: #334155; }
.input, select.input, textarea.input { width: 100%; border: 1px solid #cfd8e3; background: #fff; border-radius: 10px; padding: 10px 12px; font: 500 15px var(--font); color: var(--ink); min-height: 42px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29, 91, 255, .15); }
textarea.input { min-height: 90px; resize: vertical; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .row, .row3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }

.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 500; font-size: 14px; }
.alert-ok { background: #e9f9ef; color: #0b6b34; border: 1px solid #bfe9cf; }
.alert-err { background: #fff0f0; color: #a3191c; border: 1px solid #f7c6c7; }
.alert-warn { background: #fff8e6; color: #7a5300; border: 1px solid #fde3a0; }

/* ---------- Autenticação / landing ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero { background: radial-gradient(1200px 600px at 10% 0%, #1d2d5a 0%, var(--navy) 60%); color: #e7ecf7; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-hero h1 { font-size: 40px; font-weight: 800; color: #fff; max-width: 520px; }
.auth-hero h1 em { color: var(--amber); font-style: normal; }
.auth-hero p { color: #b8c3dc; font-size: 17px; max-width: 480px; }
.auth-hero ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.auth-hero li { display: flex; gap: 10px; align-items: center; color: #dbe3f3; font-weight: 500; }
.auth-hero li i { width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 180, 0, .15); color: var(--amber); display: grid; place-items: center; font-style: normal; font-weight: 800; flex: none; }
.auth-hero .preview { margin-top: 28px; max-width: 520px; max-height: 40vh; object-fit: contain; object-position: left top; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45)); }
.auth-side { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .tabs { display: grid; grid-template-columns: 1fr 1fr; background: #e8edf5; padding: 4px; border-radius: 12px; margin-bottom: 20px; }
.auth-card .tabs a { text-align: center; padding: 9px; border-radius: 9px; font-weight: 700; color: #475569; text-decoration: none; }
.auth-card .tabs a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: inherit; text-decoration: none !important; }
.brand .logo { width: 36px; height: 36px; border-radius: 10px; background: var(--amber); display: grid; place-items: center; }
.brand .logo svg { width: 22px; height: 22px; }
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { padding: 28px 22px; }
  .auth-side { position: static; height: auto; }
  .auth-hero h1 { font-size: 28px; }
  .auth-hero .preview, .auth-hero ul { display: none; }
}

/* ---------- App shell ---------- */
.topbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 30; }
.topbar .in { max-width: 1200px; margin: 0 auto; padding: 10px 18px; display: flex; align-items: center; gap: 14px; }
.topbar nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.topbar nav a { color: #c9d3ea; padding: 8px 12px; border-radius: 9px; font-weight: 600; font-size: 14px; text-decoration: none; }
.topbar nav a:hover, .topbar nav a.on { background: rgba(255, 255, 255, .08); color: #fff; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy-3); display: grid; place-items: center; font-weight: 800; color: var(--amber); border: 1px solid #2c3b5f; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.container { max-width: 1200px; margin: 0 auto; padding: 24px 18px 60px; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 26px; margin: 0; }
.page-head .sp { flex: 1; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #e8edf4; }
.card-pad { padding: 20px; }
.muted { color: var(--muted); }
@media (max-width: 640px) {
  .topbar nav a span { display: none; }
  .container { padding: 16px 12px 80px; }
}

/* Novo projeto — modelos */
.templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tpl { border: 2px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; cursor: pointer; text-align: left; font: inherit; color: inherit; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.tpl:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.tpl .th { height: 110px; border-radius: 10px; background: #eef2f8; display: grid; place-items: center; overflow: hidden; }
.tpl .th svg { max-height: 100px; max-width: 100%; }
.tpl b { font-size: 14px; }
.tpl small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; }
.tag-res { background: #e6f0ff; color: #1448d4; }
.tag-com { background: #fff4d6; color: #8a5a00; }
.tag-ind { background: #ffe8e8; color: #b0191c; }

/* Lista de projetos */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.proj { overflow: hidden; display: flex; flex-direction: column; }
.proj .th { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg, #e9eef6, #dfe6f1); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.proj .th img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; }
.proj .bd { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.proj .bd h3 { font-size: 16px; margin: 0; }
.proj .ft { display: flex; gap: 6px; padding: 0 14px 14px; flex-wrap: wrap; }
.status { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; }
.st-rascunho { background: #eef2f7; color: #475569; }
.st-enviado { background: #e6f0ff; color: #1448d4; }
.st-aprovado { background: #e3f8ea; color: #0b7a3a; }
.st-revisao { background: #fff2dc; color: #9a5b00; }
.empty { text-align: center; padding: 50px 20px; }
.empty svg { width: 80px; opacity: .5; }

/* Tabelas */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table-wrap { overflow-x: auto; }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(8, 13, 26, .55); backdrop-filter: blur(2px); z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-bg.on { display: flex; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: pop .18s ease-out; }
.modal.wide { max-width: 860px; }
.modal-h { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.modal-h h2 { font-size: 18px; margin: 0; flex: 1; }
.modal-b { padding: 20px; }
.modal-f { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: #fff; flex-wrap: wrap; }
@media (max-width: 980px) { #toasts { top: 64px; bottom: auto; } }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) {
  .modal-bg { align-items: flex-end; padding: 0; }
  .modal { border-radius: 18px 18px 0 0; max-height: 94vh; }
}

/* Toast */
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: pop .2s; display: flex; gap: 8px; align-items: center; }
.toast.err { background: #b3191c; }
.toast.ok::before { content: "✓"; color: #5fe39a; font-weight: 900; }

/* Install */
.install { max-width: 720px; margin: 30px auto; padding: 0 16px 60px; }
.install .card { padding: 26px; }
.req { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-weight: 500; }
.req b.ok { color: var(--green); }
.req b.no { color: var(--red); }
.step-title { display: flex; gap: 10px; align-items: center; font-weight: 800; font-size: 16px; margin: 22px 0 12px; }
.step-title span { width: 26px; height: 26px; border-radius: 8px; background: var(--navy); color: var(--amber); display: grid; place-items: center; font-size: 13px; }
.seg { display: inline-flex; background: #e8edf5; padding: 4px; border-radius: 12px; gap: 4px; }
.seg label { padding: 8px 14px; border-radius: 9px; font-weight: 700; cursor: pointer; color: #475569; margin: 0; }
.seg input { display: none; }
.seg input:checked + label { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

/* Public view */
.pub-head { background: var(--navy); color: #fff; padding: 18px; }
.pub-head .in { max-width: 1100px; margin: 0 auto; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.pub-logo { height: 44px; background: #fff; border-radius: 8px; padding: 4px; }
.approve-bar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px 16px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); z-index: 20; }

/* resposta do cliente */
.client-note { margin-top: 8px; border-radius: 10px; padding: 9px 11px; font-size: 13px; line-height: 1.4; }
.client-note.rev { background: #fff6e0; border: 1px solid #fcd98a; color: #6b4600; }
.client-note.ok { background: #e9f9ef; border: 1px solid #bfe9cf; color: #0b6b34; }
.client-note small { display: block; opacity: .75; font-size: 11.5px; }
.client-note p { margin: 6px 0 0; font-style: italic; white-space: normal; }
.client-note .btn { margin-top: 8px; }

/* ---------- v1.1: navegação, notificações, pedidos ---------- */
.topbar nav a, .navbtn { display: inline-flex; align-items: center; gap: 7px; position: relative; }
.topbar nav a svg { flex: none; opacity: .9; }
.navbtn { background: transparent; border: 0; color: #c9d3ea; padding: 8px 10px; border-radius: 9px; cursor: pointer; }
.navbtn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nbadge { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px var(--navy); }
.nbadge[hidden] { display: none; }
.topbar nav a .nbadge { position: static; margin-left: 2px; box-shadow: none; }
@media (max-width: 640px) { .topbar nav a .nbadge { position: absolute; top: 2px; right: 0; } .topbar .in { gap: 6px; padding: 8px 10px; } .topbar nav { gap: 0; } .brand span:last-child { display: none; } }
.np { position: fixed; z-index: 250; width: 360px; max-width: calc(100vw - 16px); max-height: 70vh; overflow: auto; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); display: none; }
.np.on { display: block; animation: pop .15s; }
.np-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); }
.np-perm { display: block; width: calc(100% - 20px); margin: 10px; border: 1px dashed #fbbf24; background: #fffbeb; color: #92400e; border-radius: 10px; padding: 9px; font: 700 13px var(--font); cursor: pointer; }
.np-empty { padding: 24px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.np-item { display: block; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none !important; font-size: 13.5px; }
.np-item:hover { background: rgba(29, 91, 255, .06); }
.np-item.unread { background: rgba(255, 180, 0, .09); box-shadow: inset 3px 0 0 var(--amber); }
.np-item span { display: block; color: var(--muted); font-style: italic; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.np-item small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.np-all { display: block; text-align: center; padding: 11px; font-weight: 700; font-size: 13.5px; }
.ptabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.ptabs a { padding: 9px 14px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none !important; display: inline-flex; gap: 8px; align-items: center; }
.ptabs a span { background: #e8edf5; color: #475569; border-radius: 99px; padding: 1px 8px; font-size: 12px; }
.ptabs a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.ptabs a.on span { background: var(--amber); color: #1b1300; }
.reqs { display: grid; gap: 12px; }
.req-card { display: grid; grid-template-columns: 170px 1fr; overflow: hidden; border-left: 5px solid #cbd5e1; }
.req-card.rev { border-left-color: #f59e0b; }
.req-card.ok { border-left-color: #16a34a; }
.req-card.done { opacity: .78; }
.req-th { background: linear-gradient(135deg, #e9eef6, #dfe6f1); display: grid; place-items: center; min-height: 130px; position: relative; }
.req-th img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; }
.req-bd { padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; }
.req-bd h3 { font-size: 17px; margin: 2px 0 0; }
.req-note { background: #fff8e6; border: 1px solid #fde3a0; color: #5c3d00; border-radius: 10px; padding: 10px 12px; font-size: 14px; font-style: italic; margin-top: 4px; }
.req-card.ok .req-note { background: #ecfdf3; border-color: #bbf7d0; color: #14532d; }
.req-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 640px) { .req-card { grid-template-columns: 1fr; } .req-th { min-height: 150px; } }
.tag-ger { background: #e3f8ea; color: #0b6b34; }
.theme-float { position: fixed; top: 14px; right: 14px; z-index: 40; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.theme-float svg { width: 19px; height: 19px; }
.pending-banner { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- MODO ESCURO ---------- */
html[data-theme="dark"] { color-scheme: dark; --bg: #0a101d; --card: #121a2b; --ink: #e5ebf5; --muted: #8f9db6; --line: #233049; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35); }
[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
[data-theme="dark"] .card, [data-theme="dark"] .modal, [data-theme="dark"] .modal-h, [data-theme="dark"] .modal-f, [data-theme="dark"] .tpl { background: var(--card); border-color: var(--line); color: var(--ink); }
[data-theme="dark"] .topbar, [data-theme="dark"] .ed-top, [data-theme="dark"] .pub-head, [data-theme="dark"] .mnav { background: #070b14; }
[data-theme="dark"] .field label, [data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3 { color: var(--ink); }
[data-theme="dark"] .input, [data-theme="dark"] select.input, [data-theme="dark"] textarea.input { background: #0c1322; border-color: #2a3956; color: var(--ink); }
[data-theme="dark"] .input:focus { border-color: #5b8cff; box-shadow: 0 0 0 3px rgba(91, 140, 255, .2); }
[data-theme="dark"] .btn { background: #182338; color: var(--ink); border-color: #2a3956; }
[data-theme="dark"] .btn:hover { background: #1e2c47; border-color: #34466a; }
[data-theme="dark"] .btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
[data-theme="dark"] .btn-primary:hover { background: #3a71ff; }
[data-theme="dark"] .btn-amber { background: var(--amber); border-color: var(--amber); color: #1b1300; }
[data-theme="dark"] .btn-dark { background: #18233a; border-color: #2a3858; color: #fff; }
[data-theme="dark"] .btn-danger { color: #f87171; }
[data-theme="dark"] .btn-danger:hover { background: #3a1416; border-color: #7f1d1d; }
[data-theme="dark"] .btn-ghost { background: transparent; border-color: transparent; }
[data-theme="dark"] .alert-ok { background: #0d2a1b; color: #86efac; border-color: #14532d; }
[data-theme="dark"] .alert-err { background: #2d1214; color: #fca5a5; border-color: #7f1d1d; }
[data-theme="dark"] .alert-warn { background: #2b2108; color: #fcd34d; border-color: #6b4f12; }
[data-theme="dark"] .auth-card .tabs, [data-theme="dark"] .seg { background: #182338; }
[data-theme="dark"] .auth-card .tabs a, [data-theme="dark"] .seg label { color: #9fb0d2; }
[data-theme="dark"] .auth-card .tabs a.on, [data-theme="dark"] .seg input:checked + label { background: #26365c; color: #fff; }
[data-theme="dark"] .proj .th, [data-theme="dark"] .req-th, [data-theme="dark"] .tpl .th { background: linear-gradient(135deg, #182238, #121a2b); border-color: var(--line); }
[data-theme="dark"] .table th, [data-theme="dark"] .table td, [data-theme="dark"] .req { border-color: var(--line); }
[data-theme="dark"] .st-rascunho, [data-theme="dark"] .ptabs a span { background: #22304b; color: #b8c4da; }
[data-theme="dark"] .st-enviado, [data-theme="dark"] .tag-res { background: #142a52; color: #93b4ff; }
[data-theme="dark"] .st-aprovado, [data-theme="dark"] .tag-ger { background: #0d2f1d; color: #86efac; }
[data-theme="dark"] .st-revisao, [data-theme="dark"] .tag-com { background: #3a2a07; color: #fcd34d; }
[data-theme="dark"] .tag-ind { background: #3a1214; color: #fca5a5; }
[data-theme="dark"] .client-note.rev, [data-theme="dark"] .req-note { background: #2b2108; border-color: #6b4f12; color: #fde68a; }
[data-theme="dark"] .client-note.ok, [data-theme="dark"] .req-card.ok .req-note { background: #0d2a1b; border-color: #14532d; color: #bbf7d0; }
[data-theme="dark"] .np-perm { background: #2b2108; color: #fcd34d; border-color: #6b4f12; }
[data-theme="dark"] .approve-bar { background: var(--card); border-color: var(--line); }
[data-theme="dark"] .req { border-color: var(--line); }
[data-theme="dark"] a { color: #7ea2ff; }
[data-theme="dark"] .np-item, [data-theme="dark"] .btn, [data-theme="dark"] .ptabs a { text-decoration: none; }
[data-theme="dark"] .np-item { color: var(--ink); }
[data-theme="dark"] .avatar { border-color: #2a3956; }
[data-theme="dark"] .brand, [data-theme="dark"] .topbar .brand { color: #fff; }
[data-theme="dark"] .topbar nav a { color: #c9d3ea; }
[data-theme="dark"] .topbar nav a.on, [data-theme="dark"] .topbar nav a:hover { color: #fff; }
[data-theme="dark"] .ptabs a { color: var(--ink); }
[data-theme="dark"] .ptabs a.on { background: #26365c; border-color: #34466a; color: #fff; }
[data-theme="dark"] .btn, [data-theme="dark"] a.btn { color: var(--ink); }
[data-theme="dark"] .btn-primary, [data-theme="dark"] a.btn-primary { color: #fff; }
[data-theme="dark"] .btn-amber, [data-theme="dark"] a.btn-amber { color: #1b1300; }
[data-theme="dark"] .proj h3 a, [data-theme="dark"] .req-bd h3 a { color: var(--ink); }

/* ---------- v2: assinaturas ---------- */
.bill-bar { background: #fff6e0; color: #6b4600; border-bottom: 1px solid #fde3a0; text-align: center; padding: 9px 14px; font-size: 14px; font-weight: 600; }
.bill-bar.warn { background: #fff0f0; color: #a3191c; border-color: #f7c6c7; }
.bill-bar.imp { background: #ede9fe; color: #4c1d95; border-color: #ddd6fe; }
.bill-bar a { font-weight: 800; margin-left: 6px; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; background: #25d366; color: #fff; border-radius: 99px; padding: 10px 16px 10px 12px; display: flex; align-items: center; gap: 8px; font-weight: 800; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); text-decoration: none !important; }
.wa-float:hover { background: #1fb457; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 20px; border: 2px solid var(--line); }
.plan.hl { border-color: var(--amber); box-shadow: 0 18px 50px rgba(255, 180, 0, .18); }
.plan.cur { border-color: var(--green); }
.plan .pbadge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--amber); color: #1b1300; font-weight: 800; font-size: 12px; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.plan .pbadge.cur { background: var(--green); color: #fff; }
.plan h3 { font-size: 19px; margin: 0; }
.plan .price { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.plan .promo { display: inline-block; background: #e3f8ea; color: #0b6b34; font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 8px; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 8px; flex: 1; }
.plan li { display: flex; gap: 8px; font-size: 14.5px; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 900; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { padding: 16px; }
.kpi small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.kpi b { display: block; font-size: 26px; margin-top: 4px; letter-spacing: -.01em; }
.kpi span { font-size: 12.5px; color: var(--muted); }
.kpi.green b { color: #0b7a3a; } .kpi.red b { color: #b3191c; } .kpi.amber b { color: #a16207; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding: 10px 4px 0; }
.bars .bcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; min-width: 0; }
.bars .bstack { width: 100%; max-width: 44px; display: flex; flex-direction: column-reverse; border-radius: 6px 6px 0 0; overflow: hidden; }
.bars .bv { width: 100%; }
.bars small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.bars em { font-style: normal; font-size: 11px; font-weight: 800; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.atabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.atabs a { padding: 9px 14px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none !important; }
.atabs a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.pill { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: #eef2f7; color: #475569; white-space: nowrap; }
.pill.active { background: #e3f8ea; color: #0b7a3a; } .pill.late { background: #fff2dc; color: #9a5b00; } .pill.canceled { background: #f1f5f9; color: #64748b; } .pill.refunded, .pill.chargeback, .pill.blocked { background: #ffe8e8; color: #b0191c; } .pill.none { background: #e6f0ff; color: #1448d4; }
.codebox { background: #0b1324; color: #e2e8f0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; padding: 12px; border-radius: 10px; overflow: auto; max-height: 340px; white-space: pre-wrap; word-break: break-all; }
.copyrow { display: flex; gap: 6px; }
.copyrow .input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
[data-theme="dark"] .bill-bar { background: #2b2108; color: #fcd34d; border-color: #6b4f12; }
[data-theme="dark"] .bill-bar.warn { background: #2d1214; color: #fca5a5; border-color: #7f1d1d; }
[data-theme="dark"] .bill-bar.imp { background: #2a1d4f; color: #ddd6fe; border-color: #4c1d95; }
[data-theme="dark"] .plan .promo, [data-theme="dark"] .pill.active { background: #0d2f1d; color: #86efac; }
[data-theme="dark"] .pill { background: #22304b; color: #b8c4da; }
[data-theme="dark"] .atabs a { color: var(--ink); }
[data-theme="dark"] .atabs a.on { background: #26365c; border-color: #34466a; color: #fff; }
