/* FREEDIX Empresas — portal web */
:root {
  --navy-950: #050a14;
  --navy-900: #08101f;
  --navy-800: #0e1830;
  --navy-700: #16223f;
  --orange: #ff6a00;
  --orange-2: #ff9a2e;
  --grad: linear-gradient(135deg, #ff5a00 0%, #ff8a1f 55%, #ffab45 100%);
  --bg: #f3f5f9;
  --card: #ffffff;
  --ink: #0c1424;
  --muted: #56627a;
  --line: #e3e7ef;
  --line-2: #cfd6e3;
  --green: #15803d;
  --green-bg: #e7f6ec;
  --blue: #1d4ed8;
  --blue-bg: #e8effd;
  --red: #c81e1e;
  --red-bg: #fdecec;
  --amber: #b45309;
  --amber-bg: #fff3e3;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(12, 20, 36, .05), 0 6px 20px -12px rgba(12, 20, 36, .18);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --side: 248px;
  --field: #ffffff;
  --surface-2: #fafbfd;
  --hover: #f5f7fb;
  --disabled: #f2f4f8;
  --tint: #fff2e8;
  --tabs: #e9ecf2;
  --gray-bg: #eef0f4;
  --gray-ink: #5b6475;
  --orange-ink: #c2410c;
  --red-line: #f1c3c3;
  --amber-ink: #7a3e06;
  --amber-line: #f6dcb9;
  color-scheme: light;
}

/* ---------- tema escuro ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070d18;
  --card: #0f1829;
  --ink: #e8ecf4;
  --muted: #95a1b8;
  --line: #1e2a43;
  --line-2: #2c3a5a;
  --field: #0b1322;
  --surface-2: #0c1424;
  --hover: #16223a;
  --disabled: #121b2d;
  --tint: rgba(255, 106, 0, .14);
  --tabs: #0b1322;
  --gray-bg: rgba(148, 163, 184, .14);
  --gray-ink: #aab4c6;
  --orange-ink: #ffb37a;
  --green: #6ee79a;
  --green-bg: rgba(34, 197, 94, .14);
  --blue: #9bbcff;
  --blue-bg: rgba(59, 130, 246, .16);
  --red: #ff8f8f;
  --red-bg: rgba(239, 68, 68, .14);
  --red-line: rgba(239, 68, 68, .4);
  --amber: #fbbf6a;
  --amber-bg: rgba(245, 158, 11, .12);
  --amber-ink: #f8cf94;
  --amber-line: rgba(245, 158, 11, .28);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -16px rgba(0, 0, 0, .7);
}
:root[data-theme="dark"] .modal { border: 1px solid var(--line-2); }
:root[data-theme="dark"] .modal-back { background: rgba(0, 0, 0, .65); }
:root[data-theme="dark"] .tabs button.active { box-shadow: 0 0 0 1px var(--line-2); }
:root[data-theme="dark"] .phone { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), inset 0 0 0 2px #26324f; }
:root[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8); }
html { transition: background-color .2s; }

.theme-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--field); color: var(--ink);
  font: inherit; font-weight: 650; font-size: .88rem; cursor: pointer;
}
.theme-btn:hover { background: var(--hover); }
.theme-btn svg { width: 17px; height: 17px; }
.auth-main { position: relative; }
.auth-theme { position: absolute; top: 20px; right: 20px; }
.side-theme {
  display: flex; align-items: center; gap: 12px; width: calc(100% - 20px); margin: 10px 10px 0; padding: 10px 12px;
  border: 0; border-radius: 10px; background: transparent; color: #b7c0d3; font: inherit; font-weight: 600; cursor: pointer; text-align: left;
}
.side-theme:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-theme svg { width: 19px; height: 19px; flex: none; }
.side-theme .sw {
  margin-left: auto; width: 34px; height: 20px; border-radius: 999px; background: #2a3654; position: relative; flex: none; transition: background .2s;
}
.side-theme .sw::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s;
}
.side-theme[aria-checked="true"] .sw { background: var(--orange); }
.side-theme[aria-checked="true"] .sw::after { transform: translateX(14px); }
.topbar .icon-btn.theme-top { margin-left: auto; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font); font-size: 15px; line-height: 1.5;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange); }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.55rem; font-weight: 800; }
h2 { font-size: 1.08rem; font-weight: 750; }
h3 { font-size: .98rem; font-weight: 700; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
:focus-visible { outline: 3px solid var(--orange-2); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; font: inherit; font-weight: 650;
  border: 1px solid var(--line-2); background: var(--field); color: var(--ink);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, box-shadow .15s, filter .15s;
}
.btn:hover { background: var(--hover); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -10px rgba(255, 106, 0, .85); }
.btn-primary:hover { background: var(--grad); filter: brightness(1.06); }
.btn-danger { color: var(--red); border-color: var(--red-line); }
.btn-danger:hover { background: var(--red-bg); }
.btn-ghost-dark { background: rgba(255,255,255,.06); color: #eef1f7; border-color: rgba(255,255,255,.14); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 6px 12px; font-size: .86rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--orange); cursor: pointer; font-weight: 650; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field > label, .field > .label { font-weight: 650; font-size: .9rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.hint { font-size: .82rem; color: var(--muted); }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--field); width: 100%;
  border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 106, 0, .16); }
input[disabled], select[disabled] { background: var(--disabled); color: var(--muted); }
input.invalid, select.invalid, textarea.invalid { border-color: var(--red); }
/* Preenchimento automático do navegador com as cores do tema */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--field) inset; transition: background-color 9999s;
}
/* Olhinho de mostrar/ocultar senha */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; }
.pw-wrap input::-ms-reveal { display: none; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 34px; border: 0; border-radius: 8px; background: transparent;
  color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.pw-toggle:hover { color: var(--ink); background: var(--hover); }
.pw-toggle[aria-pressed="true"] { color: var(--orange); }
.pw-toggle svg { width: 19px; height: 19px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: 1.4fr .6fr 1.4fr; gap: 0 16px; }
.inline-check { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; cursor: pointer; }
.inline-check input { width: auto; }
.form-error { background: var(--red-bg); color: var(--red); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-weight: 600; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 8px; flex-wrap: wrap; }
.section-title { margin: 22px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.section-title:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span {
  display: flex; align-items: center; gap: 8px; height: 100%;
  padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; font-weight: 600; font-size: .92rem;
  transition: border-color .15s, background .15s;
}
.choice:hover > span { border-color: var(--orange-2); }
.choice input:checked + span { border-color: var(--orange); background: var(--tint); box-shadow: 0 0 0 2px rgba(255, 106, 0, .18) inset; }
.choice input:focus-visible + span { outline: 3px solid var(--orange-2); outline-offset: 2px; }
.choice-grid.invalid .choice > span { border-color: var(--red); }
/* Opção com título e descrição (ex.: prazo) */
.choice > span.stacked { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 12px 14px; }
.choice .c-title { font-weight: 700; }
.choice .c-desc { font-size: .82rem; font-weight: 500; color: var(--muted); }

.money { position: relative; }
.money::before { content: "R$"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.money input { padding-left: 38px; }

.photos { display: flex; gap: 10px; flex-wrap: wrap; }
.photo { position: relative; width: 92px; height: 92px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo button {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; font-size: 14px; line-height: 1;
}
.photo-add {
  width: 92px; height: 92px; border-radius: 10px; border: 2px dashed var(--line-2);
  display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .8rem; font-weight: 600; cursor: pointer; padding: 6px;
}
.photo-add:hover { border-color: var(--orange-2); color: var(--orange); }

.locked { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 10px; background: var(--surface-2); }
.locked .t { font-weight: 650; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr minmax(380px, 520px); background: var(--bg); }
.auth-side {
  position: relative; overflow: hidden; color: #eef1f7; padding: 48px 56px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  background:
    radial-gradient(700px 420px at 85% 10%, rgba(255, 106, 0, .22), transparent 60%),
    radial-gradient(600px 500px at 0% 100%, rgba(255, 154, 46, .12), transparent 60%),
    var(--navy-950);
}
.auth-side .brand img { height: 34px; width: auto; }
.auth-side h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 900; max-width: 15ch; letter-spacing: -.02em; }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-side .lead { color: #9aa6bd; font-size: 1.08rem; max-width: 44ch; }
.auth-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; color: #d6dceb; }
.auth-points .n {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .85rem;
}
.auth-side .foot { color: #6f7b93; font-size: .85rem; }
.auth-side .foot a { color: #9aa6bd; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 28px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: 1.7rem; }
.auth-card .sub { color: var(--muted); margin-bottom: 24px; }
.auth-alt { margin-top: 18px; text-align: center; color: var(--muted); }
.demo-box { margin-top: 24px; padding: 14px 16px; border-radius: 12px; background: var(--amber-bg); color: var(--amber-ink); font-size: .9rem; }
.demo-box .btn { margin-top: 10px; }

/* ---------- shell ---------- */
.shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 40;
  background: var(--navy-900); color: #d6dceb; display: flex; flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.06);
}
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 22px 20px 18px; text-decoration: none; }
.sidebar .brand img { height: 24px; width: auto; }
.brand-tag {
  font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-2); border: 1px solid rgba(255, 154, 46, .4); border-radius: 999px; padding: 2px 8px;
}
.org { margin: 0 14px 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.05); }
.org-name { font-weight: 700; color: #fff; line-height: 1.25; }
.org-sub { font-size: .8rem; color: #8b97ae; margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.org-sub svg { width: 14px; height: 14px; flex: none; color: #6ee79a; }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: #b7c0d3; text-decoration: none; font-weight: 600;
}
.nav a svg { width: 19px; height: 19px; flex: none; opacity: .85; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: rgba(255, 106, 0, .14); color: #fff; }
.nav a.active svg { color: var(--orange-2); opacity: 1; }
.nav .cta { margin: 4px 0 10px; background: var(--grad); color: #fff; justify-content: center; }
.nav .cta:hover { background: var(--grad); filter: brightness(1.06); }
.nav .cta svg { opacity: 1; }
.side-foot { margin-top: auto; padding: 14px; border-top: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; gap: 10px; }
.avatar {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--navy-700); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .85rem;
}
.side-foot .who { min-width: 0; flex: 1; }
.side-foot .who b { display: block; color: #fff; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot .who span { font-size: .78rem; color: #8b97ae; }
.icon-btn {
  flex: none; width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent;
  color: #b7c0d3; cursor: pointer; display: grid; place-items: center;
}
.icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.icon-btn svg { width: 18px; height: 18px; }

.content { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: none; }
.mockbar {
  background: var(--amber-bg); color: var(--amber-ink); font-size: .86rem; padding: 8px 28px;
  border-bottom: 1px solid var(--amber-line);
}
.main { padding: 28px; width: 100%; max-width: 1180px; }
.scrim { display: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { margin: 0; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.back:hover { color: var(--ink); }
.back svg { width: 16px; height: 16px; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card + .card { margin-top: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.notice { display: flex; gap: 12px; align-items: flex-start; }
.notice > svg, .locked > svg { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--muted); }
.notice.warn { background: var(--amber-bg); border-color: var(--amber-line); color: var(--amber-ink); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.kpi { padding: 18px 20px; }
.kpi .k-label { color: var(--muted); font-size: .86rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kpi .k-label svg { width: 16px; height: 16px; }
.kpi .k-value { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.kpi .k-foot { font-size: .8rem; color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 12px; }
.steps .n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: var(--orange); display: grid; place-items: center; font-weight: 800; font-size: .82rem; }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: .9rem; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -22px -22px; }
.table-wrap.flush-top { margin-top: -22px; border-radius: var(--radius) var(--radius) 0 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 22px; border-top: 1px solid var(--line); vertical-align: middle; }
th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: var(--surface-2); }
tr.row-link { cursor: pointer; }
tr.row-link:hover td { background: var(--surface-2); }
td .t-title { font-weight: 650; color: var(--ink); text-decoration: none; }
td .t-sub { font-size: .82rem; color: var(--muted); }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
th.num { text-align: right; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-green { background: var(--green-bg); color: var(--green); }
.b-blue { background: var(--blue-bg); color: var(--blue); }
.b-gray { background: var(--gray-bg); color: var(--gray-ink); }
.b-amber { background: var(--amber-bg); color: var(--amber); }
.b-orange { background: var(--tint); color: var(--orange-ink); }

.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.tabs { display: inline-flex; gap: 4px; background: var(--tabs); padding: 4px; border-radius: 12px; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; font: inherit; font-weight: 650; color: var(--muted); padding: 7px 14px; border-radius: 9px; cursor: pointer; }
.tabs button.active { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tabs .count { font-weight: 700; color: var(--muted); margin-left: 4px; }
.search { max-width: 300px; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .big { font-size: 2.4rem; margin-bottom: 6px; }
.empty h3 { color: var(--ink); }

/* ---------- publish ---------- */
.publish { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.preview { position: sticky; top: 24px; }
.preview-label { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.phone {
  width: 300px; border-radius: 36px; padding: 12px; background: #0b111d;
  box-shadow: 0 30px 60px -30px rgba(5, 10, 20, .6), inset 0 0 0 2px #1d2740;
}
.phone-screen { border-radius: 26px; background: var(--navy-950); color: #eef1f7; min-height: 520px; padding: 18px 14px; overflow: hidden; }
.pv-top { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: #9aa6bd; margin-bottom: 14px; }
.pv-top b { color: #fff; font-size: 1rem; }
.pv-card { background: var(--navy-800); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; overflow: hidden; }
.pv-card img { width: 100%; height: 130px; object-fit: cover; }
.pv-body { padding: 12px 14px 14px; }
.pv-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.pv-chip { font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: #d6dceb; }
.pv-chip.emp { background: rgba(34, 197, 94, .16); color: #6ee79a; }
.pv-chip.urg { background: rgba(255, 106, 0, .2); color: #ffb37a; }
.pv-title { font-weight: 800; font-size: 1rem; line-height: 1.25; margin-bottom: 6px; color: #fff; word-break: break-word; }
.pv-desc { font-size: .82rem; color: #9aa6bd; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.pv-meta { font-size: .8rem; color: #c3cbdb; display: grid; gap: 4px; }
.pv-price { margin-top: 10px; font-weight: 800; font-size: 1.05rem; color: var(--orange-2); }
.pv-btn { margin-top: 12px; text-align: center; padding: 10px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 750; font-size: .88rem; }
.pv-ghost { margin-top: 12px; height: 70px; border-radius: 16px; background: var(--navy-800); opacity: .45; }
.pv-placeholder { color: #5d6a83; }

/* ---------- detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 14px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
.dl dt { color: var(--muted); font-size: .88rem; }
.dl dd { margin: 0; font-weight: 600; word-break: break-word; }
.desc { white-space: pre-wrap; word-break: break-word; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font-size: 1.5rem; }
.stat span { color: var(--muted); font-size: .82rem; }
.stack { display: grid; gap: 10px; }

/* Interessados (profissionais que liberaram o contato no app) */
.int-list { list-style: none; margin: 0; padding: 0; }
.int { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.int:first-child { border-top: 0; padding-top: 4px; }
.int .avatar { background: var(--gray-bg); color: var(--ink); }
.int-info { flex: 1; min-width: 0; }
.int-info .badge { margin-left: 4px; vertical-align: 1px; }
.btn-whats { flex: none; color: #fff; background: #1faa53; border-color: #1faa53; }
.btn-whats:hover { background: #168a43; border-color: #168a43; color: #fff; }
.btn-whats svg { width: 16px; height: 16px; }
@media (max-width: 560px) {
  .int { flex-wrap: wrap; }
  .btn-whats { margin-left: 46px; }
}

/* ---------- team ---------- */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.role { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface-2); }
.role b { display: block; margin-bottom: 4px; }
.role span { font-size: .86rem; color: var(--muted); }
.member { display: flex; align-items: center; gap: 12px; }
.member .avatar { background: var(--gray-bg); color: var(--ink); }
td select { width: auto; padding: 6px 10px; }

/* ---------- modal & toast ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(5, 10, 20, .55); z-index: 100;
  display: grid; place-items: center; padding: 20px; animation: fade .15s ease;
}
.modal { width: 100%; max-width: 480px; background: var(--card); color: var(--ink); border-radius: 16px; padding: 24px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.modal h2 { font-size: 1.2rem; }
@keyframes fade { from { opacity: 0; } }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 10px; }
.toast {
  background: var(--navy-900); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 600;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.6); display: flex; gap: 10px; align-items: center; max-width: 380px;
  animation: up .2s ease;
}
.toast.ok::before { content: "✓"; color: #6ee79a; font-weight: 900; }
.toast.err { background: var(--red); }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }

.loading { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .publish { grid-template-columns: 1fr; }
  .preview { position: static; }
  .two-col, .detail { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 32px 24px; }
  .auth-side .foot, .auth-points { display: none; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .shell.menu-open .sidebar { transform: none; }
  .shell.menu-open .scrim { display: block; position: fixed; inset: 0; background: rgba(5,10,20,.5); z-index: 30; }
  .content { margin-left: 0; }
  .topbar {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    background: var(--navy-900); position: sticky; top: 0; z-index: 20;
  }
  .topbar img { height: 22px; width: auto; }
  .main { padding: 20px 16px; }
  .mockbar { padding: 8px 16px; }
  .roles { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .card { padding: 18px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi .k-value { font-size: 1.5rem; }
  .phone { width: 100%; }
  th, td { padding: 10px 14px; }
  .table-wrap { margin: 0 -18px -18px; }
  .table-wrap.flush-top { margin-top: -18px; }
}
