/* Lux for Corporation — portal web da LuxDrive.
   Design system LuxDrive: dark premium, dourado #BEA264, raio 14px, escala 4/8/16/24/32. */

:root {
  --bg: #141414;
  --surface: #1A1A1A;
  --surface-2: #202020;
  --surface-3: #262626;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);
  --gold: #BEA264;
  --gold-2: #E6C766;
  --gold-soft: rgba(190, 162, 100, 0.14);
  --gold-line: rgba(190, 162, 100, 0.35);
  --text: #FFFFFF;
  --text-2: #A1A1AA;
  --text-3: #71717A;
  --success: #6FA283;
  --warning: #CE8A46;
  --error: #C46B5D;
  --info: #6E8FB0;
  --radius: 14px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar: 256px;
  --topbar: 64px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hidden { display: none !important; }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); font-size: 13px; }
.gold { color: var(--gold); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.noscript { padding: 24px; text-align: center; color: var(--text-2); }
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot img { animation: pulse 1.4s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: .35; transform: scale(.96); } 50% { opacity: 1; transform: scale(1); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- tipografia */
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; }
.display { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; }
.h1 { font-size: 32px; line-height: 1.15; font-weight: 800; }
.h2 { font-size: 22px; line-height: 1.25; font-weight: 700; }
.h3 { font-size: 17px; font-weight: 600; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.lead { font-size: 18px; color: var(--text-2); max-width: 640px; }

/* ------------------------------------------------------------------ botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--radius); border: 1px solid transparent;
  background: var(--gold); color: #000; font-weight: 700; font-size: 15px; cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease), opacity 200ms var(--ease);
  text-decoration: none; white-space: nowrap; user-select: none;
}
.btn:hover { transform: scale(1.02); box-shadow: 0 6px 24px rgba(190, 162, 100, 0.28); color: #000; background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.btn:active { transform: scale(0.98); }
.btn[disabled], .btn.is-loading { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.secondary { background: var(--glass); color: var(--text); border-color: var(--border); }
.btn.secondary:hover { background: var(--glass-strong); box-shadow: none; color: var(--text); }
.btn.ghost { background: transparent; color: var(--text-2); border-color: transparent; padding: 0 12px; }
.btn.ghost:hover { color: var(--text); background: var(--glass); box-shadow: none; }
.btn.danger { background: transparent; color: var(--error); border-color: rgba(196, 107, 93, 0.45); }
.btn.danger:hover { background: rgba(196, 107, 93, 0.12); box-shadow: none; color: var(--error); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid rgba(0,0,0,.25); border-top-color: #000; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.secondary .spinner, .btn.ghost .spinner { border-color: rgba(255,255,255,.2); border-top-color: #fff; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center;
  background: transparent; border: 1px solid transparent; color: var(--text-2); cursor: pointer;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.icon-btn:hover { background: var(--glass); color: var(--text); }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold); font-weight: 600; cursor: pointer; }
.link-btn:hover { color: var(--gold-2); }
.link-btn[disabled] { color: var(--text-3); cursor: not-allowed; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 16px; height: 16px; }
svg.i.lg { width: 24px; height: 24px; }

/* --------------------------------------------------------------- formulários */
.form { display: grid; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.span-2 { grid-column: span 2; }
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--text-3); }
.field .error-text { font-size: 12px; color: var(--error); }
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 16px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); color: var(--text);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}
.textarea { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 20px) calc(50% - 2px), calc(100% - 15px) calc(50% - 2px); background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.select option { background: var(--surface-2); color: var(--text); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
/* background-color (e não o atalho `background`): o atalho apagaria a seta do select. */
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); background-color: rgba(255,255,255,0.06); }
.input.invalid, .select.invalid { border-color: var(--error); }
.input[readonly], .input:disabled, .select:disabled { color: var(--text-2); background-color: rgba(255,255,255,0.02); }
input[type="date"].input, input[type="time"].input, input[type="month"].input { color-scheme: dark; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--text-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex: none; }
/* Chave liga/desliga (pill, dourada quando ligada). O input fica por cima, invisível: teclado e leitor de tela funcionam. */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--text-2); }
.switch input { position: absolute; left: 0; top: 50%; width: 40px; height: 24px; margin: -12px 0 0; opacity: 0; cursor: pointer; }
.switch-track { position: relative; width: 40px; height: 24px; flex: none; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border); transition: background-color 200ms var(--ease), border-color 200ms var(--ease); }
.switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); transition: transform 200ms var(--ease), background-color 200ms var(--ease); }
.switch input:checked + .switch-track { background: var(--gold-soft); border-color: var(--gold); }
.switch input:checked + .switch-track::after { transform: translateX(16px); background: var(--gold); }
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 3px var(--gold-soft); }
.switch input:disabled + .switch-track { opacity: .5; }
/* Autorizar / Não autorizar (Funcionários): estado atual em dourado; cooldown de 5 min com cronômetro. */
.pay-access { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pay-access .seg { display: inline-flex; gap: 6px; }
.pay-access .btn.is-current[disabled] { opacity: 1; cursor: default; }
.pay-access.locked .btn[disabled] { opacity: .45; cursor: not-allowed; }
.cooldown-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.cooldown-note .i { width: 14px; height: 14px; color: var(--gold); }
.option-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--glass); cursor: pointer;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.option-card:hover { border-color: var(--border-strong); }
.option-card.selected { border-color: var(--gold); background: var(--gold-soft); }
.option-card input { width: 20px; height: 20px; accent-color: var(--gold); margin-top: 2px; flex: none; }
.option-card .t { font-weight: 600; }
.option-card .d { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 48px; }
.password-wrap .icon-btn { position: absolute; right: 4px; top: 4px; }
.code-inputs { display: flex; gap: 10px; justify-content: center; }
.code-inputs input {
  width: 52px; height: 60px; text-align: center; font-size: 26px; font-weight: 700; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); color: var(--text);
}
.code-inputs input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.logo-picker { display: flex; align-items: center; gap: 16px; }
.logo-preview {
  width: 72px; height: 72px; border-radius: var(--radius); border: 1px dashed var(--border-strong);
  display: grid; place-items: center; background: var(--glass); overflow: hidden; color: var(--text-3); flex: none;
}
.logo-preview img { width: 100%; height: 100%; object-fit: contain; }

