/* ===========================================================
   Adzep — design system
   ===========================================================
   Tokens extraidos do painel Adzep em producao.

   REGRA SEMANTICA DE COR (vale para toda a interface):
     ROXO  = marca, navegacao, configuracao, acao primaria do sistema
     VERDE = buscar/filtrar, estado ativo, dados de performance
   Nao e decoracao: e assim que o produto ja se comporta.
   =========================================================== */

/* Fontes servidas localmente: sem Google Fonts, a tipografia funciona
   offline, atras de firewall e sem vazar requisicao para terceiros. */
@font-face{font-family:'Outfit';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/outfit-latin-400-normal.woff2') format('woff2');}
@font-face{font-family:'Outfit';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/outfit-latin-500-normal.woff2') format('woff2');}
@font-face{font-family:'Outfit';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/outfit-latin-600-normal.woff2') format('woff2');}
@font-face{font-family:'Outfit';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/outfit-latin-700-normal.woff2') format('woff2');}
@font-face{font-family:'Outfit';font-style:normal;font-weight:800;font-display:swap;src:url('../fonts/outfit-latin-800-normal.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/inter-latin-400-normal.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/inter-latin-500-normal.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/inter-latin-600-normal.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/inter-latin-700-normal.woff2') format('woff2');}

:root {
    /* ---- Roxo ---- */
    --brand:       #612D91;  /* sidebar, botao primario, toggle inativo */
    --brand-600:   #713BA5;  /* hover, gradiente */
    --brand-500:   #8048B8;  /* fim do gradiente do item ativo */
    --brand-300:   #9F63DF;  /* inicio do gradiente do card KPI */
    --brand-ink:   #2E0A5B;  /* roxo profundo — series de grafico */
    --brand-100:   #DFD5E9;  /* badge lilas */
    --brand-50:    #F4EEF9;  /* circulo de icone */

    /* ---- Verde (co-primario) ---- */
    --green:       #0AA04B;  /* CTA buscar/filtrar, toggle ativo */
    --green-600:   #2BA84A;  /* series de grafico */
    --green-700:   #377E61;  /* texto de badge, marcador de secao */
    --green-800:   #1B4D3E;  /* pill de segmento ativo */
    --green-200:   #C5DAD1;  /* borda de badge */
    --green-100:   #DDF0E5;  /* cabecalho de tabela */
    --green-50:    #E0F3E8;  /* fundo de icone */

    /* ---- Neutros ---- */
    --page:        #F9F9FC;
    --surface:     #FFFFFF;
    --line:        #E9E7F0;
    --line-2:      #F2F1F7;
    --text:        #212529;
    --text-2:      #5A5C63;
    --text-3:      #8A8D96;
    --grey-500:    #6D6D6D;
    --grey-200:    #DFDFDF;

    /* ---- Semantico ---- */
    --up:      #0AA04B;
    --down:    #D14343;
    --warn:    #B4791C;
    --up-bg:   #E0F3E8;
    --down-bg: #FCEDED;
    --warn-bg: #FDF3E2;

    /* ---- Forma ---- */
    --r-sm:  8px;
    --r:     12px;
    --r-lg:  16px;
    --r-xl:  22px;
    --pill:  999px;
    --shadow:    0 1px 2px rgba(33,37,41,.04), 0 6px 20px rgba(33,37,41,.05);
    --shadow-md: 0 8px 26px rgba(97,45,145,.12);
    --shadow-lg: 0 20px 50px rgba(33,37,41,.16);

    --sidebar-w: 250px;
    --display: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--body);
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
    background: var(--page);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text);
    margin: 0;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.hidden { display: none !important; }
.muted  { color: var(--text-3); }
.up     { color: var(--up); font-weight: 600; }
.down   { color: var(--down); font-weight: 600; }

:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 4px; }

/* Numeros em coluna precisam alinhar: o produto e uma tabela de dados. */
.table, .metric-val, .stat-num, .kpi-num, .credits-num, .price { font-variant-numeric: tabular-nums; }

/* ===========================================================
   Layout
   =========================================================== */
body.app { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--brand);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 0 0 18px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 74px;
    margin-bottom: 14px;
    flex-shrink: 0;
}
.brand-img { display: block; height: 34px; width: auto; }
.brand-fallback {
    font-family: var(--display);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -.03em;
    color: #fff;
    display: inline-flex;
    align-items: center;
}

.sidebar-nav { display: flex; flex-direction: column; padding: 0 14px; overflow-y: auto; }

/* Grupos separados por divisoria, como no painel Adzep */
.nav-group { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .13); }
.nav-group:last-child { border-bottom: none; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--pill);
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    font-weight: 500;
    transition: background .16s, box-shadow .16s;
}
.nav-item:hover { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }
.nav-item.active {
    background: linear-gradient(90deg, var(--brand-600), var(--brand-500));
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.nav-item svg { flex-shrink: 0; opacity: .9; }
.nav-item.active svg { opacity: 1; }

.sidebar-foot { margin-top: auto; padding: 16px 20px 0; }

.plan-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--pill);
    background: rgba(255, 255, 255, .16);
    color: #fff;
    margin-bottom: 12px;
}
.plan-badge.plan-agency { background: var(--green); }

.credits-mini {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .1);
    border-radius: var(--r);
    margin-bottom: 12px;
}
.credits-num { font-family: var(--display); font-size: 24px; font-weight: 700; color: #fff; line-height: 1; }
.credits-lbl { font-size: 11.5px; color: rgba(255, 255, 255, .68); }

.btn-logout {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--pill);
    color: rgba(255, 255, 255, .82);
    font-family: var(--body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: .15s;
}
.btn-logout:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    background: var(--surface);
    padding: 18px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.topbar h1 { font-size: 24px; }
.topbar-sub { margin: 2px 0 0; font-size: 13.5px; color: var(--text-3); }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.mode-badge {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .09em;
    padding: 6px 12px;
    border-radius: var(--pill);
    background: var(--line-2);
    color: var(--text-3);
    white-space: nowrap;
}
.mode-badge.live   { background: var(--up-bg);   color: var(--green-700); }
.mode-badge.hybrid { background: var(--warn-bg); color: var(--warn); }

.page { padding: 24px 34px 48px; display: flex; flex-direction: column; gap: 20px; }

/* ===========================================================
   Botoes — formato pill, como no painel
   =========================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: var(--pill);
    font-family: var(--body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: .15s;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* Roxo = acao do sistema (configurar, assinar, salvar) */
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-600); box-shadow: var(--shadow-md); }

