/* ─── DVS Auto Refill — Dashboard (estilo clean, tons grafite) ─── */

:root {
    --background: #303030;
    --sidebar: #2a2a2a;
    --card: #3c3c3c;
    --card-inner: #363636;
    --popover: #454545;
    --accent: #444444;
    --foreground: #ededeb;
    --muted-foreground: #bcbbb7;
    --subtle-foreground: #8f8e8a;
    --primary: #ededeb;
    --primary-foreground: #232323;
    --border: #ffffff17;
    --input: #ffffff24;
    --ring: #ffffff52;

    /* Cores de status foscas (fundo) e versões legíveis para texto */
    --success: #7f8f72;
    --warning: #ab9464;
    --destructive: #a3685f;
    --info: #758086;
    --success-text: #a4b596;
    --warning-text: #cdb27c;
    --destructive-text: #cf8b80;
    --info-text: #a3afb5;
    --key-blue: #82aee6;

    --radius: 9px;
    --radius-card: 14px;
    --font: "Geist", "Geist Variable", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
    --font-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--background);
    color: var(--foreground);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.icon { flex-shrink: 0; display: inline-block; vertical-align: -0.15em; }

code, .mono { font-family: var(--font-mono); }

code {
    font-size: 12px;
    background: var(--accent);
    padding: 1px 5px;
    border-radius: 5px;
}

/* ─── Layout ─── */

/* O menu é fixo; o espaço dele fica no padding e o conteúdo centraliza no resto */
.layout { display: flex; min-height: 100vh; padding-left: 76px; }

/* ─── Sidebar ─── */

.sidebar {
    width: 76px;
    background: var(--sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 16px;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;
}

.sidebar-brand { margin-bottom: 24px; }

.brand-mark, .brand-box {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 0 0 1px var(--border);
    color: var(--foreground);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 0 10px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px 8px;
    border-radius: var(--radius);
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.nav-item:hover { background: var(--card); color: var(--foreground); }
.nav-item.active { background: var(--card); color: var(--foreground); box-shadow: 0 0 0 1px var(--border); }

.sidebar-footer { margin-top: auto; }
.version { font-size: 11px; color: var(--subtle-foreground); }

/* ─── Main Content ─── */

.main-content {
    flex: 1;
    min-width: 0; /* deixa a rolagem horizontal só dentro das tabelas */
    margin: 0 auto;
    width: 100%;
    padding: 32px 40px 24px;
    max-width: 1280px;
}

/* ─── Header ─── */

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 12px; }

.eyebrow {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--muted-foreground);
}

.top-header h1 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.55px;
    line-height: 1.2;
}

.header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

/* ─── Pills (status) ─── */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.6;
}

.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.pill-success { background: rgba(127, 143, 114, 0.18); color: var(--success-text); }
.pill-warning { background: rgba(171, 148, 100, 0.18); color: var(--warning-text); }
.pill-danger  { background: rgba(163, 104, 95, 0.2);   color: var(--destructive-text); }
.pill-info    { background: rgba(117, 128, 134, 0.22); color: var(--info-text); }
.pill-muted   { background: rgba(255, 255, 255, 0.06); color: var(--subtle-foreground); }

/* ─── Status Cards ─── */

.status-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.card {
    background: var(--card);
    border-radius: var(--radius-card);
    box-shadow: 0 0 0 1px var(--border);
    padding: 16px 18px;
}

.card-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--muted-foreground);
    margin-bottom: 6px;
}

.card-value {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.75px;
    line-height: 1.1;
}

.card-total { font-size: 18px; color: var(--subtle-foreground); font-weight: 500; letter-spacing: 0; }

/* ─── Sections ─── */

.section {
    background: var(--card);
    border-radius: var(--radius-card);
    box-shadow: 0 0 0 1px var(--border);
    margin-bottom: 24px;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.4px;
}

.section-header h2 .icon { color: var(--muted-foreground); }

.section-meta { font-size: 13px; color: var(--muted-foreground); text-align: right; }

/* ─── PC Grid ─── */

.pc-grid {
    /* Colunas de 300–380px: quantas couberem, o bloco todo centralizado.
       auto-fit descarta colunas vazias; a última linha segue as colunas de cima */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 380px));
    justify-content: center;
    gap: 12px;
    padding: 16px;
}

.pc-card {
    background: var(--card-inner);
    border-radius: 12px;
    box-shadow: 0 0 0 1px var(--border);
    padding: 16px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s;
}