/* ------------------------------------------------------------------ cartões */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.025));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.card.flat { box-shadow: none; }
.card.pad-sm { padding: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.card-head .h3 { display: flex; align-items: center; gap: 8px; }
.stack { display: grid; gap: 16px; }
.stack-lg { display: grid; gap: 24px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; background: var(--glass); color: var(--text-2); border: 1px solid var(--border);
  white-space: nowrap;
}
.badge.gold { background: var(--gold-soft); color: var(--gold-2); border-color: var(--gold-line); }
.badge.success { background: rgba(111,162,131,.14); color: #8FC1A2; border-color: rgba(111,162,131,.35); }
.badge.warning { background: rgba(206,138,70,.14); color: #E0A56B; border-color: rgba(206,138,70,.35); }
.badge.error { background: rgba(196,107,93,.14); color: #DA8B7E; border-color: rgba(196,107,93,.35); }
.badge.info { background: rgba(110,143,176,.14); color: #95B1CC; border-color: rgba(110,143,176,.35); }
.verified { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-2); font-weight: 600; font-size: 14px; }

.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius);
  background: var(--gold-soft); border: 1px solid var(--gold-line); color: #EADFC4; font-size: 14px;
}
.notice.info { background: rgba(110,143,176,.10); border-color: rgba(110,143,176,.3); color: #C9D6E3; }
.notice.error { background: rgba(196,107,93,.10); border-color: rgba(196,107,93,.35); color: #EBC3BC; }
.notice.warning { background: rgba(206,138,70,.10); border-color: rgba(206,138,70,.35); color: #EBD0B2; }
.notice .spacer { flex: 1; }

/* ------------------------------------------------------------------ tabelas */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; padding: 12px 16px; background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(255,255,255,0.015); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-main { font-weight: 600; }
.cell-sub { font-size: 12px; color: var(--text-3); }
.route { display: grid; gap: 4px; font-size: 13px; }
.route .o::before, .route .d::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; vertical-align: 1px; }
.route .o::before { border-radius: 50%; background: var(--text); }
.route .d::before { background: var(--gold); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 12px 16px; border: 0; background: none; color: var(--text-2); font-weight: 600; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--gold); }
.tab .count { margin-left: 6px; font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--gold); color: #000; }

.empty { text-align: center; padding: 48px 24px; color: var(--text-2); display: grid; gap: 12px; justify-items: center; }
.empty .icon-circle { width: 56px; height: 56px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; }
.empty .t { color: var(--text); font-weight: 600; font-size: 17px; }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.08), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }
.loader { display: grid; place-items: center; padding: 48px; }
.loader span { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--gold); animation: spin .8s linear infinite; }