/* Verde = buscar / filtrar / analisar */
.btn-go { background: var(--green); color: #fff; }
.btn-go:hover:not(:disabled) { background: #099044; box-shadow: 0 8px 22px rgba(10, 160, 75, .25); }

.btn-ghost { background: var(--surface); color: var(--text-2); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { border-color: var(--brand-500); color: var(--brand); }

.btn-block { width: 100%; }
.btn-lg { padding: 13px 26px; font-size: 14.5px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ===========================================================
   Cards
   =========================================================== */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px 24px;
    box-shadow: var(--shadow);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

/* Marcador de secao: barra vertical colorida antes do titulo (padrao do painel) */
.card-head h3 {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 11px;
}
.card-head h3::before {
    content: '';
    width: 4px;
    height: 19px;
    border-radius: 3px;
    background: var(--brand);
    flex-shrink: 0;
}
.card-head h3.mark-green::before { background: var(--green-700); }
.card-head h3.mark-none::before  { display: none; }

/* Badge de contagem ao lado do titulo */
.count-badge {
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: var(--pill);
    background: var(--brand-100);
    color: var(--brand);
}
.count-badge.green { background: var(--green-100); color: var(--green-700); border: 1px solid var(--green-200); }

.card-tag {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--pill);
    background: var(--brand-50);
    color: var(--brand);
}

.link-sm { font-size: 13px; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ===========================================================
   Barra de filtro (site + periodo + acao) — padrao do painel
   =========================================================== */
.filter-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.filter-field {
    display: flex;
    align-items: center;
    gap: 11px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--pill);
    padding: 11px 20px;
    min-width: 260px;
}
.filter-field svg { color: var(--green); flex-shrink: 0; }
.filter-field input, .filter-field select {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--body);
    font-size: 14px;
    color: var(--text);
}

/* ===========================================================
   KPI — card com gradiente e cards brancos com circulo lilas
   =========================================================== */
.kpi-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }

.kpi-gradient {
    display: flex;
    align-items: stretch;
    background: linear-gradient(90deg, var(--brand-300), var(--brand));
    border-radius: var(--r-lg);
    padding: 24px 28px;
    color: #fff;
    box-shadow: var(--shadow-md);
}
.kpi-slot { flex: 1; padding-right: 24px; }
.kpi-slot + .kpi-slot { border-left: 1px solid rgba(255, 255, 255, .28); padding-left: 24px; padding-right: 0; }
.kpi-spark { height: 26px; margin-bottom: 14px; opacity: .75; }
.kpi-lbl { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .82); }
.kpi-num { display: block; font-family: var(--display); font-size: 27px; font-weight: 700; line-height: 1.15; }

.card.stat { display: flex; flex-direction: column; gap: 14px; }
.stat-ico {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-50);
    color: var(--brand);
}
.stat-ico.green { background: var(--green-50); color: var(--green); }
.stat-num { display: block; font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.15; }
.stat-lbl { display: block; margin-top: 2px; font-size: 13px; color: var(--text-3); }

/* ===========================================================
   Segmented control (Receitas | Impressoes)
   =========================================================== */
.segmented {
    display: inline-flex;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--pill);
    padding: 4px;
    gap: 2px;
}
.segmented button {
    border: none;
    background: transparent;
    border-radius: var(--pill);
    padding: 8px 20px;
    font-family: var(--body);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-3);
    cursor: pointer;
    transition: .15s;
}
.segmented button.active { background: var(--green-800); color: #fff; }
.segmented.purple button.active { background: var(--brand); }

/* ===========================================================
   Toggle switch (Ativo verde / Inativo roxo)
   =========================================================== */
.switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand);
    border-radius: var(--pill);
    padding: 4px 6px 4px 14px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    border: none;
    font-family: var(--body);
}
.switch::after {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    order: -1;
    transition: .18s;
}
.switch.on { background: var(--green); padding: 4px 14px 4px 6px; }
.switch.on::after { order: 1; }

/* ===========================================================
   Graficos
   =========================================================== */
.chart-box { height: 270px; position: relative; }
.chart-box-wide { height: 330px; }

/* ===========================================================
   Tabelas — cabecalho verde claro, como no painel
   =========================================================== */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table thead th {
    text-align: left;
    background: var(--green-100);
    color: var(--green-800);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 13px 16px;
    white-space: nowrap;
}
.table thead th:first-child { border-top-left-radius: var(--r); }
.table thead th:last-child  { border-top-right-radius: var(--r); }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); color: var(--text-2); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #FBFBFD; }
.table .kw { color: var(--text); font-weight: 600; }
.table.compact td, .table.compact thead th { padding: 10px 14px; }

.empty {
    padding: 36px 20px;
    text-align: center;
    color: var(--text-3);
    font-size: 13.5px;
    background: var(--page);
    border-radius: var(--r);
}

/* ===========================================================
   Selos
   =========================================================== */
.badge {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    padding: 4px 11px;
    border-radius: var(--pill);
    font-size: 12px;
    font-weight: 700;
}
.badge.excellent { background: var(--green-100); color: var(--green-700); }
.badge.good      { background: var(--brand-50);  color: var(--brand); }
.badge.medium    { background: var(--warn-bg);   color: var(--warn); }
.badge.bad       { background: var(--down-bg);   color: var(--down); }

/* Badges de estado, como nos cards de formato */
.tag {
    display: inline-block;
    padding: 4px 11px;
    border-radius: var(--pill);
    font-size: 11.5px;
    font-weight: 600;
}
.tag.dark  { background: var(--grey-500); color: #fff; }
.tag.on    { background: var(--green-100); color: var(--green-700); }
.tag.off   { background: var(--grey-200);  color: var(--grey-500); }

.pill {
    display: inline-block;
    padding: 4px 11px;
    border-radius: var(--pill);
    font-size: 11.5px;
    font-weight: 600;
    background: var(--line-2);
    color: var(--text-2);
    text-transform: capitalize;
}
.pill.intent-transacional  { background: var(--brand-50);  color: var(--brand); }
.pill.intent-comercial     { background: var(--green-100); color: var(--green-700); }
.pill.intent-informacional { background: #E8EEF8;          color: #2C5A9E; }

/* ===========================================================
   Paginacao
   =========================================================== */
.pagination { display: flex; align-items: center; gap: 6px; padding-top: 18px; flex-wrap: wrap; }
.page-link {
    min-width: 36px;
    padding: 8px 12px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
}
.page-link:hover { border-color: var(--brand-500); color: var(--brand); text-decoration: none; }
.page-link.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-gap { padding: 0 4px; color: var(--text-3); }

/* ===========================================================
   Avisos
   =========================================================== */
.flash { padding: 14px 20px; border-radius: var(--r); font-size: 13.5px; border: 1px solid transparent; }
.flash-success { background: var(--green-100); color: var(--green-800); border-color: var(--green-200); }
.flash-error   { background: var(--down-bg);   color: #8F2323; border-color: #F3D3D3; }
.flash-info    { background: var(--brand-50);  color: var(--brand); border-color: var(--brand-100); }
.flash a { color: inherit; font-weight: 700; text-decoration: underline; }

/* ===========================================================
   Busca
   =========================================================== */
.search-hero { padding: 28px 30px; }
.search-hero h2 { font-size: 24px; line-height: 1.2; max-width: 24ch; }
.search-hero > p { margin: 9px 0 20px; color: var(--text-3); font-size: 14px; max-width: 64ch; }

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--pill);
    padding: 6px 6px 6px 20px;
    max-width: 760px;
}
.search-box > svg { color: var(--green); flex-shrink: 0; }
.search-box input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-family: var(--body);
    font-size: 15px;
    color: var(--text);
    background: transparent;
    padding: 11px 0;
}
.search-box input::placeholder { color: var(--text-3); }