.pc-card:hover { box-shadow: 0 0 0 1px var(--input); }
.pc-card.pc-alert { box-shadow: 0 0 0 1px rgba(171, 148, 100, 0.45); }
.pc-card.pc-offline { opacity: 0.65; }

.pc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.pc-name {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.3px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}

.pc-detail { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.detail-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--subtle-foreground);
}

.detail-value {
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-value.mono { font-size: 12px; color: var(--muted-foreground); }

.pc-detail-wide {
    grid-column: 1 / -1;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.pc-detail-wide .detail-value { white-space: normal; line-height: 1.45; }

.pc-warning {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    line-height: 1.45;
    background: rgba(171, 148, 100, 0.12);
    color: var(--warning-text);
}

.pc-warning .icon { margin-top: 2px; }

.pc-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: auto;
    padding-top: 14px;
}

.pc-details + .pc-actions, .pc-warning + .pc-actions { margin-top: 14px; }

.pc-pending {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--warning-text);
}

.pc-pending .icon { animation: spin 1.2s linear infinite; }

/* ─── Buttons ─── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 32px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }

.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: #ffffff; }

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--input);
    color: var(--foreground);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn-icon { width: 30px; height: 30px; padding: 0; }

.btn-danger { background: transparent; color: var(--subtle-foreground); }
.btn-danger:hover { background: rgba(163, 104, 95, 0.2); color: var(--destructive-text); }

/* ─── Tables ─── */

.table-wrapper { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }

thead th {
    text-align: left;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 500;
    color: var(--subtle-foreground);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

tbody td {
    padding: 10px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    white-space: nowrap;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255, 255, 255, 0.025); }

.row-used td { color: var(--subtle-foreground); }
.row-used .key-code { opacity: 0.6; }

.strong-cell { font-weight: 500; }
.date-cell { white-space: nowrap; font-size: 12px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.details-cell { font-size: 12px; color: var(--muted-foreground); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions-cell { width: 1%; text-align: right; }
.actions-cell form { display: inline; }

.key-code {
    font-size: 12px;
    background: transparent;
    padding: 0;
    color: var(--muted-foreground);
    white-space: nowrap;
}

/* Últimos 5 caracteres da key em azul, para identificar a key ativa */
.key-tail { color: var(--key-blue); font-weight: 600; }

.muted-mono { background: transparent; padding: 0; font-size: 12px; color: var(--muted-foreground); }

/* ─── Utility ─── */

.text-success { color: var(--success-text) !important; }
.text-warning { color: var(--warning-text) !important; }
.text-danger { color: var(--destructive-text) !important; }
.text-muted { color: var(--subtle-foreground); }

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 40px 20px;
    color: var(--muted-foreground);
}

.empty-state .icon { color: var(--subtle-foreground); margin-bottom: 4px; }

/* ─── Flash Messages ─── */

.flash-messages { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }

.flash {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    line-height: 1.45;
    animation: slideIn 0.2s ease;
}

.flash code { background: rgba(0, 0, 0, 0.18); }

.flash-success { background: rgba(127, 143, 114, 0.16); box-shadow: inset 0 0 0 1px rgba(127, 143, 114, 0.3); color: var(--success-text); }
.flash-error   { background: rgba(163, 104, 95, 0.16);  box-shadow: inset 0 0 0 1px rgba(163, 104, 95, 0.32); color: var(--destructive-text); }
.flash-warning { background: rgba(171, 148, 100, 0.14); box-shadow: inset 0 0 0 1px rgba(171, 148, 100, 0.3); color: var(--warning-text); }

.flash-close {
    display: inline-flex;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.6;
    padding: 2px;
    border-radius: 5px;
}

.flash-close:hover { opacity: 1; background: rgba(255, 255, 255, 0.06); }

/* ─── Footer ─── */

.footer {
    text-align: center;
    padding: 20px 0 8px;
    color: var(--subtle-foreground);
    font-size: 11px;
    letter-spacing: 0.3px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

/* ─── Animations ─── */

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── v3: sidebar (conta/sair) ─── */

a.brand-mark { text-decoration: none; }

.sidebar-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 0 10px;
}

.sidebar-footer form { width: 100%; }
.sidebar-footer .version { margin-top: 6px; }

.nav-button {
    width: 100%;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

/* ─── v3: cabeçalho do estúdio ─── */

.admin-banner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 9px 12px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    font-size: 13px;
    background: rgba(117, 128, 134, 0.16);
    box-shadow: inset 0 0 0 1px rgba(117, 128, 134, 0.3);
    color: var(--info-text);
}

.admin-banner > span { flex: 1; min-width: 200px; }

.pairing { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }

.pairing-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--subtle-foreground);
}