/* ------------------------------------------------------------ toasts/modais */
.toasts { position: fixed; right: 24px; bottom: 24px; display: grid; gap: 8px; z-index: 100; max-width: min(420px, calc(100vw - 32px)); }
.toast {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius);
  background: #1F1F1F; border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 14px;
  animation: fade-up 240ms var(--ease);
}
.toast.error { border-color: rgba(196,107,93,.5); }
.toast.success { border-color: rgba(111,162,131,.5); }
.toast.warning { border-color: rgba(206,138,70,.5); }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--info); }
.toast.error .dot { background: var(--error); }
.toast.success .dot { background: var(--success); }
.toast.warning .dot { background: var(--warning); }

.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 90; padding: 16px; animation: fade-up 200ms var(--ease); }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #1C1C1C; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.modal.wide { width: min(760px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 24px 0; gap: 16px; }
.modal-body { padding: 16px 24px 24px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; padding: 0 24px 24px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- site público */
.public { min-height: 100vh; display: flex; flex-direction: column; }
.public-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 72px; padding: 0 clamp(16px, 4vw, 48px); background: rgba(20,20,20,.72); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 28px; height: 33px; }
.brand .b1 { font-size: 17px; }
.brand .b2 { color: var(--gold); font-weight: 600; }
.brand:hover { color: var(--text); }
.public-main { flex: 1; }
.hero { position: relative; padding: clamp(64px, 11vw, 140px) clamp(16px, 4vw, 48px) 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(circle, rgba(190,162,100,.20), transparent 62%); pointer-events: none; }
.hero-inner { position: relative; max-width: 1120px; margin: 0 auto; display: grid; gap: 24px; animation: fade-up 400ms var(--ease); }
.hero .lead { margin-top: 4px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.section { max-width: 1120px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 48px); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.feature { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--glass); display: grid; gap: 12px; align-content: start; transition: border-color 200ms var(--ease), transform 200ms var(--ease); }
.feature:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; }
.feature p { margin: 0; color: var(--text-2); font-size: 14px; }
.steps-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; counter-reset: s; }
.steps-band .s { padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); counter-increment: s; }
.steps-band .s::before { content: "0" counter(s); display: block; color: var(--gold); font-weight: 800; font-size: 13px; letter-spacing: .1em; margin-bottom: 8px; }
.cta-band { margin: 24px auto 72px; max-width: 1120px; padding: 40px; border-radius: var(--radius-lg); border: 1px solid var(--gold-line); background: radial-gradient(circle at 90% 0%, rgba(190,162,100,.18), transparent 50%), var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.public-footer { border-top: 1px solid rgba(255,255,255,.06); padding: 24px clamp(16px, 4vw, 48px); color: var(--text-3); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }

.auth-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 40px 16px 64px; }
.auth-card { width: min(480px, 100%); }
.auth-card.wide { width: min(720px, 100%); }
.auth-card .card { padding: 32px; }
.auth-title { display: grid; gap: 8px; margin-bottom: 24px; }
.stepper { display: flex; gap: 8px; margin-bottom: 24px; }
.stepper .st { flex: 1; display: grid; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.stepper .st .bar { height: 4px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.stepper .st.done .bar, .stepper .st.current .bar { background: var(--gold); }
.stepper .st.current, .stepper .st.done { color: var(--text); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.invite-hero { display: flex; gap: 16px; align-items: center; }
.corp-logo { width: 56px; height: 56px; border-radius: var(--radius); background: var(--surface-3); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; color: var(--gold); font-weight: 800; flex: none; font-size: 20px; }
.corp-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.corp-logo.sm { width: 36px; height: 36px; border-radius: 10px; font-size: 14px; }

/* ------------------------------------------------------------------- painel */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid rgba(255,255,255,.06); background: #111111; display: flex; flex-direction: column; }
.sidebar .brand { height: var(--topbar); padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.06); flex: none; }
.nav { padding: 12px; display: grid; gap: 2px; align-content: start; }
.nav-group { margin-top: 12px; padding: 8px 12px 4px; font-size: 11px; font-weight: 700; color: var(--text-3); letter-spacing: .12em; text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 12px; color: var(--text-2);
  font-weight: 500; font-size: 14px; transition: background 200ms var(--ease), color 200ms var(--ease);
}
.nav-item:hover { background: var(--glass); color: var(--text); }
.nav-item.active { background: var(--gold-soft); color: var(--text); }
.nav-item.active svg { color: var(--gold); }
.nav-item .count { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--gold); color: #000; }
.nav-sub { display: grid; gap: 2px; padding-left: 32px; }
.nav-sub .nav-item { height: 36px; font-size: 13px; }
.sidebar-foot { margin-top: auto; padding: 16px; border-top: 1px solid rgba(255,255,255,.06); }
.sidebar-corp { display: flex; gap: 12px; align-items: center; min-width: 0; }
.sidebar-corp .n { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 15; height: var(--topbar); display: flex; align-items: center; gap: 12px; padding: 0 24px; background: rgba(20,20,20,.8); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar .menu-btn { display: none; }
.topbar .title { font-weight: 600; color: var(--text-2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.help-pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--border); color: var(--text); font-size: 13px; font-weight: 600; }
.help-pill:hover { color: var(--text); background: var(--glass-strong); }
.bell { position: relative; }
.bell .dot-count { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--error); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #000; font-weight: 800; font-size: 14px; display: grid; place-items: center; border: 0; cursor: pointer; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.menu-pop { position: absolute; right: 0; top: 48px; width: 260px; background: #1E1E1E; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; z-index: 30; animation: fade-up 180ms var(--ease); }
.menu-pop .who { padding: 12px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.menu-pop .who .n { font-weight: 600; }
.menu-pop button, .menu-pop a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: none; color: var(--text-2); cursor: pointer; font-size: 14px; text-align: left; }
.menu-pop button:hover, .menu-pop a:hover { background: var(--glass); color: var(--text); }
.pop-anchor { position: relative; }

.content { width: 100%; max-width: 1160px; margin: 0 auto; padding: 24px clamp(16px, 3vw, 40px) 64px; animation: fade-up 260ms var(--ease); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 16px 0 24px; flex-wrap: wrap; }
.page-head .t { display: grid; gap: 8px; }
.welcome-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--gold-soft); border: 1px solid var(--gold-line); color: #EADFC4; font-size: 14px; margin-bottom: 8px; }
.welcome-banner .spacer { flex: 1; }

.setup-list { display: grid; gap: 12px; margin-top: 24px; }
.setup-item { border-radius: var(--radius); border: 1px solid var(--border); background: var(--glass); transition: border-color 200ms var(--ease), background 200ms var(--ease); }
.setup-item.open { border-color: var(--gold-line); background: rgba(255,255,255,0.04); }
.setup-item.done { background: rgba(255,255,255,0.025); }
.setup-row { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 64px; padding: 0 24px; background: none; border: 0; color: var(--text); cursor: pointer; text-align: left; font-size: 16px; font-weight: 500; }
.setup-row .chev { margin-left: auto; color: var(--text-3); transition: transform 200ms var(--ease); }
.setup-item.open .chev { transform: rotate(180deg); }
.setup-item.done .label-t { color: var(--text-2); }
.check-circle { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; flex: none; color: var(--text-3); }
.setup-item.done .check-circle { border-color: var(--success); color: var(--success); }
.setup-body { padding: 0 24px 24px 68px; color: var(--text-2); display: grid; gap: 16px; justify-items: start; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--glass); display: grid; gap: 8px; }
.stat .k { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.stat .k svg { color: var(--gold); }
.stat .v { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
/* Item de grade não encolhe abaixo do conteúdo (min-width: auto): uma tabela
   larga empurrava a página no celular. Com 0, a .table-wrap rola sozinha. */
.cols > *, .grid-2 > *, .grid-3 > *, .stats > * { min-width: 0; }
.activity { display: grid; }
.activity-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: 0; }
.activity-item .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--glass-strong); color: var(--gold); display: grid; place-items: center; flex: none; }
.activity-item .t { font-size: 14px; }
.activity-item.alert .ic { color: var(--error); background: rgba(196,107,93,.14); }
.activity-day { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); padding: 20px 0 4px; }
.activity-day:first-child { padding-top: 0; }
.activity-more { display: flex; justify-content: center; padding-top: 16px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  height: 34px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: var(--glass); color: var(--text-2); font: 500 13px var(--font); cursor: pointer;
  transition: border-color 200ms var(--ease), color 200ms var(--ease), background 200ms var(--ease), transform 200ms var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--border-strong); transform: scale(1.02); }