.search-examples { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.search-examples > span { font-size: 12.5px; color: var(--text-3); }
.chip {
    padding: 7px 15px;
    border-radius: var(--pill);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-2);
    font-family: var(--body);
    font-size: 12.5px;
    cursor: pointer;
    transition: .15s;
}
.chip:hover { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand); }

.loading { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 46px; color: var(--text-2); font-size: 13.5px; }
.spinner {
    width: 22px; height: 22px;
    border: 2.5px solid var(--line);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.result { display: flex; flex-direction: column; gap: 20px; }
.result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.result-head h2 { font-size: 25px; margin-bottom: 9px; }

.cached-tag, .source-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--pill);
    margin-left: 6px;
    vertical-align: middle;
}
.cached-tag { background: var(--line-2); color: var(--text-3); }
.source-tag.live { background: var(--green-100); color: var(--green-700); }
.source-tag.demo { background: var(--line-2);    color: var(--text-3); }

.metrics-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.metric-lbl { display: block; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.metric-val { display: block; margin-top: 6px; font-family: var(--display); font-size: 21px; font-weight: 700; color: var(--text); }
.metric.score-metric { background: linear-gradient(135deg, var(--brand-300), var(--brand)); border: none; }
.score-metric .metric-lbl { color: rgba(255, 255, 255, .8); }
.score-metric .metric-val { color: #fff; font-size: 27px; }
.score-metric .badge { margin-top: 8px; background: rgba(255, 255, 255, .92); }

.insight-card .card-head svg { color: var(--brand); }
.insight-text {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-2);
    padding-left: 15px;
    border-left: 3px solid var(--brand);
}

/* ===========================================================
   Planos
   =========================================================== */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan-card {
    position: relative;
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
}
.plan-card.featured { border-color: var(--brand); box-shadow: var(--shadow-md); }
.plan-card.current  { border-color: var(--green); }
.plan-card h3 { font-size: 17px; }

.plan-ribbon {
    position: absolute;
    top: -12px;
    left: 24px;
    background: var(--brand);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--pill);
}

.plan-price { display: flex; align-items: baseline; gap: 3px; margin: 14px 0 20px; }
.currency { font-size: 16px; font-weight: 600; color: var(--text-2); }
.price { font-family: var(--display); font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.per { font-size: 13px; color: var(--text-3); }

.plan-features { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--text-2); }
.plan-features svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }

.billing-portal {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
    padding: 16px 22px; font-size: 13.5px; color: var(--text-2);
}

/* ===========================================================
   Autenticacao e instalacao
   =========================================================== */
body.auth-body, body.centered {
    background: var(--brand);
    background-image: linear-gradient(135deg, var(--brand-300) 0%, var(--brand) 55%, var(--brand-ink) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-wrap { width: 100%; max-width: 430px; }
.auth-brand { display: flex; align-items: center; justify-content: center; margin-bottom: 26px; }
.auth-brand .brand-img { height: 40px; }

.auth-card { background: var(--surface); border-radius: var(--r-xl); padding: 34px; box-shadow: var(--shadow-lg); }
.auth-card-wide { max-width: none; }
.auth-wrap:has(.auth-card-wide) { max-width: 580px; }
.auth-card h2 { font-size: 25px; }
.auth-desc { margin: 7px 0 24px; color: var(--text-3); font-size: 13.5px; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); }
.form input, .form select {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    font-family: var(--body);
    font-size: 14.5px;
    color: var(--text);
    background: var(--surface);
}
.form input:focus, .form select:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(128, 72, 184, .14);
}

.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; font-size: 13px; }
.auth-links.center { justify-content: center; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 12.5px; color: rgba(255, 255, 255, .6); }

.demo-hint {
    margin-top: 22px; padding: 14px 18px;
    background: var(--brand-50); border-radius: var(--r-sm);
    font-size: 12.5px; color: var(--brand);
}
.demo-hint em { display: block; margin-top: 5px; font-size: 11.5px; color: var(--warn); font-style: normal; }

.check-list { margin: 20px 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.check { display: flex; align-items: center; gap: 11px; padding: 10px 16px; font-size: 13px; border-bottom: 1px solid var(--line-2); }
.check:last-child { border-bottom: none; }
.check-ico { width: 21px; height: 21px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.check.ok   .check-ico { background: var(--green-100); color: var(--green-700); }
.check.bad  .check-ico { background: var(--down-bg);   color: var(--down); }
.check.warn .check-ico { background: var(--warn-bg);   color: var(--warn); }
.check-lbl { font-weight: 600; color: var(--text-2); }
.check-detail { margin-left: auto; color: var(--text-3); font-size: 12px; text-align: right; }

.install-url {
    background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--r-sm);
    padding: 12px 16px; font-size: 12.5px; color: var(--brand); margin-bottom: 20px; word-break: break-all;
}
.install-note { margin-top: 18px; font-size: 12.5px; color: var(--text-3); line-height: 1.6; }

/* ===========================================================
   Painel de integracoes
   =========================================================== */
.admin-hero {
    display: flex; align-items: center; justify-content: space-between;
    gap: 26px; flex-wrap: wrap;
    background: linear-gradient(90deg, var(--brand-300), var(--brand));
    border: none; padding: 30px 34px; color: #fff;
    box-shadow: var(--shadow-md);
}
.admin-hero h2 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.admin-hero p { margin: 0; color: rgba(255, 255, 255, .88); font-size: 13.5px; max-width: 62ch; }
.admin-hero .btn-go { box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }

.auto-actions { list-style: none; margin: 0; padding: 0; }
.auto-actions li { padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; color: var(--text-2); }
.auto-actions li:last-child { border-bottom: none; }
.auto-actions li.ok::before  { content: '✓ '; color: var(--green); font-weight: 700; }
.auto-actions li.bad::before { content: '✕ '; color: var(--down); font-weight: 700; }

.admin-form { display: flex; flex-direction: column; gap: 20px; }

/* Card de conexao: borda superior colorida, como os cards de formato do painel.
   Roxo = integracao de sistema; verde = fonte de dados / performance. */
.conn-card { padding: 0; overflow: hidden; border-top: 4px solid var(--brand); }
.conn-card.data { border-top-color: var(--green); }
.conn-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 18px; flex-wrap: wrap; padding: 22px 26px 0;
}
.conn-head h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; font-size: 16px; }
.conn-ico {
    width: 38px; height: 38px; border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-50); color: var(--brand); flex-shrink: 0;
}
.conn-ico.green { background: var(--green-50); color: var(--green); }
.conn-msg { margin: 0; font-size: 13px; color: var(--text-3); max-width: 68ch; }
.conn-actions { display: flex; align-items: center; gap: 10px; }