.pairing-code {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--key-blue);
    background: transparent;
    padding: 0;
}

.pairing-code-lg { font-size: 22px; letter-spacing: 2px; }

/* ─── v3: botões extras ─── */

.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn-block { width: 100%; height: 38px; }

.btn-danger-outline { color: var(--destructive-text); border-color: rgba(163, 104, 95, 0.4); }
.btn-danger-outline:hover { background: rgba(163, 104, 95, 0.16); }

.pc-actions .push-right { margin-left: auto; }
.actions-cell .btn + .btn { margin-left: 4px; }

.table-link { color: var(--foreground); text-decoration: none; }
.table-link:hover { color: var(--key-blue); }

/* ─── v3: formulários ─── */

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 0 24px;
    align-items: start;
}

.form-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted-foreground);
}

.field-hint { font-size: 12px; color: var(--subtle-foreground); line-height: 1.45; }

.field-check {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
}

.field-check input { margin-top: 3px; accent-color: var(--primary); }

.field-divider {
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--subtle-foreground);
}

input[type="text"], input[type="password"], input[type="number"] {
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius);
    border: 1px solid var(--input);
    background: rgba(0, 0, 0, 0.14);
    color: var(--foreground);
    font-family: inherit;
    font-size: 14px;
    width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08); }
input::placeholder { color: var(--subtle-foreground); }

.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }

.secret summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--muted-foreground);
    list-style: none;
}

.secret summary::-webkit-details-marker { display: none; }
.secret[open] summary { margin-bottom: 8px; }

.secret-value {
    display: block;
    padding: 8px 10px;
    font-size: 12px;
    word-break: break-all;
    user-select: all;
}

.user-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.user-info { display: flex; flex-direction: column; gap: 2px; }
.inline-form { display: flex; gap: 8px; flex: 1; min-width: 240px; max-width: 360px; }

/* ─── v3: login ─── */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.login-box {
    width: 100%;
    max-width: 380px;
    background: var(--card);
    border-radius: var(--radius-card);
    box-shadow: 0 0 0 1px var(--border);
    padding: 28px 24px 20px;
}

.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.login-brand h1 { font-size: 20px; font-weight: 600; letter-spacing: -0.5px; line-height: 1.2; }
.login-subtitle { font-size: 13px; color: var(--muted-foreground); margin-bottom: 18px; }
.login-form { padding: 0; }
.login-box .flash-messages { margin-bottom: 14px; }

.signup-box { max-width: 480px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

/* Armadilha para robôs no cadastro: fora da tela, invisível para pessoas */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.login-switch { margin-top: 16px; text-align: center; font-size: 13px; color: var(--muted-foreground); }
.login-switch a { color: var(--key-blue); text-decoration: none; }
.login-switch a:hover { text-decoration: underline; }

/* Cadastros pendentes no painel do admin */
.nav-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--warning);
    color: #232323;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
}

.nav-item { position: relative; }

.section-pending { box-shadow: 0 0 0 1px rgba(171, 148, 100, 0.45); }
.section-danger { box-shadow: 0 0 0 1px rgba(163, 104, 95, 0.45); }

.approve-form { display: inline-flex; align-items: center; gap: 6px; }
.approve-form input[type="number"] { width: 72px; height: 30px; padding: 0 8px; font-size: 13px; }
.approve-form .field-hint { white-space: nowrap; }

.contact-cell { font-size: 12px; color: var(--muted-foreground); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }

/* Cadastro enviado / contato do administrador */
.done-icon {
    width: 48px;
    height: 48px;
    margin: 4px auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(127, 143, 114, 0.18);
    color: var(--success-text);
}

.done-title { text-align: center; font-size: 20px; font-weight: 600; letter-spacing: -0.5px; }
.done-text { text-align: center; font-size: 13px; color: var(--muted-foreground); margin: 8px 0 18px; line-height: 1.55; }
.done-text strong { color: var(--foreground); font-weight: 500; }

.done-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: var(--radius);
    background: var(--card-inner);
    box-shadow: 0 0 0 1px var(--border);
    font-size: 13px;
}

.done-summary dt { color: var(--subtle-foreground); }
.done-summary dd { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }

.contact-intro { font-size: 13px; color: var(--muted-foreground); margin-bottom: 10px; }

