/* =============================================================================
 * merion-v2-pages.css — CSS por TELA do rebrand v2. Carregado depois de
 * merion-v2.css. Cada seção abaixo é de uma área do app; o que é comum a todas
 * as telas mora em merion-v2.css, não aqui.
 * ========================================================================== */

/* ═══════════ TABELAS: /sites, /dominios, /membros ═══════════ */

/* --- Comum às três: linhas entram em cascata; botão-ícone destrutivo só
       avisa na intenção --- */
.sites-table tbody tr.enter:nth-child(n+6) { animation-delay: .25s; }
.mem-danger:hover:not(:disabled), .mem-danger:focus-visible:not(:disabled) { background: rgba(255,61,127,.12); color: var(--destructive); }
.mem-danger-btn { border-color: rgba(255,61,127,.4); color: var(--destructive); }
.mem-danger-btn:hover:not(:disabled) { border-color: var(--destructive); background: rgba(255,61,127,.12); color: var(--destructive); }

/* --- /sites (mockup 02) --- */
.sites-table .table { min-width: 720px; }
.sites-table .table td { vertical-align: middle; }
.sites-id { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.sites-tile { width: 34px; height: 34px; border-radius: 9px; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(135deg, hsl(var(--tile-hue, 170) 45% 28%), hsl(var(--tile-hue, 170) 40% 18%)); transition: box-shadow .2s ease, transform .2s ease; }
.sites-table tr:hover .sites-tile { box-shadow: 0 0 14px rgba(0,255,212,.25); transform: scale(1.04); }
.sites-id-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.sites-slug { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s ease; }
.sites-id:hover .sites-slug { color: var(--brand); }
.sites-addr { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sites-dns { flex: none; font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 1px 6px; border-radius: 999px; background: rgba(255,194,75,.12); color: var(--warning); }
.sites-version { display: inline-block; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.7); padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.05); font-variant-numeric: tabular-nums; }
.sites-num { font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sites-files { display: block; font-size: 11px; color: rgba(255,255,255,.4); }
.sites-actions { display: inline-flex; gap: 2px; justify-content: flex-end; width: 100%; opacity: .55; transition: opacity .15s ease; }
.sites-table tr:hover .sites-actions { opacity: 1; }

/* Rascunhos: painel tracejado em âmbar com o ponto pulsante. */
.sites-drafts { margin-top: 20px; border-radius: var(--radius-lg); border: 1px dashed rgba(255,194,75,.35); background: rgba(255,194,75,.03); overflow: hidden; }
.sites-drafts-head { display: flex; align-items: center; gap: 10px; padding: 14px 22px 10px; flex-wrap: wrap; }
.sites-drafts-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); color: var(--warning); animation: pulseDot 1.8s ease-out infinite; }
.sites-drafts-kicker { color: var(--warning); margin: 0; }
.sites-drafts-hint { margin-left: auto; font-size: 12px; color: rgba(255,255,255,.45); }
.sites-draft { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 22px; border-top: 1px solid rgba(255,255,255,.05); transition: background .15s ease, opacity .2s ease; }
.sites-draft:hover { background: rgba(255,194,75,.04); }
.sites-draft-ic { width: 34px; height: 34px; border-radius: 9px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,194,75,.1); color: var(--warning); border: 1px solid rgba(255,194,75,.25); }
.sites-draft-ic .ic { font-size: 16px; }

/* --- /dominios (mockup 08) --- */
.dom-quota { display: flex; align-items: center; gap: 10px; flex: none; }
.dom-quota-label { font-size: 12px; color: rgba(255,255,255,.5); white-space: nowrap; }
.dom-quota-meter { width: 120px; display: block; margin: 0; }
.dom-quota-num { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dom-quota-num span { color: rgba(255,255,255,.5); font-weight: 500; }
.dom-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.card.dom-stat { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; min-width: 0; }
.dom-stat .kpi-top .ic { font-size: 15px; color: rgba(255,255,255,.35); }
.dom-stat[data-tone="ok"] .kpi-top .ic { color: var(--brand); }
.dom-stat[data-tone="warn"] .kpi-top .ic, .dom-stat[data-tone="warn"] .kpi-val { color: var(--warning); }
.dom-stat[data-tone="bad"] .kpi-top .ic, .dom-stat[data-tone="bad"] .kpi-val { color: var(--destructive); }
.dom-stat .kpi-val { font-size: 26px; line-height: 1; margin: 0; }
.dom-stat-sub { font-size: 11.5px; color: rgba(255,255,255,.5); }
.domain-add { background: linear-gradient(180deg, rgba(0,255,212,.05), rgba(0,255,212,.01)), #0A1F25; border-color: rgba(0,255,212,.2); border-radius: var(--radius-lg); }
.dom-add-field .ic { color: var(--brand); font-size: 16px; }
.dom-add-field .input { border-color: rgba(0,255,212,.25); background: rgba(0,255,212,.03); }
.domain-list { background: var(--card-gradient); border-radius: var(--radius-lg); }
.domain-list-head { background: transparent; font-size: 10.5px; letter-spacing: .14em; color: rgba(255,255,255,.45); }
.domain-group-head { align-items: center; gap: 8px; padding: 8px 20px; background: rgba(0,0,0,.15); border-bottom: 1px solid rgba(255,255,255,.05); }
.domain-group-head .ic { font-size: 13px; color: rgba(0,255,212,.7); }
.domain-group-zone { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.8); }
.domain-group-count { font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.55); }
.domain-item { transition: background .15s ease, box-shadow .15s ease; }
.domain-item:hover { background: rgba(0,255,212,.035); box-shadow: inset 3px 0 0 var(--brand); }
.domain-item[data-open="true"] { background: rgba(0,0,0,.12); }
/* Status vira pill de badge (mockup), com o ponto pulsando enquanto espera DNS. */
.domain-status { height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.domain-status .badge-dot { box-shadow: 0 0 6px currentColor; }
.domain-status[data-state="active"] { background: rgba(0,255,212,.1); border-color: rgba(0,255,212,.25); color: var(--brand); }
.domain-status[data-state="pending_dns"] { background: rgba(255,194,75,.1); border-color: rgba(255,194,75,.3); }
.domain-status[data-state="pending_dns"] .badge-dot { animation: pulseDot 1.6s ease-out infinite; }
.domain-status[data-state="expired"] { background: rgba(255,61,127,.1); border-color: rgba(255,61,127,.3); }
.domain-status[data-state="active"][data-orphan] { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.6); }
.domain-verify .btn-ghost:disabled { opacity: 1; color: rgba(255,255,255,.35); }
.domain-remove:hover:not(:disabled), .domain-remove:focus-visible:not(:disabled) { background: rgba(255,61,127,.12); }
.domain-dns { background: rgba(0,0,0,.18); border-top: 1px dashed rgba(255,255,255,.06); padding-top: 12px; }
.dns-step { background: rgba(0,255,212,.12); color: var(--brand); font-size: 10.5px; font-weight: 700; }
.dns-record { background: transparent; border-color: rgba(255,255,255,.06); }
.dns-chip { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); border-radius: 7px; font-family: var(--ui-mono, ui-monospace, Menlo, monospace); font-size: 12px; transition: border-color .15s ease, color .15s ease, transform .15s ease; }
.dns-chip:hover { border-color: rgba(0,255,212,.4); color: var(--brand); }
.dns-chip:hover .ic { color: var(--brand); }
@keyframes chipCopied { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }
.dns-chip[data-copied="true"] { border-color: rgba(0,255,212,.6); color: var(--brand); box-shadow: 0 0 12px rgba(0,255,212,.25); animation: chipCopied .3s var(--ease); }
.dns-chip[data-copied="true"] .ic { color: var(--brand); }
.domain-pager .page-btn { min-width: 30px; height: 30px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.65); border-color: rgba(255,255,255,.08); transition: border-color .15s ease, color .15s ease, background .15s ease; }
.domain-pager .page-btn:hover { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(0,255,212,.4); }
.domain-pager .pagination .page-btn[data-active="true"], .domain-pager .pagination .page-btn[data-active="true"]:hover { background: rgba(0,255,212,.12); color: var(--brand); border-color: transparent; box-shadow: inset 0 0 0 1px rgba(0,255,212,.3); font-weight: 700; }