.conn-req {
    font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    background: var(--warn-bg); color: var(--warn); padding: 4px 10px; border-radius: var(--pill);
}
.conn-req.opt { background: var(--line-2); color: var(--text-3); }

.conn-pill {
    font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 6px 13px; border-radius: var(--pill); white-space: nowrap;
}
.conn-pill.ok   { background: var(--green-100); color: var(--green-700); }
.conn-pill.off  { background: var(--down-bg);   color: var(--down); }
.conn-pill.idle { background: var(--line-2);    color: var(--text-3); }

.conn-body { padding: 18px 26px 24px; }
.conn-body label, .conn-sub label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 16px; }
.conn-body input, .conn-body select,
.conn-sub input, .conn-sub select {
    display: block; width: 100%; margin-top: 6px;
    padding: 11px 18px;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    font-family: var(--body); font-size: 14px; color: var(--text); background: var(--surface);
}
.conn-body input:focus, .conn-sub input:focus,
.conn-body select:focus, .conn-sub select:focus {
    outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(128, 72, 184, .14);
}
.conn-body small, .conn-sub small { display: block; margin-top: 7px; font-weight: 400; font-size: 12px; color: var(--text-3); line-height: 1.5; }
.conn-body code, .conn-sub code { background: var(--page); padding: 1px 6px; border-radius: 4px; font-size: 12px; }

.conn-sub { border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin-top: 16px; background: var(--page); }
.conn-sub-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.conn-sub-head h4 { font-family: var(--display); font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }

.driver-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.radio-card {
    border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px 18px;
    cursor: pointer; background: var(--surface); transition: .15s;
}
.radio-card:hover { border-color: var(--brand-500); }
.radio-card.sel { border-color: var(--brand); background: var(--brand-50); }
.radio-card input { margin-right: 9px; accent-color: var(--brand); }
.radio-card strong { font-size: 14px; }
.radio-card span { display: block; margin-top: 5px; font-size: 12.5px; color: var(--text-3); font-weight: 400; }

.oauth-box, .provision-box {
    display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
    background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--r);
    padding: 18px 22px; margin: 8px 0 20px;
}
.oauth-box strong, .provision-box strong { font-size: 13.5px; color: var(--brand); }
.oauth-box p, .provision-box p { margin: 5px 0 10px; font-size: 12.5px; color: var(--text-2); max-width: 60ch; }
.oauth-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

code.copyable {
    display: inline-block; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-sm); padding: 8px 13px; font-size: 12px; color: var(--brand);
    cursor: pointer; word-break: break-all;
}
code.copyable:hover { border-color: var(--brand); }
.copyable-input { cursor: pointer; background: var(--page) !important; font-size: 12.5px !important; }

.advanced { margin-top: 12px; }
.advanced summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-3); padding: 9px 0; }
.advanced summary:hover { color: var(--brand); }
.advanced[open] summary { color: var(--brand); margin-bottom: 8px; }

.admin-save { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; flex-wrap: wrap; }

/* Rodape de etapa, como no wizard de tags */
.step-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 16px 26px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px;
}

/* ===========================================================
   Toasts
   =========================================================== */