.chip:active { transform: scale(0.98); }
.chip.active { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-2); }

.mgr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mgr-card {
  display: grid; gap: 6px; padding: 16px; text-align: left; cursor: pointer; color: var(--text);
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--glass); font-family: var(--font);
  transition: border-color 200ms var(--ease), background 200ms var(--ease), transform 200ms var(--ease);
}
.mgr-card:hover { border-color: var(--border-strong); transform: scale(1.02); }
.mgr-card:active { transform: scale(0.98); }
.mgr-card.active { border-color: var(--gold-line); background: var(--gold-soft); }
.mgr-card .n { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mgr-card .v { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.learn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.learn { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--glass); color: var(--text); transition: border-color 200ms var(--ease), transform 200ms var(--ease); }
.learn:hover { border-color: var(--gold-line); color: var(--text); transform: translateY(-2px); }
.learn .ic { width: 64px; height: 64px; border-radius: 12px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; flex: none; }
.learn .t { font-weight: 600; }

.pay-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--glass); flex-wrap: wrap; }
.pay-card.default { border-color: var(--gold-line); }
.pay-card .brand-chip { width: 52px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, #2c2c2c, #1b1b1b); border: 1px solid var(--border); display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--gold-2); text-transform: uppercase; }
.pay-card.disabled { opacity: .6; }

.autocomplete { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; background: #1E1E1E; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); max-height: 280px; overflow: auto; padding: 6px; }
.ac-list button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; color: var(--text); border-radius: 10px; cursor: pointer; font-size: 14px; }
.ac-list button:hover, .ac-list button.active { background: var(--glass-strong); }
.quote { display: flex; gap: 24px; flex-wrap: wrap; padding: 16px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--border); }
.quote .v { font-size: 22px; font-weight: 800; }
.member-picks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: 220px; overflow: auto; padding: 4px; }
.perm-table td:not(:first-child), .perm-table th:not(:first-child) { text-align: center; }
.perm-yes { color: var(--success); }
.perm-no { color: var(--text-3); }