/* --- /membros (mockup 09) --- */
.mem-layout { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 1000px) { .mem-layout { grid-template-columns: minmax(0, 1fr) 272px; } }
.mem-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mem-side { display: flex; flex-direction: column; gap: 14px; }
.card.mem-invite { padding: 14px 16px; border-color: rgba(0,255,212,.2); background: linear-gradient(180deg, rgba(0,255,212,.05), rgba(0,255,212,.01)), #0A1F25; }
.mem-invite-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mem-invite-ic { width: 34px; height: 34px; border-radius: 9px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: rgba(0,255,212,.12); color: var(--brand); }
.mem-invite-ic .ic { font-size: 16px; }
.mem-invite-field { flex: 1 1 220px; }
.mem-invite-field .input, .mem-invite .select-trigger, .mem-invite .btn { height: 38px; }
.mem-invite-hint { margin: 10px 0 0 44px; font-size: 12px; color: rgba(255,255,255,.45); }
.mem-table .table { min-width: 560px; }
/* Celular: a rolagem lateral cortava os badges de permissão no meio. Cada linha
   vira bloco — pessoa em cima; permissão e "desde" à esquerda, ações à direita. */
@media (max-width: 600px) {
  .mem-table .table { min-width: 0; }
  .mem-table thead { display: none; }
  .mem-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .mem-table tbody td { display: block; padding: 0; border: 0; }
  .mem-table tbody td:first-child { grid-column: 1 / -1; }
  .mem-table tbody td:nth-child(2), .mem-table tbody td.mem-since { grid-column: 1; padding-left: 46px; }
  .mem-table tbody td:last-child { grid-column: 2; grid-row: 2 / span 2; }
}
.mem-feedback { padding: 12px 20px 0; }
.mem-feedback .alert { margin-bottom: 0; }
.mem-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mem-avatar { position: relative; width: 34px; height: 34px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(135deg, hsl(var(--av-hue, 170) 45% 32%), hsl(var(--av-hue, 170) 40% 20%)); transition: box-shadow .2s ease, transform .2s ease; }
.mem-table tr:hover .mem-avatar { box-shadow: 0 0 14px rgba(0,255,212,.25); transform: scale(1.04); }
.mem-avatar-invite { background: transparent; border: 1px dashed rgba(255,194,75,.5); color: var(--warning); }
.mem-avatar-invite .ic { font-size: 14px; }
.mem-person-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.mem-name { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; min-width: 0; }
.mem-name > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mem-you { flex: none; font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 1px 6px; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }
.mem-email { font-size: 12px; color: rgba(255,255,255,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mem-expires { display: inline-flex; align-items: center; gap: 4px; color: var(--warning); }
.mem-expires .ic { font-size: 11px; }
.mem-pending td { background: rgba(255,194,75,.03); }
.mem-since { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mem-actions { display: inline-flex; gap: 2px; justify-content: flex-end; width: 100%; opacity: .55; transition: opacity .15s ease; }
.mem-actions form { display: contents; }
.mem-table tr:hover .mem-actions { opacity: 1; }
.mem-table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 22px; border-top: 1px solid rgba(255,255,255,.06); background: rgba(0,0,0,.12); font-size: 12px; color: rgba(255,255,255,.45); }
.card.mem-project, .card.mem-leave, .card.mem-danger-zone { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; }
.mem-rename { display: flex; flex-direction: column; gap: 6px; }
.mem-rename-row { display: flex; gap: 6px; }
.mem-rename-row .input { flex: 1; min-width: 0; height: 36px; font-weight: 600; font-size: 13.5px; }
.mem-rename-row .btn { height: 36px; }
.mem-project-name { font-size: 15px; font-weight: 600; }
.mem-project .card-sep { margin: 0; }
.mem-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.mem-facts dt { font-size: 11px; color: rgba(255,255,255,.45); }
.mem-facts dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mem-facts .mem-fact-big { font-size: 18px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mem-leave .card-desc, .mem-danger-zone .card-desc { margin: 0; font-size: 12px; }
.card.mem-danger-zone { border-color: rgba(255,61,127,.25); background: rgba(255,61,127,.03); }
.mem-danger-kicker { color: var(--destructive); }
.mem-side .btn { justify-content: center; height: 34px; }

@media (prefers-reduced-motion: reduce) {
  .sites-drafts-dot, .domain-status .badge-dot, .dns-chip[data-copied="true"] { animation: none !important; }
  .sites-tile, .mem-avatar, .dns-chip { transition: none; transform: none !important; }
}


/* ═══════════ KPI: /dashboard, /uso, /planos ═══════════ */

/* --- Cartão de KPI (UsageCards; mockup 01) --- */
.usage-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 20px; }
.card.usage-card.kpi { padding: 16px 18px; gap: 10px; min-width: 0; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi-top .ds-kicker { color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.kpi-ic .ic { font-size: 15px; }
.kpi-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; row-gap: 0; }
.kpi-val { line-height: 1; margin: 0; }
.kpi-unit { font-size: 16px; font-weight: 500; color: rgba(255,255,255,.6); margin-left: 4px; letter-spacing: 0; }
.kpi-pct { font-size: 12px; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.kpi-pct[data-state="warning"] { color: var(--destructive); }
.usage-card-hint { font-size: 11.5px; color: rgba(255,255,255,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usage-card .usage-meter { margin-top: 2px; }
.usage-meter-fill[data-state="warning"] { background: linear-gradient(90deg, #C22B5C, var(--destructive)); box-shadow: 0 0 10px rgba(255,61,127,.55); }

/* --- Launchpad (mockup 01) --- */
.card.launchpad { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; background: linear-gradient(180deg, #0C2329 0%, #0A1F25 100%); }
.launch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.launch-tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.02); color: #fff; text-decoration: none; overflow: hidden; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease; }
.launch-tile:hover, .launch-tile:focus-visible { outline: none; border-color: rgba(0,255,212,.45); background: rgba(0,255,212,.05); box-shadow: 0 0 20px rgba(0,255,212,.12), inset 0 0 0 1px rgba(0,255,212,.1); transform: translateY(-2px); }
.launch-ic { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-tint); color: var(--brand); border: 1px solid rgba(0,255,212,.18); transition: box-shadow .2s ease; }
.launch-ic .ic { font-size: 16px; }
.launch-tile:hover .launch-ic { box-shadow: 0 0 14px rgba(0,255,212,.35); }
.launch-title { font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.launch-desc { font-size: 11.5px; color: rgba(255,255,255,.5); line-height: 1.45; }
.launch-arrow { position: absolute; top: 12px; right: 12px; font-size: 14px; color: rgba(255,255,255,.3); transition: transform .2s var(--ease), color .2s ease; }
.launch-tile:hover .launch-arrow { transform: translate(2px, -2px); color: var(--brand); }

/* --- /uso (mockup 12) --- */
.uso-project { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 20px; }
.uso-cols { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 34px; }
@media (min-width: 900px) { .uso-cols { grid-template-columns: 1.15fr 1fr; align-items: stretch; } }
.card.uso-stack { display: flex; flex-direction: column; gap: 10px; }
.uso-stack-total { font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
/* Cor por posição: 6 matizes a 55°, do ciano da marca em diante. */
.uso-stack-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; margin-top: 2px; }
.uso-stack-bar > span, .uso-stack-dot { background: hsl(calc(170 + var(--i, 0) * 55) 70% 55%); }
.uso-stack-bar > span { display: block; min-width: 4px; transform-origin: left; animation: meterIn .9s var(--ease) both; }
.uso-stack-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.uso-stack-list li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; min-width: 0; }
.uso-stack-list li a { flex: 1; min-width: 0; color: rgba(255,255,255,.75); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s ease; }
.uso-stack-list li a:hover { color: var(--brand); }
.uso-stack-list li strong { width: 40px; text-align: right; font-size: 12.5px; }
.uso-stack-dot { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.uso-version { display: inline-block; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.7); padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.05); font-variant-numeric: tabular-nums; }

/* --- /planos (mockup 11) --- */
.plan-now { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
@media (min-width: 900px) { .plan-now { grid-template-columns: 1.5fr 1fr 1fr; } }
.plan-now .card.plan-current { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 10px; margin-top: 0; padding: 16px 18px; border-color: rgba(0,255,212,.25); background: linear-gradient(180deg, rgba(0,255,212,.07), rgba(0,255,212,.02)), #0A1F25; box-shadow: 0 0 30px rgba(0,255,212,.06); }
.plan-now-kicker { color: var(--brand); }
.plan-now-name { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.plan-now-price { font-size: 13px; font-weight: 400; color: rgba(255,255,255,.6); letter-spacing: 0; white-space: nowrap; }
.plan-now .plan-current-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; font-size: 12.5px; }
.plan-now .plan-current-line .ic { font-size: 14px; color: rgba(255,255,255,.5); }
.plan-now .plan-current-line strong { color: #fff; }
.plan-now-sep { color: rgba(255,255,255,.3); }
.card.usage-card.kpi.plan-now-meter { gap: 8px; }
.plan-now-used { font-size: 22px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }

.card.plan-card { position: relative; gap: 8px; padding: 26px 20px 18px; overflow: hidden; }
.card.plan-card.is-current { border-color: rgba(0,255,212,.45); background: linear-gradient(180deg, rgba(0,255,212,.08), rgba(0,255,212,.02)), #0A1F25; box-shadow: 0 0 0 1px rgba(0,255,212,.15), 0 0 40px rgba(0,255,212,.08); }
.plan-ribbon { position: absolute; top: 0; right: 0; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 0 13px 0 10px; background: var(--brand); color: #081A1F; }
.plan-card-head { justify-content: flex-start; gap: 10px; }
.plan-card-head .card-title { font-size: 15px; }
.plan-card-price { font-size: 30px; letter-spacing: -.03em; margin-top: 2px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.plan-card-list { gap: 9px; }
.plan-card-list li { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.75); }
.plan-card-list li .ic { font-size: 14px; color: var(--brand); flex: none; }
.plan-card-list li span { flex: 1; min-width: 0; }
.plan-card-list li strong { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
.plan-card-list li[data-empty="true"] { color: rgba(255,255,255,.4); }
.plan-card-list li[data-empty="true"] .ic { color: rgba(255,255,255,.25); }
.plan-card-list li[data-empty="true"] strong { color: rgba(255,255,255,.4); }
.plan-card[data-state="selectable"]:hover { border-color: rgba(0,255,212,.45); box-shadow: 0 0 0 1px rgba(0,255,212,.12), 0 14px 40px rgba(0,255,212,.10); }
.plan-card .plan-card-action { height: 40px; border-radius: 9px; }
.plan-invoice > summary { align-items: center; gap: 10px; font-size: 13.5px; }
.plan-invoice > summary .kpi-ic { width: 30px; height: 30px; }
/* Três campos lado a lado, alinhados pelo TOPO (o de CPF tem uma dica embaixo
   e, alinhando pela base, empurrava os outros dois para baixo), e os botões
   numa linha própria — antes eram uma quarta coluna `auto`, espremida. */
@media (min-width: 900px) {
  .plan-invoice-body { max-width: none; grid-template-columns: 1.2fr 1fr 1fr; align-items: start; }
  .plan-invoice-body > .ui-hint, .plan-invoice-body > .plan-invoice-actions { grid-column: 1 / -1; }
  .plan-invoice-actions { margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .launch-tile, .launch-arrow, .uso-stack-bar > span { transition: none; animation: none; }
  .launch-tile:hover { transform: none; }
}


/* ═══════════ FLUXOS DE SITE: /sites/new, /sites/generate, /sites/[id], editor ═══════════ */

/* --- comum aos fluxos: link de volta em caixa alta e campo de endereço composto --- */
.flow-back { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-foreground); text-decoration: none; margin-bottom: 14px; transition: color .15s ease, transform .15s var(--ease); }
.flow-back:hover { color: var(--brand); transform: translateX(-2px); }
.flow-back .ic { font-size: 14px; }
.flow-page { max-width: 1100px; margin: 0 auto; }
.flow-page-wide { max-width: none; }

.addr-field { display: flex; align-items: stretch; height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); overflow: hidden; transition: border-color .18s ease, box-shadow .18s ease; }
.addr-field:focus-within { border-color: rgba(0,255,212,.45); box-shadow: 0 0 0 3px rgba(0,255,212,.08); }
.addr-field[data-state="ok"], .addr-field[data-state="update"] { border-color: rgba(0,255,212,.45); }
.addr-field[data-state="error"] { border-color: rgba(255,61,127,.55); box-shadow: 0 0 0 3px rgba(255,61,127,.1); }
.addr-field-pre { display: inline-flex; align-items: center; padding: 0 12px; color: rgba(255,255,255,.4); font-size: 13px; border-right: 1px solid rgba(255,255,255,.06); white-space: nowrap; }
.addr-field > .input { flex: 1; min-width: 0; height: auto; border: 0; border-radius: 0; background: transparent; font-size: 15px; font-weight: 600; box-shadow: none !important; }
.addr-field-state { display: inline-flex; align-items: center; padding: 0 10px; font-size: 16px; }
.addr-field-suf { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-left: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.03); color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.addr-field .select { display: flex; align-self: stretch; }
.addr-field .select-trigger { height: 100%; border: 0; border-left: 1px solid rgba(255,255,255,.06); border-radius: 0; background: rgba(255,255,255,.03); font-weight: 600; font-size: 13.5px; box-shadow: none !important; }
.addr-field .select-trigger:hover { background: rgba(0,255,212,.06); color: var(--brand); }
.addr-hint { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted-foreground); }
.addr-hint[data-tone="ok"] { color: rgba(0,255,212,.85); }
.addr-hint[data-tone="error"] { color: var(--destructive); }

/* --- /sites/new: passos numerados à esquerda, resumo fixo à direita --- */
.newsite-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .newsite-grid { grid-template-columns: 1fr; } .newsite-summary { position: static !important; } }
.newsite-steps { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.newsite-step { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; animation: fadeUp .5s ease both; }
.newsite-step:nth-child(2) { animation-delay: .06s; } .newsite-step:nth-child(3) { animation-delay: .12s; }
.newsite-step-head { display: flex; align-items: center; gap: 10px; }
.newsite-step-head .ds-kicker { margin: 0; color: rgba(255,255,255,.7); }
.newsite-num { width: 24px; height: 24px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: var(--brand-tint); color: var(--brand); box-shadow: inset 0 0 0 1px rgba(0,255,212,.3); }
.newsite-num[data-optional] { background: rgba(255,255,255,.06); color: rgba(255,255,255,.6); box-shadow: none; }
.newsite-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.newsite-mode { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border-radius: 11px; text-align: left; cursor: pointer; font-family: inherit; color: #fff; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s var(--ease); }
.newsite-mode:hover { border-color: rgba(0,255,212,.35); transform: translateY(-1px); }
.newsite-mode:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.newsite-mode .ic { font-size: 20px; color: rgba(255,255,255,.6); transition: color .18s ease, filter .18s ease; }
.newsite-mode[data-active="true"] { border-color: rgba(0,255,212,.5); background: rgba(0,255,212,.07); box-shadow: 0 0 20px rgba(0,255,212,.12), inset 0 0 0 1px rgba(0,255,212,.15); }
.newsite-mode[data-active="true"] .ic { color: var(--brand); filter: drop-shadow(0 0 6px rgba(0,255,212,.6)); }
.newsite-mode-label { font-size: 13.5px; font-weight: 600; }
.newsite-mode-desc { font-size: 11.5px; color: var(--muted-foreground); line-height: 1.4; }
@keyframes newsiteBreathe { 0%,100% { box-shadow: 0 0 0 0 rgba(0,255,212,0), inset 0 0 40px rgba(0,255,212,.04); } 50% { box-shadow: 0 0 30px rgba(0,255,212,.12), inset 0 0 60px rgba(0,255,212,.08); } }
.newsite-step .dropzone { border-color: rgba(0,255,212,.35); border-radius: 12px; padding: 26px 24px; background: rgba(0,255,212,.03); animation: newsiteBreathe 3s ease-in-out infinite; transition: border-color .2s ease, background .2s ease, transform .2s var(--ease); }
.newsite-step .dropzone:hover, .newsite-step .dropzone.over { border-color: var(--brand); background: rgba(0,255,212,.06); }
.newsite-step .dropzone.over { transform: scale(1.01); animation: none; box-shadow: 0 0 40px rgba(0,255,212,.2); }
.newsite-step .dz-ic { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 12px; box-shadow: 0 0 20px rgba(0,255,212,.25); }
.newsite-step .dz-ic .ic { font-size: 24px; }
.newsite-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(0,255,212,.2); background: rgba(0,255,212,.04); animation: fadeUp .35s ease both; }
.newsite-file-ic { width: 34px; height: 34px; border-radius: 9px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-tint); color: var(--brand); }
.newsite-file-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.newsite-file-name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.newsite-file-sub { font-size: 11.5px; color: var(--muted-foreground); }
.newsite-file-x { width: 28px; height: 28px; border-radius: 7px; border: 0; background: transparent; color: rgba(255,255,255,.4); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; transition: background .15s ease, color .15s ease; }
.newsite-file-x:hover { background: rgba(255,61,127,.12); color: var(--destructive); }
.newsite-files { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; font-size: 12px; line-height: 1.7; color: var(--muted-foreground); font-variant-numeric: tabular-nums; padding: 0 4px; }
.newsite-files > span:nth-child(odd) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.newsite-files [data-index] { color: #fff; }
.newsite-files [data-404] { color: var(--brand); }
.newsite-slots { display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.015); }
.newsite-slots-head { padding: 10px 14px; color: rgba(255,255,255,.5); border-bottom: 1px solid rgba(255,255,255,.06); }
.newsite-slot { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 12px 14px; }
.newsite-slot + .newsite-slot { border-top: 1px solid rgba(255,255,255,.06); }
.newsite-slot-ic { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.04); color: rgba(255,255,255,.55); transition: background .2s ease, color .2s ease; }
.newsite-slot[data-state="found"] .newsite-slot-ic { background: var(--brand-tint); color: var(--brand); }
.newsite-slot[data-state="warn"] .newsite-slot-ic { background: rgba(255,194,75,.1); color: var(--warning); }
.newsite-slot[data-state="missing"] .newsite-slot-ic, .newsite-slot[data-state="off"] .newsite-slot-ic { color: rgba(255,255,255,.35); }
.newsite-slot-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.newsite-slot-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); }
.newsite-slot-name .mono { color: #fff; }
.newsite-slot-desc { font-size: 11.5px; color: var(--muted-foreground); line-height: 1.5; }
.newsite-slot-link { padding: 0; border: 0; background: none; font: inherit; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.newsite-slot-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
.newsite-slot-link:disabled { opacity: .55; cursor: not-allowed; }
.newsite-slot-fix { grid-column: 2 / -1; font-size: 12px; line-height: 1.5; color: var(--warning); }
.newsite-slot-fix .mono { color: #fff; }
.newsite-slot .badge { white-space: nowrap; }
@media (max-width: 520px) { .newsite-slot { grid-template-columns: 34px minmax(0, 1fr); } .newsite-slot .badge { grid-column: 2; justify-self: start; } }
.newsite-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.newsite-switch-text { display: flex; flex-direction: column; gap: 2px; }
.newsite-switch-text .ui-label { font-size: 13.5px; }
.newsite-switch { position: relative; width: 42px; height: 24px; flex: none; cursor: pointer; }
.newsite-switch > input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.newsite-switch-track { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.12); transition: background .2s ease, box-shadow .2s ease; }
.newsite-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease), background .2s ease; }
.newsite-switch > input:checked + .newsite-switch-track { background: var(--brand); box-shadow: 0 0 14px rgba(0,255,212,.5); }
.newsite-switch > input:checked + .newsite-switch-track::after { transform: translateX(18px); background: #081A1F; }
.newsite-switch > input:focus-visible + .newsite-switch-track { outline: 2px solid var(--brand); outline-offset: 2px; }
.newsite-switch > input:disabled + .newsite-switch-track { opacity: .5; }
.newsite-pwd { display: flex; flex-direction: column; gap: 10px; max-width: 26rem; animation: fadeUp .3s ease both; }
.newsite-summary { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; animation: fadeUp .5s ease .18s both; }
.newsite-summary-card { padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; border-color: rgba(0,255,212,.2); background: linear-gradient(180deg, rgba(0,255,212,.06), rgba(0,255,212,.01)), #0A1F25; box-shadow: 0 0 40px rgba(0,255,212,.06); }
.newsite-summary-card .ds-kicker { margin: 0; color: var(--brand); }
.newsite-summary-card .separator { margin: 0; }
.newsite-kv { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.newsite-kv-label { font-size: 11px; color: rgba(255,255,255,.45); }
.newsite-kv-value { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.newsite-kv-value.is-addr { font-size: 15px; word-break: break-all; white-space: normal; }
.newsite-kv-value.is-addr > span { color: rgba(255,255,255,.6); font-weight: 500; }
.newsite-kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.newsite-proj { display: flex; flex-direction: column; gap: 8px; }
.newsite-proj-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted-foreground); }
.newsite-proj-row strong { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.newsite-meter { display: flex; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.newsite-meter-used { background: linear-gradient(90deg, #31A592, #00FFD4); transition: width .6s var(--ease); }
.newsite-meter-new { background: repeating-linear-gradient(135deg, rgba(0,255,212,.55) 0 4px, rgba(0,255,212,.2) 4px 8px); transition: width .6s var(--ease); }
.newsite-meter[data-over="true"] .newsite-meter-new { background: repeating-linear-gradient(135deg, rgba(255,61,127,.7) 0 4px, rgba(255,61,127,.3) 4px 8px); }
.newsite-proj-warn { font-size: 11.5px; color: var(--warning); display: flex; align-items: center; gap: 5px; }
.newsite-proj-warn[data-tone="danger"] { color: var(--destructive); }
.newsite-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.newsite-actions .btn { height: 42px; border-radius: 9px; }
.newsite-note { font-size: 11.5px; color: rgba(255,255,255,.45); line-height: 1.5; text-align: center; }
.newsite-progress { display: flex; flex-direction: column; gap: 6px; animation: fadeUp .3s ease both; }

/* --- pré-visualização em "janela de navegador" (rascunho salvo e IA) --- */
.browser { border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: #0A1F25; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.browser-bar { height: 40px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: rgba(255,255,255,.03); border-bottom: 1px solid rgba(255,255,255,.06); }
.browser-dots { display: flex; gap: 6px; }
.browser-dots > span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.15); }
.browser-url { flex: 1; min-width: 0; height: 24px; border-radius: 6px; background: rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11.5px; color: rgba(255,255,255,.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 10px; }
.browser-url .ic { font-size: 11px; flex: none; }
.browser-body { flex: 1; min-height: 0; background: #061519; display: flex; justify-content: center; position: relative; }
.browser-body > iframe { display: block; width: 100%; border: 0; background: #fff; }

/* --- /sites/generate: composer à esquerda, janela de preview à direita --- */
.gen-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.gen-head .dash-head { margin: 0; }
.gen-grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 960px) { .gen-grid { grid-template-columns: 1fr; } }
.gen-composer { padding: 16px; display: flex; flex-direction: column; gap: 12px; animation: fadeUp .5s ease .05s both; }
.gen-composer .ds-kicker { margin: 0; color: rgba(255,255,255,.7); }
.gen-composer-head { display: flex; align-items: center; justify-content: space-between; }
.gen-counter { font-size: 11px; color: rgba(255,255,255,.4); font-variant-numeric: tabular-nums; }
.gen-composer .textarea { flex: 1; min-height: 180px; resize: none; border-radius: 10px; padding: 12px 14px; }
.gen-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gen-chip { font-family: inherit; font-size: 11.5px; font-weight: 500; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); color: rgba(255,255,255,.7); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: border-color .15s ease, color .15s ease, background .15s ease, transform .15s var(--ease); }
.gen-chip .ic { font-size: 12px; }
.gen-chip:hover:not(:disabled) { border-color: rgba(0,255,212,.4); color: var(--brand); background: rgba(0,255,212,.05); transform: translateY(-1px); }
.gen-chip:disabled { opacity: .5; cursor: not-allowed; }
.gen-composer .separator { margin: 0; }
.gen-models { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gen-model { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 10px; text-align: left; cursor: pointer; font-family: inherit; color: #fff; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.gen-model:hover:not(:disabled) { border-color: rgba(0,255,212,.35); }
.gen-model:disabled { opacity: .55; cursor: not-allowed; }
.gen-model[data-active="true"] { border-color: rgba(0,255,212,.5); background: rgba(0,255,212,.07); box-shadow: inset 0 0 0 1px rgba(0,255,212,.15); }
.gen-model-top { display: flex; align-items: center; justify-content: space-between; }
.gen-model-top .ic { font-size: 18px; color: rgba(255,255,255,.6); }
.gen-model[data-active="true"] .gen-model-top .ic { color: var(--brand); }
.gen-model-tag { font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 2px 6px; border-radius: 999px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.55); }
.gen-model-tag[data-pro] { background: rgba(95,55,255,.18); color: #B7A6FF; }
.gen-model-label { font-size: 13.5px; font-weight: 600; }
.gen-model-sub { font-size: 11.5px; color: var(--muted-foreground); }
.gen-composer .btn-brand { height: 44px; border-radius: 10px; margin-top: 4px; }
.gen-preview { display: flex; flex-direction: column; gap: 12px; min-height: 0; animation: fadeUp .5s ease .1s both; }
.gen-preview .browser { flex: 1; min-height: 560px; }
.gen-preview .browser-body > iframe { min-height: 520px; height: 100%; }
@keyframes genOrbit { to { transform: rotate(360deg); } }
.gen-idle { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: rgba(255,255,255,.45); text-align: center; padding: 40px; }
.gen-idle-orb { position: relative; width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; }
.gen-idle-orb::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(0,255,212,.35); animation: genOrbit 14s linear infinite; }
.gen-idle-orb .ic { font-size: 28px; color: var(--brand); filter: drop-shadow(0 0 12px rgba(0,255,212,.6)); }
.gen-idle-title { font-size: 15px; font-weight: 600; color: #fff; }
.gen-idle-sub { font-size: 13px; max-width: 34ch; line-height: 1.55; }
.gen-loading { flex: 1; position: relative; background: #f7fafa; overflow: hidden; }
.gen-loading-inner { padding: 28px 32px; display: flex; flex-direction: column; gap: 18px; }
.gen-sk { display: block; border-radius: 4px; background: #e3eaea; }
.gen-sk[data-shimmer] { background: linear-gradient(90deg, #dfe7e7 0%, #f4f8f8 50%, #dfe7e7 100%); background-size: 800px 100%; animation: shimmer 1.4s linear infinite; }
.gen-sk-row { display: flex; justify-content: space-between; align-items: center; }
.gen-sk-nav { display: flex; gap: 10px; }
.gen-sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.gen-sk-grid .gen-sk { height: 120px; border-radius: 10px; background: #e9efef; }
.gen-status { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; display: flex; align-items: center; gap: 10px; background: rgba(8,26,31,.85); color: #fff; font-size: 12.5px; backdrop-filter: blur(6px); }
.gen-status .ic { color: var(--brand); animation: spin 1s linear infinite; }
.gen-publish { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; transition: opacity .3s ease, filter .3s ease; }
.gen-publish[data-ready="false"] { opacity: .35; pointer-events: none; filter: grayscale(.4); }
.gen-publish .addr-field { flex: 1; min-width: 240px; height: 42px; }
.gen-publish .btn { height: 42px; border-radius: 9px; }
.gen-foot { display: flex; flex-direction: column; gap: 6px; }

/* --- /sites/[id]: identidade + stats + duas colunas --- */
.sited-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
/* `flex-basis` de 380px: quando não cabe título + botões na mesma linha, os
   botões descem inteiros — em vez de espremer o título até "asdas…". */
.sited-id { display: flex; gap: 16px; align-items: center; min-width: 0; flex: 1 1 380px; }
.sited-tile { width: 56px; height: 56px; border-radius: 14px; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #fff; text-transform: uppercase; background: linear-gradient(135deg, hsl(170 45% 28%), hsl(170 40% 18%)); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 24px rgba(0,255,212,.15); }
.sited-id-text { min-width: 0; flex: 1; }
.sited-title-row { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.sited-title-row h1 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.sited-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 13.5px; color: rgba(255,255,255,.6); flex-wrap: wrap; }
.sited-meta a { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 500; text-decoration: none; transition: color .15s ease; }
.sited-meta a:hover { color: var(--brand); }
.sited-meta a .ic { font-size: 13px; color: rgba(255,255,255,.4); }
.sited-meta .sep { color: rgba(255,255,255,.3); }
.sited-actions { display: flex; gap: 8px; flex: none; flex-wrap: wrap; }
.sited-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (max-width: 1100px) { .sited-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Cinco stats em duas colunas deixam um órfão: o último ocupa a linha toda. */
@media (max-width: 640px) {
  .sited-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sited-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.sited-stat { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; animation: fadeUp .5s ease both; }
.sited-stat:nth-child(2) { animation-delay: .04s } .sited-stat:nth-child(3) { animation-delay: .08s } .sited-stat:nth-child(4) { animation-delay: .12s } .sited-stat:nth-child(5) { animation-delay: .16s }
.sited-stat .ds-kicker { margin: 0; color: rgba(255,255,255,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sited-stat-value { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.sited-stat-value > strong { font-size: 24px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sited-stat-sub { font-size: 11.5px; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Duas pilhas independentes (alturas diferentes não podem compartilhar linha
   de grid — sobraria buraco). O espaçamento é o `gap` da pilha, não margem nos
   cards: assim o mesmo valor vale no desktop e no mobile. */
.sited-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) 360px; gap: 16px; align-items: start; }
.sited-col { min-width: 0; display: grid; gap: 16px; align-content: start; }
.sited-col > * { min-width: 0; }
/* Uma coluna: as pilhas viram `contents` e os cards passam a ser filhos do grid
   de fora, para a ORDEM de leitura ser a certa (endereços antes do acesso, que
   é longo) e não a ordem das colunas do desktop. */
@media (max-width: 1000px) {
  .sited-cols { grid-template-columns: 1fr; }
  .sited-col { display: contents; }
  .sited-card-versions { order: 1; }
  .sited-card-visits { order: 2; }
  .sited-card-slug { order: 3; }
  .sited-card-zones { order: 4; }
  .sited-card-schedule { order: 5; }
  .sited-card-access { order: 6; }
  .sited-danger { order: 7; }
}
/* Visitas (ID02): barras em CSS, uma por dia; a largura divide o espaço, por
   isso o gap é pequeno e o max-width do .bar do DS (46px) é liberado. */
.sited-visits-body { display: flex; flex-direction: column; gap: 20px; }
.sited-visits-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.sited-visits-kpis > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sited-visits-kpis .kpi-delta.cell-muted { color: var(--muted-foreground); }
.sited-visits-label { margin: 0; font-size: 11px; }
.sited-visits-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--brand); display: inline-block; }
.sited-visits-bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 6px; border-bottom: 1px solid var(--border); }
.sited-visits-bars .bar { flex: 1; width: auto; max-width: none; min-width: 0; border-radius: 3px 3px 0 0; }
.sited-visits-bars .bar[data-today] { opacity: .6; }
.sited-visits-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted-foreground); margin-top: 6px; font-variant-numeric: tabular-nums; }
.sited-visits-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.sited-visits-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 6px 12px; align-items: center; font-size: 13px; }
.sited-visits-row .progress { grid-column: 1 / -1; height: 6px; }
.sited-visits-row .progress-bar.muted { background: var(--secondary); box-shadow: none; }
.sited-visits-row strong { font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; }
.sited-visits-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sited-versions-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px 10px; flex-wrap: wrap; }
.sited-versions-head .ds-kicker { margin: 0; }
.sited-versions-head small { font-size: 12px; color: rgba(255,255,255,.45); }
/* Linha: trilho · número · origem+estado / tamanho · quando · ação. Colunas
   fixas para "quando" e "ação", senão a coluna de data dançava conforme o
   texto de cada linha. */
.sited-version { display: grid; grid-template-columns: 24px 44px minmax(0, 1fr) 132px 136px; gap: 12px; align-items: center; padding: 12px 22px; border-top: 1px solid rgba(255,255,255,.05); transition: background .15s ease; }
.sited-version:hover { background: rgba(0,255,212,.035); }
.sited-version[data-live] { background: rgba(0,255,212,.025); }
.sited-vsource { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sited-vtitle .badge { flex: none; }
.sited-vwhen { font-size: 12px; color: rgba(255,255,255,.45); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
/* Estreito: data desce para baixo do texto; a ação continua à direita. */
@media (max-width: 640px) {
  .sited-version { grid-template-columns: 20px 36px minmax(0, 1fr) auto; grid-template-areas: "rail num text act" "rail num when act"; row-gap: 2px; padding: 12px 16px; }
  .sited-vrail { grid-area: rail; } .sited-vnum { grid-area: num; } .sited-vtext { grid-area: text; }
  .sited-vwhen { grid-area: when; text-align: left; } .sited-vact { grid-area: act; }
  .sited-versions-head, .sited-version-drafts { padding-left: 16px; padding-right: 16px; }
}
.sited-vrail { display: flex; flex-direction: column; align-items: center; align-self: stretch; }
.sited-vdot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 4px; background: rgba(255,255,255,.3); }
.sited-vdot[data-tone="live"] { background: var(--brand); box-shadow: 0 0 10px var(--brand); animation: pulseDot 1.8s ease-out infinite; }
.sited-vdot[data-tone="draft"] { background: var(--warning); box-shadow: 0 0 8px rgba(255,194,75,.6); }
.sited-vrail::after { content: ""; flex: 1; width: 1px; margin-top: 4px; background: rgba(255,255,255,.1); }
.sited-version:last-child .sited-vrail::after { background: transparent; }
.sited-vnum { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sited-vtext { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sited-vtitle { font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.sited-vmeta { font-size: 11.5px; color: rgba(255,255,255,.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sited-vact { justify-self: end; }
.sited-version-drafts { padding: 4px 22px 16px; border-top: 1px solid rgba(255,255,255,.05); }
/* `min-width: 0`: a linha é item de grid, e o host em `nowrap` fazia o item
   crescer além do card em vez de cortar com reticências. */
.sited-addr { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 10px; border-radius: 9px; border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.02); transition: border-color .15s ease, background .15s ease; }
.sited-addr:hover { border-color: rgba(0,255,212,.3); }
.sited-addr-ic { width: 28px; height: 28px; border-radius: 7px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); color: rgba(255,255,255,.4); transition: background .15s ease, color .15s ease; }
.sited-addr[data-active="true"] .sited-addr-ic { background: var(--brand-tint); color: var(--brand); }
.sited-addr-ic .ic { font-size: 14px; }
.sited-addr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sited-addr-host { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sited-addr-sub { font-size: 11px; color: rgba(255,255,255,.45); }
.sited-addr > .badge, .sited-addr > .btn { flex: none; }
.sited-danger { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-color: rgba(255,61,127,.25); background: rgba(255,61,127,.03); }
.sited-danger .ds-kicker { margin: 0 0 2px; color: var(--destructive); }
.sited-danger p { margin: 0; font-size: 12px; color: var(--muted-foreground); }
.sited-danger .btn-destructive { background: transparent; color: var(--destructive); border-color: rgba(255,61,127,.4); box-shadow: none; }
.sited-danger .btn-destructive:hover { background: rgba(255,61,127,.12); transform: none; box-shadow: none; }

/* --- editor: barra única, canvas escuro pontilhado, moldura do dispositivo --- */
.editor-shell { display: flex; flex-direction: column; height: calc(100vh - 120px); min-height: 520px; }
.editor-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 12px; background: #081A1F; margin-bottom: 10px; flex-wrap: wrap; animation: fadeUp .4s ease both; }
.editor-bar-group { display: flex; align-items: center; gap: 10px; min-width: 0; }
.editor-bar-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.editor-sep { width: 1px; height: 22px; background: rgba(255,255,255,.08); flex: none; }
.editor-bar .seg { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 8px; padding: 3px; }
.editor-bar .seg-btn { font-size: 11px; letter-spacing: .06em; padding: 5px 10px; border-radius: 6px; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.editor-bar .seg-btn[data-active=""], .editor-bar .seg-btn[data-active="true"] { background: rgba(0,255,212,.12); color: var(--brand); box-shadow: inset 0 0 0 1px rgba(0,255,212,.25); }
.editor-vp { font-size: 11px; color: rgba(255,255,255,.4); font-variant-numeric: tabular-nums; min-width: 48px; }
.editor-style-btn[aria-pressed="true"] { border-color: rgba(0,255,212,.35); color: var(--brand); background: rgba(0,255,212,.08); box-shadow: 0 0 14px rgba(0,255,212,.2); }
.editor-hint { margin: 0 0 10px; font-size: 12.5px; color: var(--muted-foreground); }
.editor-hint .ic { margin-right: 6px; color: var(--brand); }
.editor-stage { flex: 1; min-height: 0; display: flex; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #061519; }
.editor-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.editor-canvas { flex: 1; min-height: 0; overflow: auto; display: flex; justify-content: center; align-items: flex-start; padding: 24px; background-color: #061519; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 22px 22px; }
.editor-canvas[data-viewport="desktop"] { padding: 0; align-items: stretch; }
.editor-frame { flex: none; max-width: 100%; background: #fff; overflow: hidden; transition: width .3s var(--ease), height .3s var(--ease), border-radius .3s var(--ease); }
.editor-canvas[data-viewport="desktop"] .editor-frame { width: 100%; height: 100%; border-radius: 0; }
.editor-canvas:not([data-viewport="desktop"]) .editor-frame { border: 7px solid #0E272E; border-radius: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(0,255,212,.08); }
@keyframes editorPanelIn { from { width: 0; opacity: 0; } }
.editor-panel { width: 300px; flex: none; border-left: 1px solid var(--border); background: #081A1F; display: flex; flex-direction: column; overflow: hidden; animation: editorPanelIn .26s var(--ease) both; }
.editor-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.editor-panel-head .ds-kicker { margin: 0; color: var(--brand); }
.editor-panel-body { flex: 1; overflow: auto; padding: 14px; }
.editor-panel-foot { padding: 10px 14px; border-top: 1px solid var(--border); font-size: 11px; color: rgba(255,255,255,.45); margin: 0; }
.editor-panel-empty { align-items: center; justify-content: center; text-align: center; padding: 24px; }
.editor-panel-empty .ic { display: block; font-size: 22px; margin: 0 auto 8px; color: var(--brand); filter: drop-shadow(0 0 8px rgba(0,255,212,.5)); }
.editor-inp { height: 30px; width: 70px; padding: 0 8px; border-radius: 7px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.editor-inp:focus { border-color: rgba(0,255,212,.45); box-shadow: 0 0 0 3px rgba(0,255,212,.1); }
.editor-code { padding: 16px; height: 100%; min-height: 0; flex: 1; }

@media (prefers-reduced-motion: reduce) {
  .newsite-step, .newsite-summary, .newsite-file, .newsite-pwd, .newsite-progress, .gen-composer, .gen-preview, .sited-stat, .editor-bar, .editor-panel, .gen-idle-orb::before, .gen-sk[data-shimmer], .gen-status .ic, .sited-vdot { animation: none !important; }
  .newsite-step .dropzone { animation: none; }
}


/* ═══════════ CONTA E ADMIN: /projetos/novo, /permissoes, /profile, /admin/*, auth ═══════════ */

/* --- Compartilhado nesta área: interruptor, avatar, nome-com-ícone --- */

/* Interruptor: é o <input type=checkbox> nativo desenhado como switch. Envio,
   teclado, foco e leitor de tela continuam sendo os do navegador. */
.adm-switch { appearance: none; -webkit-appearance: none; flex: none; width: 38px; height: 22px; margin: 0; border-radius: 999px; border: 0; background: rgba(255,255,255,.12); position: relative; cursor: pointer; transition: background .2s ease, box-shadow .2s ease; }
.adm-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease), background .2s ease; }
.adm-switch:checked { background: var(--brand); box-shadow: 0 0 12px rgba(0,255,212,.45); }
.adm-switch:checked::after { transform: translateX(16px); background: #081A1F; }
.adm-switch:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.adm-switch:disabled { opacity: .45; cursor: not-allowed; }

.perm-avatar { width: 30px; height: 30px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #1F4A55, #122E35); border: 1px solid rgba(255,255,255,.1); }
.perm-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.perm-person-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.perm-person-text .ui-hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Campo de nome com ícone à esquerda e contador à direita (mockups 07/10/14). */
.perm-name { position: relative; display: flex; align-items: center; }
.perm-name > .ic { position: absolute; left: 14px; font-size: 16px; color: var(--brand); pointer-events: none; }
.perm-name > .input { height: 46px; padding-left: 40px; padding-right: 58px; font-size: 15px; font-weight: 600; border-radius: 10px; }
.perm-name > .perm-count, .proj-count { position: absolute; right: 14px; font-size: 11px; color: rgba(255,255,255,.35); font-variant-numeric: tabular-nums; pointer-events: none; }

/* Cabeçalho de grupo com ícone em tile ciano. */
.perm-group-ic { width: 26px; height: 26px; border-radius: 7px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-tint); color: var(--brand); }
.perm-group-ic .ic { font-size: 14px; }

/* Voltar em caixa alta dentro do kicker. */
.adm-back { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; transition: color .15s ease; }
.adm-back:hover { color: var(--brand); }
.adm-back .ic { font-size: 14px; }

/* --- /projetos/novo (mockup 07) --- */
.proj-shell { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; max-width: 760px; margin: 0 auto; }
@media (min-width: 900px) { .proj-shell { grid-template-columns: minmax(0, 1fr) 260px; } }
.proj-main { display: flex; flex-direction: column; gap: 18px; }
.proj-form { display: grid; gap: 16px; }
.proj-name { position: relative; display: flex; align-items: center; }
.proj-name > .ws-tile { position: absolute; left: 10px; width: 26px; height: 26px; border-radius: 7px; font-size: 11px; box-shadow: none; transition: box-shadow .2s ease, transform .2s ease; }
.proj-name[data-filled="true"] > .ws-tile { box-shadow: 0 0 14px rgba(0,255,212,.35); }
.proj-name > .input { height: 46px; padding-left: 46px; padding-right: 64px; font-size: 15px; font-weight: 500; border-radius: 10px; }
.proj-name[data-filled="true"] > .input:not(:focus) { border-color: rgba(0,255,212,.45); box-shadow: 0 0 0 3px rgba(0,255,212,.08); }
.proj-preview { display: flex; flex-direction: column; gap: 8px; }
.proj-preview .ds-kicker { margin: 0; color: rgba(255,255,255,.45); }
.dapp-ws.proj-preview-ws { margin: 0; padding: 8px 10px; border-color: rgba(0,255,212,.35); background: rgba(0,255,212,.05); box-shadow: 0 0 20px rgba(0,255,212,.12); cursor: default; }
.proj-preview-ws .ws-text { flex: 1; }
.proj-preview-ws .ws-name { font-size: 13px; font-weight: 600; }
.proj-quota { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,.02); }
.proj-quota-text { font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.proj-quota-text:first-child { color: rgba(255,255,255,.6); }
.proj-quota-bar { flex: 1; display: flex; gap: 2px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.proj-quota-bar > span { flex: 1; }
.proj-quota-bar > span[data-state="used"] { background: var(--brand); box-shadow: 0 0 8px rgba(0,255,212,.5); }
.proj-quota-bar > span[data-state="next"] { background: rgba(0,255,212,.35); border: 1px dashed rgba(0,255,212,.6); box-sizing: border-box; animation: pulseDot 1.8s ease-out infinite; }
.proj-side { display: flex; flex-direction: column; gap: 12px; }
.proj-side .ds-kicker { margin: 0; color: rgba(255,255,255,.45); }
.card.proj-next { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: rgba(255,255,255,.02); }
.proj-next > span { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: rgba(255,255,255,.7); }
.proj-next .ic { color: var(--brand); font-size: 15px; }

/* --- /permissoes (mockup 10) --- */
.perm-matrix { min-width: 760px; }
.perm-matrix-th { text-align: center !important; font-size: 9.5px !important; letter-spacing: .1em !important; line-height: 1.3; white-space: normal !important; max-width: 84px; padding-left: 8px !important; padding-right: 8px !important; }
.perm-matrix-td { text-align: center; padding-left: 8px !important; padding-right: 8px !important; }
.perm-set { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.perm-set-ic { width: 28px; height: 28px; border-radius: 7px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: rgba(0,255,212,.12); color: var(--brand); }
.perm-set-ic .ic { font-size: 14px; }
.perm-cell { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.03); color: rgba(255,255,255,.2); transition: transform .15s ease; }
.perm-cell .ic { font-size: 12px; }
.perm-cell[data-on="true"] { background: rgba(0,255,212,.14); color: var(--brand); box-shadow: inset 0 0 0 1px rgba(0,255,212,.3); }
.table tbody tr:hover .perm-cell[data-on="true"] { transform: scale(1.1); }

/* Formulário: campos à esquerda, resumo grudado à direita. */
.perm-form, .adm-form { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
@media (min-width: 960px) { .perm-form, .adm-form { grid-template-columns: minmax(0, 1fr) 320px; } }
.perm-form-main, .adm-form-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.perm-form .ui-label.m-label, .adm-form .ui-label.m-label { color: rgba(255,255,255,.7); }
.card.perm-group { overflow: hidden; }
.perm-group-head { display: flex; align-items: center; gap: 10px; padding: 12px 22px; border-bottom: 1px solid rgba(255,255,255,.05); }
.perm-group-title { flex: 1; font-size: 12.5px; font-weight: 600; }
.perm-group-all { font-family: inherit; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); background: transparent; border: 0; cursor: pointer; padding: 4px 0; transition: color .15s ease; }
.perm-group-all:hover { color: var(--brand); }
.perm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 22px; border-top: 1px solid rgba(255,255,255,.04); cursor: pointer; transition: background .15s ease; }
.perm-row:hover { background: rgba(255,255,255,.03); }
.perm-row[data-on="true"] { background: rgba(0,255,212,.03); }
.perm-row-label { font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.7); transition: color .15s ease; }
.perm-row[data-on="true"] .perm-row-label { color: #fff; }
.perm-summary { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.card.perm-summary-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; border-color: rgba(0,255,212,.2); background: linear-gradient(180deg, rgba(0,255,212,.06), rgba(0,255,212,.01)), #0A1F25; }
.perm-summary-kicker { color: var(--brand); margin: 0; }
.perm-summary-n { display: flex; align-items: baseline; gap: 8px; }
.perm-summary-n .kpi-val { line-height: 1; margin: 0; }
.perm-summary-n .cell-muted { font-size: 12.5px; }
.perm-dots { display: flex; gap: 3px; }
.perm-dots > span { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); transition: background .2s ease, box-shadow .2s ease; }
.perm-dots > span[data-on="true"] { background: var(--brand); box-shadow: 0 0 8px rgba(0,255,212,.5); }
.perm-summary-text { margin: 0; font-size: 12px; color: rgba(255,255,255,.55); line-height: 1.55; }
.perm-summary-text strong { color: #fff; }
.perm-warn { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 9px; background: rgba(255,194,75,.08); color: var(--warning); border: 1px solid rgba(255,194,75,.25); font-size: 12px; line-height: 1.5; animation: fadeUp .3s ease both; }
.perm-warn .ic { font-size: 13px; margin-top: 1px; }

/* --- /profile (mockup 13) --- */
.card.prof-hero { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; padding: 22px 24px; border-color: rgba(0,255,212,.2); background: linear-gradient(120deg, rgba(0,255,212,.08), rgba(0,255,212,.01) 60%), #0A1F25; box-shadow: 0 0 40px rgba(0,255,212,.06); flex-wrap: wrap; }
.prof-hero-avatar { width: 72px; height: 72px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: #081A1F; background: linear-gradient(135deg, #00FFD4, #31A592); box-shadow: 0 0 30px rgba(0,255,212,.35); }
.prof-hero .prof-identity-text { flex: 1 1 260px; }
.prof-hero-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prof-hero-title .card-title { font-size: 24px; letter-spacing: -.02em; }
.prof-hero .badge-brand { height: 22px; font-size: 10px; font-weight: 700; }
.prof-verified { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--brand); }
.prof-verified .ic { font-size: 12px; }
.prof-hero .card-desc { margin-top: 4px; white-space: normal; }
.prof-stats { display: flex; gap: 22px; margin-left: auto; }
.prof-stat { display: flex; flex-direction: column; align-items: flex-end; }
.prof-stat-v { font-size: 22px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.prof-stat-l { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-top: 4px; }

.prof-shell { max-width: none; display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 900px) { .prof-shell { grid-template-columns: 200px minmax(0, 1fr); } }
.prof-nav { display: flex; gap: 2px; position: sticky; top: 16px; flex-wrap: wrap; }
@media (min-width: 900px) { .prof-nav { flex-direction: column; } }
.prof-nav a { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.62); text-decoration: none; white-space: nowrap; transition: background .18s ease, color .18s ease; }
.prof-nav a .ic { font-size: 15px; }
.prof-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.prof-nav a[data-danger] { color: rgba(255,61,127,.8); }
.prof-nav a[data-danger]:hover { background: rgba(255,61,127,.08); color: var(--destructive); }
.prof-content { display: grid; gap: 14px; min-width: 0; }
.prof-content > .card { scroll-margin-top: 80px; }
.prof-content .ds-kicker { color: rgba(255,255,255,.7); margin: 0; }
/* O DS desenha `.prof-row` como linha de tabela (label à esquerda, valor à
   direita, régua embaixo). Aqui as duas linhas ficam LADO A LADO, então cada
   uma vira um campo: rótulo em cima, valor embaixo, alinhado à esquerda — sem a
   régua, que cortava só a coluna do nome. */
.prof-list { display: grid; gap: 18px 28px; margin: 0; padding: 0; }
@media (min-width: 720px) { .prof-list { grid-template-columns: 1fr 1fr; } }
.prof-row { display: block; padding: 0; border: 0; }
.prof-row dt { color: rgba(255,255,255,.55); }
.prof-row dd { margin: 8px 0 0; text-align: left; }
.prof-row .ui-hint { margin-top: 6px; }

.prof-pwd { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
@media (min-width: 720px) { .prof-pwd { grid-template-columns: 1fr 1fr; } }
.prof-pwd-fields { display: grid; gap: 12px; }
.prof-pwd-wide { grid-column: 1 / -1; }
.prof-pwd-side { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,.02); display: flex; flex-direction: column; gap: 10px; }
.prof-pwd-side-head { display: flex; align-items: center; justify-content: space-between; }
.prof-pwd-side-head .ds-kicker { color: rgba(255,255,255,.5); }
.prof-pwd-strength { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.3); transition: color .25s ease; }
.prof-pwd-bars { display: flex; gap: 4px; }
.prof-pwd-bars > span { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); transition: background .25s ease, box-shadow .25s ease; }
/* Cor por nível: 1–2 rosa, 3 âmbar, 4 ciano claro, 5 ciano. */
.prof-pwd-strength[data-level="1"], .prof-pwd-strength[data-level="2"] { color: var(--destructive); }
.prof-pwd-strength[data-level="3"] { color: var(--warning); }
.prof-pwd-strength[data-level="4"] { color: #7DFFE8; }
.prof-pwd-strength[data-level="5"] { color: var(--brand); }
.prof-pwd-bars[data-level="1"] > span:nth-child(-n+1), .prof-pwd-bars[data-level="2"] > span:nth-child(-n+2) { background: var(--destructive); box-shadow: 0 0 8px rgba(255,61,127,.5); }
.prof-pwd-bars[data-level="3"] > span:nth-child(-n+3) { background: var(--warning); box-shadow: 0 0 8px rgba(255,194,75,.5); }
.prof-pwd-bars[data-level="4"] > span:nth-child(-n+4) { background: #7DFFE8; box-shadow: 0 0 8px rgba(125,255,232,.5); }
.prof-pwd-bars[data-level="5"] > span { background: var(--brand); box-shadow: 0 0 8px rgba(0,255,212,.6); }
/* Item da checklist acende com um pulo curto ao ficar OK. */
@keyframes checkIn { from { transform: scale(.7); opacity: .4; } to { transform: none; opacity: 1; } }
[data-pwd-rule][data-state="ok"] > span { animation: checkIn .25s var(--ease) both; }

/* --- Breadcrumb do shell (projeto → seção → subseção) --- */
.dapp-breadcrumb { font-size: 13px; white-space: nowrap; }
.dapp-breadcrumb .sep .ic { font-size: 13px; }
/* Some junto com a sidebar (drawer abaixo de 821px, app-shell.css): ali a
   busca (⌘K) e o hambúrguer já disputam a linha, e o caminho completo cabe
   pior que qualquer um dos dois. */
@media (max-width: 820px) { .dapp-breadcrumb { display: none; } }

/* --- Back-office: /admin/* (mockups 14/15) --- */
.adm-kicker { display: flex; align-items: center; gap: 6px; color: #B7A6FF; }
.adm-kicker .ic { font-size: 12px; filter: drop-shadow(0 0 6px rgba(183,166,255,.6)); }
.adm-violet { color: #B7A6FF !important; }
.adm-amber { color: var(--warning); }
.adm-violet-bg { background: rgba(183,166,255,.12) !important; color: #B7A6FF !important; }
.adm-badge-violet { background: rgba(183,166,255,.12); color: #B7A6FF; border-color: rgba(183,166,255,.3); }
.card.adm-summary { border-color: rgba(183,166,255,.25); background: linear-gradient(180deg, rgba(95,55,255,.08), rgba(95,55,255,.01)), #0A1F25; }
.adm-row-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.adm-row-ic { width: 32px; height: 32px; border-radius: 8px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: rgba(183,166,255,.14); color: #B7A6FF; }
.adm-row-ic .ic { font-size: 15px; }
.adm-row-ic[data-admin="true"] { background: rgba(255,194,75,.14); color: var(--warning); }
/* Barra de tempo decorrido da concessão manual: `.usage-meter` do DS, só com
   largura fixa — o padrão do mesmo componente em `.dom-quota-meter`. */
.grant-meter { width: 100px; display: block; margin: 0; flex: none; }
.adm-row-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.adm-row-id strong { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.adm-tag-admin { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; background: rgba(255,194,75,.12); color: var(--warning); }
.adm-tag-admin .ic { font-size: 10px; }
.adm-action-key { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: rgba(255,255,255,.4); }
.adm-action-text { display: flex; flex-direction: column; gap: 1px; text-align: left; font-size: 13px; }
.adm-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; margin-top: 16px; }
@media (min-width: 960px) { .adm-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Acesso total: fica âmbar quando ligado e apaga a matriz abaixo. */
.card.adm-admin-row { transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.card.adm-admin-row[data-on="true"] { border-color: rgba(255,194,75,.5); background: rgba(255,194,75,.06); box-shadow: 0 0 24px rgba(255,194,75,.12); }
.adm-admin-row .checkbox[data-checked="true"] { background: var(--warning); border-color: var(--warning); box-shadow: 0 0 10px rgba(255,194,75,.5); }
.adm-matrix { display: grid; gap: 12px; transition: opacity .25s ease, filter .25s ease; }
.adm-matrix[data-locked="true"] { opacity: .4; filter: grayscale(.5); pointer-events: none; }
.adm-form .checkbox[data-checked="true"] { box-shadow: 0 0 10px rgba(0,255,212,.4); }
.adm-form .checkbox { transition: background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.adm-form .form-sticky-actions { background: transparent; border-top: 0; padding: 0; margin-top: 4px; position: static; }

/* KPIs do catálogo */
.adm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.card.adm-kpi { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.adm-kpi .ds-kicker { margin: 0; color: rgba(255,255,255,.5); }
.adm-kpi-v { font-size: 24px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.adm-kpi .cell-muted { font-size: 11.5px; }
.adm-accounts { display: flex; flex-direction: column; gap: 4px; min-width: 72px; font-variant-numeric: tabular-nums; }
.adm-accounts-bar { display: block; height: 4px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.adm-accounts-bar > span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #31A592, #00FFD4); transform-origin: left; animation: meterIn .9s var(--ease) both; }
.table .badge .ic { font-size: 11px; }

/* Formulário de plano: seções viram cards com ícone; edição em duas colunas. */
.plan-form { max-width: none; }
.plan-form > form.card, .plan-form form.card { background: transparent; border: 0; padding: 0; box-shadow: none; }
.plan-sec { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--border); background: var(--card-gradient); }
.plan-sec + .plan-sec { margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--border); }
.plan-sec-head { display: flex; align-items: center; gap: 10px; }
.plan-sec-title { font-size: 13.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.plan-sec-desc { font-size: 11.5px; }
.plan-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 10px; transition: border-color .18s ease, background .18s ease; }
.plan-toggle:hover { border-color: rgba(0,255,212,.35); background: rgba(0,255,212,.03); }
.plan-toggle > .adm-switch { margin: 0; }
.plan-toggle-text { flex: 1; }
.adm-plan-edit { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 1040px) { .adm-plan-edit { grid-template-columns: minmax(0, 1fr) 336px; } }
.adm-plan-side { position: sticky; top: 16px; }

/* --- Auth (sem mockup: consistência com o v2) --- */
.auth-screen > * { animation: fadeUp .5s ease both; }
.auth-screen > :nth-child(2) { animation-delay: .08s; }
.auth-screen > :nth-child(3) { animation-delay: .16s; }
.auth-screen > :nth-child(n+4) { animation-delay: .22s; }
.auth-form .btn-primary { box-shadow: var(--glow-btn); transition: background .16s ease, box-shadow .16s ease, transform .16s var(--ease); }
.auth-form .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(0,255,212,.5), 0 8px 28px rgba(0,255,212,.4); }
.auth-form .input, .auth-form .pw-wrap .input { height: 44px; border-radius: 10px; }
.auth-form .alert { animation: fadeUp .3s ease both; }
/* Painel da marca: o brilho respira devagar; os anéis giram quase imperceptível. */
@keyframes authGlow { 0%, 100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
.split-brand .bp-glow { animation: authGlow 7s ease-in-out infinite; }
.split-brand .bp-wordmark img { filter: drop-shadow(0 0 12px rgba(0,255,212,.35)); }
.split-brand .bp-tagline { background: linear-gradient(90deg, #fff 60%, rgba(0,255,212,.9)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.split-brand .bp-foot .ic { filter: var(--glow-icon); }

@media (prefers-reduced-motion: reduce) {
  .auth-screen > *, .split-brand .bp-glow, .perm-warn, .adm-accounts-bar > span, [data-pwd-rule][data-state="ok"] > span, .proj-quota-bar > span[data-state="next"] { animation: none !important; }
  .adm-switch, .adm-switch::after, .adm-matrix, .perm-dots > span, .prof-pwd-bars > span { transition: none !important; }
}


/* ═══════════ LANDING ═══════════ */

/* ═══════════ CARROSSEL DE PLANOS (landing + /planos) ═══════════
   Trilho com rolagem nativa + scroll-snap; PlansCarousel.tsx só liga as setas
   e os data-attrs de borda. O layout do trilho (colunas) é de cada tela:
   `.mkt-plans` em marketing.css, `.plan-track` aqui embaixo. */
.plans-carousel { position: relative; }
.plans-track { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.plans-track::-webkit-scrollbar { display: none; }
.plans-track > * { scroll-snap-align: start; }
.plans-track:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 16px; }
@media (prefers-reduced-motion: no-preference) { .plans-track { scroll-behavior: smooth; } }
/* Bordas esmaecidas SÓ quando há o que rolar para aquele lado. */
.plans-carousel[data-overflow="true"][data-start="false"] .plans-track { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
.plans-carousel[data-overflow="true"][data-end="false"] .plans-track { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.plans-carousel[data-overflow="true"][data-start="false"][data-end="false"] .plans-track { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
/* Setas nas PONTAS do trilho, na altura do meio dos cards. O <div> que as
   agrupa some do layout (display: contents). z-index: a folga de sombra do
   trilho (margem negativa) e o mask (contexto de empilhamento) cobriam as
   setas e engoliam o clique. Na ponta sem mais plano a seta some. */
.plans-nav { display: contents; }
.plans-arrow {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0,255,212,.28); background: rgba(8,26,31,.88); color: var(--brand);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0,0,0,.45); font-size: 22px; cursor: pointer;
  transition: opacity .2s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.plans-arrow:first-child { left: -22px; }
.plans-arrow:last-child { right: -22px; }
.plans-arrow:hover:not(:disabled) { border-color: var(--brand); background: rgba(0,255,212,.12); box-shadow: 0 0 18px rgba(0,255,212,.3), 0 8px 24px rgba(0,0,0,.45); }
.plans-arrow:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.plans-arrow:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 639px) {
  .plans-arrow { width: 38px; height: 38px; font-size: 19px; }
  .plans-arrow:first-child { left: -10px; }
  .plans-arrow:last-child { right: -10px; }
}

/* /planos: 3 por vez; cada item é o card (div) ou o <form> que embrulha o
   card-botão, esticado à altura da linha. Classe própria, e não `.plan-grid`:
   essa é também a grade do formulário de plano do admin (globals.css), e a
   regra dela sobrescrevia a desta tela. */
.plan-track {
  --plan-gap: 16px;
  display: grid; grid-auto-flow: column; align-items: stretch;
  grid-auto-columns: max(260px, calc((100% - 2 * var(--plan-gap)) / 3));
  column-gap: var(--plan-gap); scroll-padding-inline: 12px;
  /* Folga p/ o hover (sobe 3px + sombra) e o anel de foco não serem cortados. */
  padding: 12px 12px 28px; margin: 8px -12px -28px;
}
.plan-track > form { display: flex; }
.plan-track > form > .plan-card { flex: 1; }
@media (max-width: 639px) { .plan-track { grid-auto-columns: 84%; --plan-gap: 12px; } }
/* No painel os valores das specs vêm alinhados à direita, colados na borda do
   card, e a área de conteúdo só tem ~32px de respiro: a seta centrada na borda
   (como na landing) cobria os números. Menor e mais para fora. */
@media (min-width: 640px) {
  .plans-carousel:has(> .plan-track) .plans-arrow { width: 38px; height: 38px; font-size: 19px; }
  .plans-carousel:has(> .plan-track) .plans-arrow:first-child { left: -30px; }
  .plans-carousel:has(> .plan-track) .plans-arrow:last-child { right: -30px; }
}