.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.toast {
    background: #2A2D34; color: #fff; padding: 14px 18px; border-radius: var(--r);
    font-size: 13.5px; line-height: 1.45; box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--brand); animation: toastIn .22s ease-out;
}
.toast-success { border-left-color: var(--green); }
.toast-error   { border-left-color: #E86767; }
.toast.out { opacity: 0; transform: translateY(6px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===========================================================
   Erro
   =========================================================== */
.error-page { text-align: center; padding: 60px 24px; color: #fff; }
.error-page h1 { font-family: var(--display); font-size: 92px; line-height: 1; color: rgba(255, 255, 255, .95); margin-bottom: 10px; }
.error-page p { color: rgba(255, 255, 255, .8); margin: 0 0 26px; }
.error-page .btn-primary { background: #fff; color: var(--brand); }

/* ===========================================================
   Responsivo
   =========================================================== */
@media (max-width: 1180px) {
    .kpi-row { grid-template-columns: 1fr 1fr; }
    .kpi-gradient { grid-column: 1 / -1; }
    .metrics-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
    body.app { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; gap: 14px; padding: 10px 16px; flex-wrap: wrap; }
    .sidebar-brand { height: auto; margin: 0; }
    .brand-img { height: 26px; }
    .sidebar-nav { flex-direction: row; flex: 1; overflow-x: auto; padding: 0; gap: 4px; }
    .nav-group { display: flex; gap: 4px; padding: 0; border: none; }
    .nav-item span { display: none; }
    .nav-item { padding: 10px; }
    .sidebar-foot { margin: 0; padding: 0; display: flex; align-items: center; gap: 10px; }
    .plan-badge, .credits-mini { margin-bottom: 0; }
    .credits-mini { padding: 8px 13px; }
    .credits-num { font-size: 18px; }
    .topbar, .page { padding-left: 18px; padding-right: 18px; }
    .plans { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .grid-2, .driver-switch, .kpi-row { grid-template-columns: 1fr; }
    .kpi-gradient { flex-direction: column; gap: 20px; }
    .kpi-slot + .kpi-slot { border-left: none; border-top: 1px solid rgba(255,255,255,.28); padding-left: 0; padding-top: 20px; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-hero { flex-direction: column; align-items: flex-start; }
    .filter-field { min-width: 0; width: 100%; }
    .check-detail { display: none; }
    .toasts { left: 16px; right: 16px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===========================================================
   SITE PUBLICO
   =========================================================== */
body.site { background: var(--surface); }

.site-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.site-wrap.narrow { max-width: 780px; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header-in { display: flex; align-items: center; gap: 28px; height: 74px; }

.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo:hover { text-decoration: none; }
.site-logo-sub {
    font-family: var(--display); font-size: 12px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; color: var(--text-3);
    padding-left: 10px; border-left: 1px solid var(--line);
}

.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.site-nav a { font-size: 14px; font-weight: 500; color: var(--text-2); }
.site-nav a:hover, .site-nav a.on { color: var(--brand); text-decoration: none; }

.site-cta { display: flex; align-items: center; gap: 14px; }
.site-link { font-size: 14px; font-weight: 600; color: var(--text-2); }
.site-burger { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 6px; }

.eyebrow {
    display: inline-block; font-size: 11.5px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--brand); background: var(--brand-50);
    padding: 6px 14px; border-radius: var(--pill); margin-bottom: 18px;
}
.eyebrow.light { color: #fff; background: rgba(255, 255, 255, .16); }

/* ---- Hero ---- */
.hero { background: linear-gradient(180deg, var(--brand-50) 0%, var(--surface) 100%); padding: 72px 0 84px; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 50px; line-height: 1.06; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.lede { margin: 20px 0 0; font-size: 17px; line-height: 1.62; color: var(--text-2); max-width: 56ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-note { margin: 14px 0 0; font-size: 13px; color: var(--text-3); }

.demo-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 24px; box-shadow: 0 24px 60px rgba(97, 45, 145, .16);
}
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.demo-kw { font-family: var(--display); font-size: 18px; font-weight: 700; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.demo-grid div { background: var(--page); border-radius: var(--r-sm); padding: 12px 14px; }
.demo-grid span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.demo-grid strong { display: block; margin-top: 4px; font-family: var(--display); font-size: 18px; }
.demo-score {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, var(--brand-300), var(--brand));
    border-radius: var(--r); padding: 16px 20px; color: #fff;
}
.demo-score span { font-size: 12px; color: rgba(255, 255, 255, .82); }
.demo-score strong { display: block; font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.1; }
.demo-insight { margin: 16px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--text-2); padding-left: 14px; border-left: 3px solid var(--green); }

/* ---- Secoes ---- */
.section { padding: 78px 0; }
.section-alt { background: var(--page); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: 34px; line-height: 1.15; letter-spacing: -.03em; }
.section-lede { margin: 16px 0 0; font-size: 16px; line-height: 1.62; color: var(--text-2); }
.section-lede.light { color: rgba(255, 255, 255, .82); }
.center-note { margin: 34px 0 0; text-align: center; font-size: 14.5px; font-weight: 600; }

.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.mini-ico {
    width: 42px; height: 42px; border-radius: 12px; display: inline-flex;
    align-items: center; justify-content: center; background: var(--brand-50);
    color: var(--brand); margin-bottom: 16px;
}
.mini h3 { font-size: 17px; margin-bottom: 9px; }
.mini p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-2); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: s; }
.steps li { position: relative; padding-top: 8px; }
.step-n {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--brand); color: #fff;
    font-family: var(--display); font-size: 18px; font-weight: 700; margin-bottom: 16px;
}
.steps h3 { font-size: 18px; margin-bottom: 9px; }
.steps p { margin: 0; font-size: 14px; line-height: 1.62; color: var(--text-2); }

.feature-grid { gap: 20px; }
.feature { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.feature h3 { font-size: 16px; margin-bottom: 8px; }
.feature h3::before { content: ''; display: inline-block; width: 4px; height: 15px; border-radius: 3px; background: var(--green); margin-right: 9px; vertical-align: -2px; }
.feature p { margin: 0; font-size: 13.8px; line-height: 1.6; color: var(--text-2); }

/* ---- Secao escura do score ---- */
.section-dark { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-ink) 100%); color: #fff; padding: 84px 0; }
.section-dark h2 { color: #fff; }
.score-in { display: grid; grid-template-columns: 1.35fr .65fr; gap: 52px; align-items: start; }
.formula {
    background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--r); padding: 20px 22px; margin: 26px 0;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 13px; line-height: 1.7; color: #fff; overflow-x: auto;
}
.score-notes { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; }
.score-notes li { font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .86); }
.score-notes strong { color: #fff; }
.score-scale { background: rgba(255, 255, 255, .08); border-radius: var(--r-lg); padding: 24px; }
.scale-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: rgba(255, 255, 255, .88); }
.scale-row:last-child { border-bottom: none; }

/* ---- Paineis IA ---- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.panel-purple { border-color: var(--brand-100); background: var(--brand-50); }
.panel h3 { font-size: 19px; margin-bottom: 16px; }
.panel ul { margin: 0 0 16px; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; }
.panel li { font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.panel p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-2); }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-item summary {
    cursor: pointer; padding: 18px 0; font-family: var(--display);
    font-size: 16.5px; font-weight: 600; color: var(--text); list-style: none;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--brand); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 0 0 20px; font-size: 14.5px; line-height: 1.68; color: var(--text-2); max-width: 74ch; }

/* ---- CTA final ---- */
.cta-final { background: var(--brand); color: #fff; padding: 72px 0; text-align: center; }
.cta-final h2 { color: #fff; font-size: 34px; letter-spacing: -.03em; }
.cta-final p { margin: 14px 0 28px; font-size: 16px; color: rgba(255, 255, 255, .86); }

/* ---- Hero de pagina interna ---- */
.page-hero { background: var(--brand-50); padding: 62px 0; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: 40px; letter-spacing: -.03em; }

/* ---- Comparativo ---- */
.compare-wrap { background: var(--surface); }
.table.compare td, .table.compare th { text-align: center; }
.table.compare td:first-child, .table.compare th:first-child { text-align: left; }
.table.compare th.hl { background: var(--brand); color: #fff; }
.table.compare td.hl { background: var(--brand-50); font-weight: 600; }
.yes { color: var(--green); display: inline-flex; }
.no { color: var(--text-3); }
.plan-tagline { margin: 6px 0 0; font-size: 13.5px; color: var(--text-3); min-height: 38px; }

/* ---- Contato ---- */
.contact-card { padding: 30px; }
.contact-card textarea {
    display: block; width: 100%; margin-top: 6px; padding: 14px 18px;
    border: 1px solid var(--line); border-radius: var(--r);
    font-family: var(--body); font-size: 14.5px; color: var(--text); resize: vertical;
}
.contact-card textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(128, 72, 184, .14); }
.opt { font-weight: 400; color: var(--text-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Legal ---- */
.legal h2 { font-size: 21px; margin: 38px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p { font-size: 14.8px; line-height: 1.75; color: var(--text-2); margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal li { font-size: 14.8px; line-height: 1.65; color: var(--text-2); }

/* ---- Rodape ---- */
.site-footer { background: var(--brand-ink); color: rgba(255, 255, 255, .72); padding: 56px 0 26px; }
.site-footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand p { margin: 16px 0 0; font-size: 13.5px; line-height: 1.6; max-width: 34ch; }
.foot-col h4 { font-size: 13px; color: #fff; margin-bottom: 14px; letter-spacing: .04em; text-transform: uppercase; }
.foot-col a { display: block; font-size: 13.8px; color: rgba(255, 255, 255, .72); padding: 5px 0; }
.foot-col a:hover { color: #fff; text-decoration: none; }
.foot-bottom {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 12.5px; color: rgba(255, 255, 255, .5);
}

/* ===========================================================
   CONTA DO CLIENTE / LOTE / ADMIN
   =========================================================== */
.usage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 22px; }
.usage-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 13.5px; color: var(--text-2); }
.usage-top strong { font-family: var(--display); font-size: 16px; color: var(--text); }
.bar { height: 8px; background: var(--line-2); border-radius: var(--pill); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--brand); border-radius: var(--pill); }
.bar span.green { background: var(--green); }
.usage small { display: block; margin-top: 7px; font-size: 12.5px; color: var(--text-3); }

.usage-feats { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line-2); }
.feat { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; padding: 7px 14px; border-radius: var(--pill); background: var(--green-100); color: var(--green-700); font-weight: 600; }
.feat.off { background: var(--line-2); color: var(--text-3); }
.feat-x { font-weight: 700; }
.usage-actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 4px; }

.locked { text-align: center; padding: 26px; background: var(--page); border-radius: var(--r); }
.locked p { margin: 0 0 8px; }
.locked .btn { margin-top: 12px; }
.locked-btn { opacity: .75; }
.locked-btn svg { margin-left: 5px; }

.token-box { margin: 14px 0; }
.code-block {
    background: var(--brand-ink); color: #fff; border-radius: var(--r);
    padding: 18px 20px; font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 12.5px; line-height: 1.7; overflow-x: auto; margin: 10px 0;
}

.head-actions { margin-left: auto; display: flex; gap: 8px; }
.plan-note { margin: 0 0 16px; font-size: 13px; color: var(--text-3); }

.bulk-toggle { margin-top: 18px; }
.link-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: none; padding: 0; cursor: pointer;
    font-family: var(--body); font-size: 13.5px; font-weight: 600; color: var(--brand);
}
.link-btn:hover { text-decoration: underline; }
.bulk-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); }
.bulk-label textarea {
    display: block; width: 100%; margin-top: 8px; padding: 14px 18px;
    border: 1px solid var(--line); border-radius: var(--r);
    font-family: var(--body); font-size: 14px; color: var(--text); resize: vertical;
}
.bulk-label textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(128, 72, 184, .14); }
.bulk-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

.mini-stats { display: flex; gap: 26px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.mini-stats div { font-size: 13px; color: var(--text-3); }
.mini-stats span { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--text); margin-right: 5px; }

.inline-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.inline-form select, .mini-input {
    padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--pill);
    font-family: var(--body); font-size: 13px; background: var(--surface); color: var(--text);
}
.mini-input { width: 92px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table tr.blocked td { opacity: .55; }
.table tr.done td { opacity: .5; }
.msg-cell { max-width: 320px; font-size: 12.8px; }

@media (max-width: 980px) {
    .hero-in, .score-in, .cols-2 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 38px; }
    .cols-3, .steps { grid-template-columns: 1fr; }
    .site-footer-in { grid-template-columns: 1fr 1fr; gap: 30px; }
    .usage-grid { grid-template-columns: 1fr; }
    .site-nav, .site-cta { display: none; }
    .site-burger { display: block; margin-left: auto; }
    .site-header.open .site-nav,
    .site-header.open .site-cta {
        display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
        width: 100%; padding: 16px 0; border-top: 1px solid var(--line);
    }
    .site-header.open .site-header-in { flex-wrap: wrap; height: auto; padding-bottom: 12px; }
    .section, .hero { padding: 52px 0; }
    .section-head h2, .cta-final h2 { font-size: 27px; }
    .page-hero h1 { font-size: 30px; }
}

/* ===========================================================
   PAINEL DE INTEGRACOES — guia passo a passo
   =========================================================== */

/* ---- Cartao de estado ---- */
.estado { border-top: 4px solid var(--grey-200); padding: 26px 28px; }
.estado-live   { border-top-color: var(--green); }
.estado-hybrid { border-top-color: var(--warn); }
.estado-demo   { border-top-color: var(--grey-500); }

.estado-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.estado-topo h2 { font-size: 22px; margin: 10px 0 8px; }
.estado-topo p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-2); max-width: 74ch; }

.estado-tag {
    display: inline-block; font-size: 10.5px; font-weight: 700;
    letter-spacing: .09em; text-transform: uppercase;
    padding: 5px 13px; border-radius: var(--pill);
    background: var(--line-2); color: var(--text-3);
}
.estado-live   .estado-tag { background: var(--green-100); color: var(--green-700); }
.estado-hybrid .estado-tag { background: var(--warn-bg);   color: var(--warn); }

.estado-barra { height: 8px; background: var(--line-2); border-radius: var(--pill); overflow: hidden; margin: 22px 0; }
.estado-barra span { display: block; height: 100%; background: var(--green); border-radius: var(--pill); transition: width .3s; }

.estado-listas { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.estado-listas h4 {
    font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--text-3); margin-bottom: 12px;
}
.chk { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 13.8px; color: var(--text-2); }
.chk-ico {
    width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--line-2); color: var(--text-3);
}
.chk.on  .chk-ico { background: var(--green-100); color: var(--green-700); }
.chk.off .chk-ico { background: var(--warn-bg);   color: var(--warn); }
.chk-dash { font-weight: 700; }

.estado-explica { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.estado-explica summary {
    cursor: pointer; font-family: var(--display); font-size: 15px; font-weight: 600;
    color: var(--brand); padding: 4px 0;
}
.estado-explica > p { margin: 14px 0; font-size: 14px; line-height: 1.65; color: var(--text-2); }
.explica-tab { margin: 14px 0; font-size: 13px; }
.explica-tab tr.atual td { background: var(--brand-50); }
.explica-tab td { vertical-align: top; }

/* ---- Titulos de grupo ---- */
.grupo-titulo {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    font-size: 19px; margin: 14px 0 -6px;
}
.grupo-n {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--brand); color: #fff;
    font-family: var(--display); font-size: 15px; font-weight: 700;
}
.grupo-sub {
    font-family: var(--body); font-size: 13px; font-weight: 400; color: var(--text-3);
    flex-basis: 100%; padding-left: 42px; margin-top: -2px;
}

/* ---- Bloco de guia ---- */
.guia {
    background: var(--page); border: 1px solid var(--line);
    border-radius: var(--r); padding: 20px 22px; margin-bottom: 22px;
}
.guia-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guia-item h5 {
    font-family: var(--display); font-size: 11.5px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 7px;
}
.guia-item p { margin: 0; font-size: 13.4px; line-height: 1.6; color: var(--text-2); }
.guia-item.aviso h5 { color: var(--warn); }
.guia-item.ok h5 { color: var(--green-700); }

.guia-nota {
    margin: 16px 0 0; padding: 12px 15px; background: var(--brand-50);
    border-radius: var(--r-sm); font-size: 13px; line-height: 1.6; color: var(--text-2);
}

.guia-passos { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.guia-passos summary {
    cursor: pointer; display: flex; align-items: center; gap: 9px;
    font-size: 13.5px; font-weight: 600; color: var(--brand); padding: 4px 0;
}
.guia-passos[open] summary { margin-bottom: 12px; }

.passos { margin: 0; padding-left: 0; list-style: none; counter-reset: passo; }
.passos li {
    position: relative; padding: 0 0 14px 38px; counter-increment: passo;
    font-size: 13.6px; line-height: 1.62; color: var(--text-2);
}
.passos li::before {
    content: counter(passo);
    position: absolute; left: 0; top: -1px;
    width: 25px; height: 25px; border-radius: 50%;
    background: var(--brand-50); color: var(--brand);
    font-family: var(--display); font-size: 12.5px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.passos li:last-child { padding-bottom: 4px; }

.guia-rodape {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding-top: 12px; border-top: 1px solid var(--line);
}
.guia-custo { font-size: 12.5px; color: var(--text-3); line-height: 1.5; flex: 1; min-width: 240px; }
.guia-dica {
    display: flex; align-items: flex-start; gap: 8px;
    margin: 12px 0 0; padding: 11px 14px;
    background: var(--green-50); border-radius: var(--r-sm);
    font-size: 12.8px; line-height: 1.55; color: var(--green-800);
}
.guia-dica svg { flex-shrink: 0; margin-top: 2px; }

/* ---- Bloco "qual escolher" ---- */
.escolha {
    background: var(--brand-50); border: 1px solid var(--brand-100);
    border-radius: var(--r); padding: 16px 20px; margin-bottom: 18px;
}
.escolha p { margin: 0 0 8px; font-size: 13.5px; color: var(--brand); }
.escolha ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.escolha li { font-size: 13.3px; line-height: 1.55; color: var(--text-2); }
.escolha em { color: var(--green-700); font-style: normal; font-weight: 600; }

@media (max-width: 980px) {
    .guia-cols { grid-template-columns: 1fr; gap: 16px; }
    .estado-listas { grid-template-columns: 1fr; gap: 20px; }
    .estado-topo { flex-direction: column; }
}

/* ---- A conta da arbitragem (home) ---- */
.conta-box {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow);
}
.conta-linha {
    display: flex; align-items: stretch; justify-content: center;
    gap: 18px; flex-wrap: wrap;
}
.conta-item {
    flex: 1; min-width: 190px; text-align: center;
    border-radius: var(--r); padding: 20px 18px; border: 1.5px solid var(--line);
}
.conta-item small {
    display: block; font-size: 11px; font-weight: 700;
    letter-spacing: .07em; text-transform: uppercase; color: var(--text-3);
}
.conta-item strong {
    display: block; margin: 8px 0 6px; font-family: var(--display);
    font-size: 24px; font-weight: 700; letter-spacing: -.02em;
}
.conta-item em { font-style: normal; font-size: 12.5px; color: var(--text-3); line-height: 1.45; display: block; }
.conta-item.ganho  { border-color: var(--green-200); background: var(--green-50); }
.conta-item.ganho strong { color: var(--green-700); }
.conta-item.custo  { border-color: var(--brand-100); background: var(--brand-50); }
.conta-item.custo strong { color: var(--brand); }
.conta-item.margem { border-color: var(--line); background: var(--page); }

.conta-op {
    display: flex; align-items: center;
    font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--text-3);
}
.conta-nota {
    margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--line-2);
    font-size: 14.5px; line-height: 1.68; color: var(--text-2); text-align: center;
    max-width: 76ch; margin-left: auto; margin-right: auto;
}