.contact-box { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 18px; }

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--foreground);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px var(--input);
    transition: background 0.15s, box-shadow 0.15s;
    min-width: 0;
}

.contact-btn span { display: flex; flex-direction: column; min-width: 0; }
.contact-btn strong { font-size: 13px; font-weight: 600; }
.contact-btn small { font-size: 12px; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.contact-whatsapp .icon { color: #7fc79a; }
.contact-whatsapp:hover { background: rgba(127, 199, 154, 0.12); box-shadow: inset 0 0 0 1px rgba(127, 199, 154, 0.45); }
.contact-email .icon { color: var(--key-blue); }
.contact-email:hover { background: rgba(130, 174, 230, 0.12); box-shadow: inset 0 0 0 1px rgba(130, 174, 230, 0.45); }

.login-footer {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.3px;
    color: var(--subtle-foreground);
}

/* ─── v3: área de Download ─── */

.download-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0 24px;
    align-items: stretch;
}

.download-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
}

.download-file { display: flex; align-items: center; gap: 14px; }

.download-file-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(130, 174, 230, 0.12);
    color: var(--key-blue);
}

.download-file-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.download-file-info strong { font-size: 15px; font-weight: 500; }

.download-hash summary { font-size: 12px; }

.download-card .field-label { display: inline-flex; align-items: center; gap: 6px; }

.code-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.steps {
    list-style: none;
    counter-reset: step;
    padding: 8px 20px 12px;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 14px 0 14px 46px;
    border-bottom: 1px solid var(--border);
}

.steps li:last-child { border-bottom: none; }

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 13px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    background: var(--card-inner);
    box-shadow: 0 0 0 1px var(--input);
    color: var(--foreground);
}

.steps > li > strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.steps p strong { color: var(--foreground); font-weight: 500; }
.steps p { font-size: 13px; color: var(--muted-foreground); line-height: 1.55; }
.steps p + p { margin-top: 6px; }
.steps em { color: var(--foreground); font-style: normal; font-weight: 500; }
.steps code { font-size: 12px; color: var(--key-blue); background: var(--accent); }

.step-note {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    padding: 8px 10px;
    border-radius: var(--radius);
    background: rgba(171, 148, 100, 0.12);
    color: var(--warning-text) !important;
}

.step-note .icon { margin-top: 2px; }
.step-note em { color: var(--warning-text); }

.inline-link { color: var(--key-blue); text-decoration: none; }
.inline-link:hover { text-decoration: underline; }

.plain-list { list-style: none; padding: 12px 20px 16px; }
.plain-list li { position: relative; padding: 6px 0 6px 18px; font-size: 13px; color: var(--muted-foreground); }
.plain-list li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

.faq { padding: 8px 20px 14px; }
.faq details { border-bottom: 1px solid var(--border); padding: 10px 0; }
.faq details:last-child { border-bottom: none; }
.faq summary, .faq-wide summary { cursor: pointer; font-size: 13px; font-weight: 500; }
.faq p { margin-top: 6px; font-size: 13px; color: var(--muted-foreground); line-height: 1.55; }

.faq-wide { padding: 16px 20px; }
.faq-wide summary { display: inline-flex; align-items: center; gap: 8px; }
.faq-wide[open] summary { margin-bottom: 10px; }
.faq-wide .secret-value { margin: 8px 0; }

/* ─── Responsive ─── */

@media (max-width: 1100px) {
    .status-cards { grid-template-columns: repeat(2, 1fr); }
    /* Telas médias: cards encolhem até 280px para caber mais por linha */
    .pc-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .main-content { padding: 24px; }
}

@media (max-width: 768px) {
    /* Celular: o menu vira uma barra no topo (mantém Conta e Sair) */
    .layout { padding-left: 0; flex-direction: column; }
    .sidebar {
        position: sticky;
        top: 0;
        inset: auto;
        width: 100%;
        flex-direction: row;
        padding: 6px 10px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .sidebar-brand { margin: 0 6px 0 0; }
    .sidebar-nav, .sidebar-footer { flex-direction: row; width: auto; padding: 0; }
    .sidebar-footer { margin-left: auto; }
    .sidebar-footer form { width: auto; }
    .sidebar-footer .version { display: none; }
    .nav-item { padding: 6px 8px; font-size: 10px; }
    .pairing { align-items: flex-start; }
    .main-content { padding: 16px; }
    .top-header { flex-direction: column; align-items: flex-start; }
    .pc-grid { grid-template-columns: 1fr; padding: 12px; }
    .section-meta { display: none; }
}