.backdrop { display: none; }

/* --------------------------------------------------------------- responsivo */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps-band { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); z-index: 60; transform: translateX(-100%); transition: transform 240ms var(--ease); }
  .shell.nav-open .sidebar { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.6); }
  .shell.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 55; }
  .topbar { padding: 0 16px; }
  .topbar .menu-btn { display: inline-grid; }
  .help-pill .txt { display: none; }
  .content { padding: 16px 16px 48px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .learn-grid { grid-template-columns: 1fr; }
  .member-picks { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 16px; }
  .stat .v { font-size: 24px; }
  .feature-grid, .steps-band { grid-template-columns: 1fr; }
  .auth-card .card { padding: 24px 16px; }
  .code-inputs { gap: 6px; }
  .code-inputs input { width: 44px; height: 54px; font-size: 22px; }
  .setup-row { padding: 0 16px; font-size: 15px; }
  .setup-body { padding: 0 16px 16px 16px; }
  .h1 { font-size: 26px; }
  .cta-band { padding: 24px; }
  .modal-head { padding: 20px 16px 0; }
  .modal-body { padding: 16px; }
  .modal-actions { padding: 0 16px 16px; }
  .modal-actions .btn { flex: 1; }
  /* No celular o topo fica só com a marca: as páginas já têm os botões no corpo. */
  .public-nav .btn { display: none; }
  .toasts { right: 16px; left: 16px; bottom: 16px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