@media (max-width: 780px) {
    .conta-op { transform: rotate(90deg); justify-content: center; width: 100%; }
    .conta-item { min-width: 0; width: 100%; }
}

/* ===========================================================
   SINAIS DE ARBITRAGEM, MARGEM E AVISO LEGAL
   =========================================================== */
.sinais { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sinal {
    background: var(--surface); border: 1px solid var(--line);
    border-left: 4px solid var(--line); border-radius: var(--r); padding: 15px 18px;
}
.sinal-lbl { display: block; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.sinal strong { display: block; margin: 5px 0 4px; font-family: var(--display); font-size: 18px; }
.sinal small { display: block; font-size: 12.3px; line-height: 1.5; color: var(--text-3); }

.sinal.mom-acelerando { border-left-color: var(--green); }
.sinal.mom-estavel    { border-left-color: var(--brand-500); }
.sinal.mom-perdendo   { border-left-color: var(--warn); }
.sinal.mom-virando    { border-left-color: var(--down); }
.sinal.sat-baixo      { border-left-color: var(--green); }
.sinal.sat-medio      { border-left-color: var(--warn); }
.sinal.sat-alto       { border-left-color: var(--down); }

.margem-topo { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-bottom: 18px; }
.margem-teto {
    background: linear-gradient(135deg, var(--brand-300), var(--brand));
    border-radius: var(--r); padding: 18px 24px; color: #fff; min-width: 240px;
}
.margem-teto span { display: block; font-size: 12px; color: rgba(255, 255, 255, .82); }
.margem-teto strong { display: block; font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.15; }
.margem-teto small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .72); }
.margem-leitura { flex: 1; min-width: 260px; margin: 0; font-size: 14px; line-height: 1.6; padding-left: 15px; border-left: 3px solid var(--line); }
.margem-leitura.cabe { border-left-color: var(--green); color: var(--green-800); }
.margem-leitura.nao-cabe { border-left-color: var(--warn); color: var(--text-2); }
.margem-tab tr.neg td { background: #FDF7F7; }
.margem-aviso { margin: 14px 0 0; font-size: 12px; line-height: 1.55; color: var(--text-3); }
.margem-cta p { margin: 0; font-size: 14px; color: var(--text-2); }
.teto-box {
    display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
    margin-top: 18px; padding: 14px 20px;
    background: var(--green-50); border: 1px solid var(--green-200); border-radius: var(--r);
    font-size: 13.5px; color: var(--green-800);
}
.teto-box strong { font-family: var(--display); font-size: 24px; color: var(--green-700); }

.aviso-legal {
    display: flex; align-items: flex-start; gap: 11px;
    background: var(--page); border: 1px solid var(--line); border-radius: var(--r);
    padding: 15px 18px; font-size: 12.8px; line-height: 1.6; color: var(--text-3);
}
.aviso-legal svg { flex-shrink: 0; margin-top: 2px; }
.aviso-legal strong { color: var(--text-2); }

.section-aviso { padding: 0 0 40px; }
.aviso-home {
    display: flex; align-items: flex-start; gap: 14px;
    background: var(--page); border: 1px solid var(--line);
    border-left: 4px solid var(--warn); border-radius: var(--r-lg); padding: 22px 26px;
}
.aviso-home svg { flex-shrink: 0; margin-top: 2px; color: var(--warn); }
.aviso-home p { margin: 0; font-size: 13.8px; line-height: 1.68; color: var(--text-2); }

.aceite { display: flex; align-items: flex-start; gap: 10px; font-size: 12.6px; line-height: 1.55; color: var(--text-2); font-weight: 400; }
.aceite input { width: auto; margin: 2px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.aceite a { font-weight: 600; }

@media (max-width: 780px) {
    .sinais { grid-template-columns: 1fr; }
    .margem-topo { flex-direction: column; align-items: stretch; }
}

.tok-help { display: block; margin-top: 6px; font-size: 12px; font-weight: 400; color: var(--text-3); line-height: 1.55; }
.tok-help code { background: var(--page); padding: 1px 6px; border-radius: 4px; }

/* Linha de toggle com explicacao (admin) */
.switch-linha {
    display: flex; align-items: flex-start; gap: 12px;
    margin: 18px 0 0; padding: 16px 18px;
    background: var(--page); border: 1px solid var(--line); border-radius: var(--r);
    cursor: pointer; font-weight: 400;
}
.switch-linha input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); flex-shrink: 0; }
.switch-linha strong { display: block; font-size: 14px; color: var(--text); }
.switch-linha small { display: block; margin-top: 5px; font-size: 12.5px; color: var(--text-2); line-height: 1.6; }

/* ===========================================================
   FUNCIONAMENTO E CALIBRACAO (admin)
   =========================================================== */
.diag-lista { display: flex; flex-direction: column; gap: 10px; }
.diag {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line);
    background: var(--surface);
}
.diag-ico {
    width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
}
.diag strong { display: block; font-size: 14px; }
.diag p { margin: 4px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.55; max-width: 76ch; }
.diag .btn { margin-left: auto; flex-shrink: 0; }
.diag-alerta { border-color: #F0D9AE; background: var(--warn-bg); }
.diag-alerta .diag-ico { background: #F6E3C0; color: var(--warn); }
.diag-dica   { border-color: var(--brand-100); background: var(--brand-50); }
.diag-dica .diag-ico { background: #E5D8F1; color: var(--brand); }
.diag-ok     { border-color: var(--green-200); background: var(--green-50); }
.diag-ok .diag-ico { background: #C9E7D5; color: var(--green-700); }

/* Etapas do pipeline */
.etapas { display: flex; flex-direction: column; gap: 12px; }
.etapa { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); }
.etapa.demo { border-style: dashed; background: var(--page); }
.etapa-n {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand); color: #fff;
    font-family: var(--display); font-size: 13.5px; font-weight: 700;
}
.etapa.demo .etapa-n { background: var(--grey-500); }
.etapa-corpo { flex: 1; min-width: 0; }
.etapa-topo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.etapa-topo strong { font-size: 14.5px; }
.etapa-corpo p { margin: 6px 0 0; font-size: 13.2px; color: var(--text-2); }
.etapa-corpo small { display: block; margin-top: 5px; font-size: 12.3px; color: var(--text-3); line-height: 1.55; }

/* Calibracao */
.pesos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pesos-grid label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); }
.pesos-grid input {
    display: block; width: 100%; margin-top: 6px; padding: 11px 16px;
    border: 1px solid var(--line); border-radius: var(--pill);
    font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--text);
    text-align: center; background: var(--surface);
}
.pesos-grid input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(128,72,184,.14); }
.pesos-grid small { display: block; margin-top: 7px; font-size: 12px; font-weight: 400; color: var(--text-3); line-height: 1.5; }
.alterado { display: block; margin-top: 4px; color: var(--warn); font-style: normal; font-weight: 600; }

.pesos-acoes { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.pesos-acoes .muted { font-size: 12.5px; }

.sim-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 24px 0 12px; }
.sim-head h4 { font-family: var(--display); font-size: 15px; font-weight: 700; }
.sim-head .muted { font-size: 12.5px; }

/* Economia do cache */
.eco { text-align: center; padding: 8px 0 18px; }
.eco-num { font-family: var(--display); font-size: 46px; font-weight: 800; color: var(--green); line-height: 1; letter-spacing: -.03em; }
.eco p { margin: 6px 0 0; font-size: 13px; color: var(--text-3); }

@media (max-width: 980px) {
    .pesos-grid { grid-template-columns: 1fr 1fr; }
    .diag { flex-wrap: wrap; }
    .diag .btn { margin-left: 36px; }
}
@media (max-width: 620px) { .pesos-grid { grid-template-columns: 1fr; } }

.janela-aviso {
    background: var(--green-50); border: 1px solid var(--green-200);
    border-radius: var(--r-sm); padding: 12px 15px; margin-bottom: 18px;
    font-size: 12.8px; line-height: 1.6; color: var(--green-800);
}
.janela-aviso strong { display: block; margin-bottom: 3px; }
.janela-aviso code { background: #fff; padding: 1px 6px; border-radius: 4px; }

.endereco-troca {
    display: flex; align-items: center; justify-content: space-between; gap: 22px;
    flex-wrap: wrap; border-left: 4px solid var(--warn); background: var(--warn-bg);
}
.endereco-troca h3 { font-size: 15px; margin-bottom: 8px; }
.endereco-troca p { margin: 0 0 8px; font-size: 13.5px; color: var(--text-2); }
.endereco-troca code { background: #fff; padding: 2px 8px; border-radius: 5px; font-size: 12.5px; }
.endereco-troca small { font-size: 12.5px; color: var(--text-3); line-height: 1.55; display: block; max-width: 70ch; }

/* Primeiro acesso */
.primeiro-acesso {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    flex-wrap: wrap; padding: 20px 24px; border-radius: var(--r-lg);
    background: linear-gradient(90deg, var(--brand-300), var(--brand)); color: #fff;
    box-shadow: var(--shadow-md);
}
.primeiro-acesso strong { display: block; font-family: var(--display); font-size: 17px; margin-bottom: 6px; }
.primeiro-acesso p { margin: 0; font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,.9); max-width: 78ch; }
.pa-acoes { display: flex; gap: 10px; flex-wrap: wrap; }
.primeiro-acesso .btn-primary { background: #fff; color: var(--brand); }
.primeiro-acesso .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.primeiro-acesso .btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }

.cred-box {
    margin-top: 22px; padding: 16px 18px;
    background: var(--green-50); border: 1px solid var(--green-200); border-radius: var(--r);
}
.cred-box strong { display: block; font-size: 13.5px; color: var(--green-800); margin-bottom: 5px; }
.cred-box p { margin: 0 0 12px; font-size: 12.5px; color: var(--text-2); line-height: 1.55; }
.cred-box code { background: #fff; padding: 3px 9px; border-radius: 5px; font-size: 13px; }
.cred-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 12.5px; color: var(--text-3); }
.cred-box small { display: block; margin-top: 10px; font-size: 11.5px; color: var(--text-3); }
