/* ============================================================
   App theme â€” dark console (Inter / slate-950 / emerald)
   Camada visual aplicada sobre style.css
   ============================================================ */

:root {
    --bg: #020617;
    --bg-soft: #050b18;
    --panel: rgba(255, 255, 255, 0.04);
    --panel-solid: #0b1220;
    --border: rgba(148, 163, 184, 0.14);
    --border-strong: rgba(148, 163, 184, 0.26);
    --text: #e7eef7;
    --muted: #94a3b8;
    --green: #10b981;
    --green-2: #22c55e;
    --teal: #2dd4bf;
    --red: #f43f5e;
    --yellow: #f59e0b;
    --blue: #38bdf8;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --radius: 18px;
}

html,
body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background:
        radial-gradient(900px 520px at 88% -12%, rgba(16, 185, 129, 0.16), transparent 62%),
        radial-gradient(820px 520px at -12% 18%, rgba(45, 212, 191, 0.10), transparent 62%),
        #020617 !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 78%);
    mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 78%);
    pointer-events: none;
    z-index: 0;
}

.app-shell,
.auth-shell {
    position: relative;
    z-index: 1;
}

a { color: inherit; }

.eyebrow {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #34d399;
}

.subtle { color: var(--muted); }

/* ---------- Shell / sidebar ---------- */

.app-shell {
    display: grid;
    grid-template-columns: 276px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 16px;
    border-right: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(20px);
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 26px;
    min-height: 0;
}

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

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #10b981, #22c55e);
    color: #04110c;
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.32);
    flex-shrink: 0;
}

.brand-text strong {
    display: block;
    font-size: 16px;
    letter-spacing: -0.01em;
    color: #f8fafc;
}

.brand-text small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: #c7d4e2;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transform: none;
}

.nav .nav-link.is-active {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0.05));
    border-color: rgba(16, 185, 129, 0.26);
    color: #ecfff9;
    box-shadow: inset 3px 0 0 #10b981;
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    color: #7f93a8;
    flex-shrink: 0;
}

.nav-icon svg { width: 20px; height: 20px; }
.nav .nav-link.is-active .nav-icon { color: #34d399; }

.sidebar-footer { padding-top: 6px; }

/* ---------- User pill ---------- */

.user-pill {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text);
}

.user-pill__avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
    color: #04110c;
    background: linear-gradient(135deg, #10b981, #22c55e);
    flex-shrink: 0;
}

.user-pill__meta { min-width: 0; flex: 1; }
.user-pill__meta strong {
    display: block;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}
.user-pill__meta small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}
.user-pill__chevron { margin-left: auto; color: var(--muted); flex-shrink: 0; }
.user-pill__dropdown {
    top: auto;
    bottom: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--panel-solid);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.user-pill__dropdown-item { font-size: 14px; padding: 11px 16px; }

/* ---------- Content / topbar ---------- */

.content {
    padding: 30px clamp(18px, 3vw, 42px) 56px;
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

.topbar h1 {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.04;
    letter-spacing: -0.025em;
    color: #f8fafc;
}

.topbar__subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

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

.topbar-status {
    font-size: 13px;
    color: var(--muted);
    max-width: 300px;
    text-align: right;
}

/* ---------- Buttons ---------- */

.btn {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, filter 0.16s ease;
}

.btn svg { width: 18px; height: 18px; }

.btn-primary {
    background: linear-gradient(135deg, #10b981, #22c55e);
    color: #04110c;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.28);
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
    color: var(--text);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--border-strong); }

.btn-danger {
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.3);
    color: #fecdd3;
}
.btn-danger:hover { background: rgba(244, 63, 94, 0.18); }

.btn-link { color: #5eead4; min-height: auto; padding: 4px 6px; background: transparent; border-color: transparent; }
.btn-link:hover { color: #99f6e4; background: rgba(255, 255, 255, 0.04); }

.btn-block { width: 100%; }

/* ---------- Cards / metrics ---------- */

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.card-header { padding: 22px 24px 0; }
.card-title { margin: 0; font-size: 18px; letter-spacing: -0.01em; color: #f1f5f9; }
.card-body { padding: 22px 24px; }
.card-footer { padding: 0 24px 22px; }

.metric {
    position: relative;
    overflow: hidden;
}
.metric::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(320px 130px at 100% 0%, rgba(16, 185, 129, 0.14), transparent 70%);
    pointer-events: none;
}
.metric.down::after { background: radial-gradient(320px 130px at 100% 0%, rgba(244, 63, 94, 0.16), transparent 70%); }
.metric.warn::after { background: radial-gradient(320px 130px at 100% 0%, rgba(245, 158, 11, 0.16), transparent 70%); }
.metric.info::after { background: radial-gradient(320px 130px at 100% 0%, rgba(56, 189, 248, 0.14), transparent 70%); }

.metric .hint { color: var(--muted); font-size: 13px; }
.metric .value {
    font-size: clamp(32px, 3vw, 40px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-top: 6px;
}

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table-wrap table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-wrap thead th,
.management-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 14px;
    background: rgba(5, 11, 24, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    color: #8ea3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: left;
}

.table-wrap td,
.management-table td {
    padding: 15px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    font-size: 14px;
    vertical-align: top;
}

.table-wrap tbody tr:hover td,
.management-table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }

.management-table td:nth-child(6) .subtle {
    display: block;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.domain-link { color: #5eead4; font-weight: 600; }
.domain-link:hover { color: #99f6e4; text-decoration: underline; }

/* ---------- Chips / badges ---------- */

.status-chip {
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
}
.badge-outline {
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ---------- Forms ---------- */

.field label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8ea3b8;
}

.field input,
.field select,
.field textarea {
    background-color: #070e1c !important;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px 14px;
    min-height: 48px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input::placeholder,
.field textarea::placeholder { color: #64748b; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

select option { background: #0b1220; color: var(--text); }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap svg {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #64748b;
    pointer-events: none;
}
.input-wrap input { padding-left: 42px !important; width: 100%; }
.input-wrap--password input { padding-right: 48px !important; }
.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #94a3b8;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 2;
    transition: background .2s ease, color .2s ease;
}
.password-toggle:hover,
.password-toggle:focus-visible {
    color: #e2e8f0;
    background: rgba(148, 163, 184, .14);
    outline: none;
}
.password-toggle svg {
    position: static;
    width: 20px;
    height: 20px;
    pointer-events: none;
}
.password-toggle .eye-closed { display: none; }
.password-toggle.is-visible .eye-open { display: none; }
.password-toggle.is-visible .eye-closed { display: block; }

/* ---------- DocumentaÃ§Ã£o ---------- */

.docs-hero {
    padding: 26px;
    border-radius: var(--radius);
    border: 1px solid rgba(16, 185, 129, .24);
    background:
        radial-gradient(36rem 18rem at 0% 0%, rgba(16, 185, 129, .16), transparent 65%),
        linear-gradient(135deg, rgba(15, 23, 42, .9), rgba(8, 15, 28, .9));
    box-shadow: var(--shadow);
}
.docs-hero h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; }
.docs-hero p { margin: 0; color: #b8c8d8; line-height: 1.75; max-width: 820px; }
.docs-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.docs-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .2);
    background: rgba(148, 163, 184, .07);
    color: #dbe7f3;
    font-size: 12px;
    font-weight: 700;
}
.docs-content .card-body { line-height: 1.8; }
.docs-content h3 { margin: 0 0 10px; font-size: 20px; color: #f8fafc; }
.docs-content h4 { margin: 22px 0 8px; font-size: 15px; color: #f1f5f9; }
.docs-content p { margin: 0 0 12px; color: #c7d4e2; }
.docs-content strong { color: #f8fafc; }
.doc-list { margin: 0 0 14px; padding-left: 20px; color: #c7d4e2; }
.doc-list li { margin: 6px 0; }
.doc-list li::marker { color: #34d399; }
.doc-steps { display: grid; gap: 10px; margin: 14px 0; }
.doc-step { display: flex; gap: 12px; align-items: flex-start; }
.doc-step__num {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(16, 185, 129, .14);
    border: 1px solid rgba(16, 185, 129, .22);
    color: #6ee7b7;
    font-size: 12px;
    font-weight: 800;
}
.doc-step__body { color: #c7d4e2; }
.doc-callout {
    margin: 14px 0;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(56, 189, 248, .2);
    background: rgba(56, 189, 248, .06);
    color: #cfe6f7;
}
.doc-callout strong { display: block; margin-bottom: 4px; color: #e0f2fe; }
.doc-callout.ok { border-color: rgba(16, 185, 129, .24); background: rgba(16, 185, 129, .07); color: #c9f5df; }
.doc-callout.warn { border-color: rgba(245, 158, 11, .24); background: rgba(245, 158, 11, .07); color: #fde8b7; }
.doc-callout.danger { border-color: rgba(239, 68, 68, .24); background: rgba(239, 68, 68, .07); color: #fecaca; }
.doc-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .9em;
    color: #bae6fd;
    background: rgba(2, 6, 23, .72);
    border: 1px solid rgba(56, 189, 248, .16);
    border-radius: 6px;
    padding: 2px 6px;
}
.doc-pre {
    margin: 12px 0;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, .16);
    background: rgba(2, 6, 23, .7);
    color: #bae6fd;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow: auto;
}
.docs-layout { align-items: start; }
.docs-nav a { font-size: 13px; }
@media print {
    .sidebar, .topbar__actions, .docs-nav, .flash { display: none !important; }
    .app-shell { display: block !important; }
    .content { padding: 0 !important; }
    .card, .docs-hero { box-shadow: none !important; break-inside: avoid; }
    body { background: #fff !important; color: #111 !important; }
    .docs-content p, .docs-content li, .doc-step__body { color: #222 !important; }
    .docs-content h3, .docs-content h4, .docs-content strong { color: #000 !important; }
}

/* ---------- Flash / empty / danger ---------- */

.flash {
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
}
.flash.success { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.26); color: #b7f7da; }
.flash.error { background: rgba(244, 63, 94, 0.1); border-color: rgba(244, 63, 94, 0.3); color: #fecdd3; }
.flash.info { background: rgba(56, 189, 248, 0.1); border-color: rgba(56, 189, 248, 0.26); color: #bae6fd; }

.empty {
    padding: 40px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.015);
}

.danger-box {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(244, 63, 94, 0.3);
    background: rgba(244, 63, 94, 0.08);
}

/* ---------- Toolbar / filters ---------- */

.toolbar-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    padding: 18px 22px;
}

.toolbar-search-form input[type="search"] {
    background: #070e1c;
    border: 1px solid var(--border);
    border-radius: 12px;
    min-height: 46px;
    padding: 11px 14px;
    color: var(--text);
}
.toolbar-search-form input[type="search"]:focus {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.filter-chip {
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.filter-chip:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.filter-chip.is-active {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.3);
    color: #b7f7da;
}

.refresh-badge {
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.18);
    background: rgba(56, 189, 248, 0.08);
    color: #bae6fd;
    font-size: 13px;
    padding: 9px 14px;
}

.toolbar-inline-form select,
.inline-interval-form select {
    background-color: #070e1c;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--text);
    min-height: 42px;
    padding: 8px 12px;
}

.toolbar-label { font-size: 13px; color: #cbd5e1; font-weight: 600; }

/* ---------- Pagination ---------- */

.page-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 12px;
}
.page-link.is-active { background: rgba(16, 185, 129, 0.16); border-color: rgba(16, 185, 129, 0.3); color: #b7f7da; }
.pagination-summary { color: var(--muted); font-size: 13px; }

/* ---------- Modals ---------- */

.modal__dialog {
    background: #0a1322;
    border: 1px solid var(--border-strong);
    border-radius: 22px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}
.modal__header h3 { font-size: 22px; letter-spacing: -0.02em; }

/* ---------- Auth ---------- */

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 16px;
}

.auth-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(700px 400px at 80% 0%, rgba(16, 185, 129, 0.16), transparent 60%),
        radial-gradient(700px 400px at 10% 20%, rgba(45, 212, 191, 0.10), transparent 60%);
    z-index: 0;
}

.auth-shell {
    display: block;
    width: min(1080px, 100%);
}

.auth-card {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    border-radius: 26px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
    overflow: hidden;
}

.auth-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(28px, 4vw, 48px);
    border-right: 1px solid var(--border);
    background: radial-gradient(620px 320px at 0% 0%, rgba(16, 185, 129, 0.16), transparent 62%);
}

.brand-auth { margin: 0 0 10px; }

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.28);
    background: rgba(16, 185, 129, 0.1);
    color: #a7f3d0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}

.auth-hero h1 {
    margin: 4px 0 0;
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: #f8fafc;
}
.auth-hero h1 span { color: #34d399; }

.auth-hero p {
    margin: 0;
    color: #a7b8c9;
    line-height: 1.7;
    font-size: 15px;
    max-width: 50ch;
}

.auth-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}

.auth-feature {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}
.auth-feature strong { display: block; font-size: 14px; color: #e2e8f0; }
.auth-feature span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }

.auth-pane {
    padding: clamp(28px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-pane h2 {
    margin: 4px 0 6px;
    font-size: clamp(26px, 2.6vw, 34px);
    letter-spacing: -0.025em;
    color: #f8fafc;
}

.auth-pane .subtle { margin: 0 0 18px; }

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.auth-note {
    margin: 22px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 1500px) {
    .management-table th:nth-child(3),
    .management-table td:nth-child(3),
    .management-table th:nth-child(7),
    .management-table td:nth-child(7),
    .management-table th:nth-child(8),
    .management-table td:nth-child(8) { display: none; }
}

@media (max-width: 1250px) {
    .management-table th:nth-child(5),
    .management-table td:nth-child(5) { display: none; }
}

@media (max-width: 1100px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar {
        position: sticky;
        top: 0;
        z-index: 40;
        height: auto;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas: "brand user" "nav nav";
        align-items: center;
        gap: 10px 12px;
        padding: 10px 12px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
        overflow: visible;
    }
    .sidebar-inner { display: contents; }
    .brand { grid-area: brand; margin: 0; flex-shrink: 0; }
    .brand-text small { display: none; }
    .nav { grid-area: nav; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; overflow: visible; }
    .nav .nav-link {
        flex-direction: column;
        gap: 4px;
        padding: 9px 6px;
        font-size: 12px;
        line-height: 1.15;
        justify-content: center;
        text-align: center;
        white-space: normal;
    }
    .nav .nav-link.is-active { box-shadow: none; }
    .nav-icon, .nav-icon svg { width: 18px; height: 18px; }
    .sidebar-footer { grid-area: user; padding: 0; }
    .user-pill { width: auto; padding: 6px; }
    .user-pill__meta { display: none; }
    .user-pill__chevron { display: none; }
    .user-pill__dropdown { top: calc(100% + 8px); bottom: auto; right: 0; }
    .content { padding: 22px 18px 44px; min-width: 0; }
    .topbar { flex-direction: column; align-items: flex-start; gap: 14px; }
    .topbar__actions { width: 100%; }
    .topbar__actions .btn { flex: 1 1 auto; }
    .metrics-five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .analytics-layout { grid-template-columns: 1fr; }
    .grid-cols-4, .grid-cols-2, .form-grid { grid-template-columns: 1fr; }
    .toolbar-card__left, .toolbar-card__right { width: 100%; min-width: 0; }
    .toolbar-card__right { flex-direction: column; align-items: stretch; gap: 10px; }
    .toolbar-actions-cluster { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .toolbar-actions-cluster .btn { width: 100%; }
    .toolbar-inline-form { width: 100%; justify-content: space-between; }
    .toolbar-search-form { width: 100%; flex-direction: column; }
    .toolbar-search-form input[type="search"] { width: 100%; }
}

@media (max-width: 920px) {
    .management-table th:nth-child(3),
    .management-table td:nth-child(3),
    .management-table th:nth-child(5),
    .management-table td:nth-child(5),
    .management-table th:nth-child(6),
    .management-table td:nth-child(6),
    .management-table th:nth-child(7),
    .management-table td:nth-child(7),
    .management-table th:nth-child(8),
    .management-table td:nth-child(8) { display: none; }

    .auth-card { grid-template-columns: 1fr; }
    .auth-hero { border-right: 0; border-bottom: 1px solid var(--border); }
}

@media (max-width: 640px) {
    html { font-size: 17px; }

    .content { padding: 16px 14px 40px; }
    .topbar h1 { font-size: 2rem; }
    .topbar__subtitle { font-size: 15px; }

    .card-header { padding: 18px 18px 0; }
    .card-body { padding: 18px; }
    .card-footer { padding: 0 18px 18px; }

    .btn { min-height: 48px; font-size: 15px; padding: 0 16px; }
    .filter-chip { font-size: 14px; padding: 10px 14px; }

    .metrics-five { grid-template-columns: 1fr; }
    .metric .value { font-size: 2.6rem; }

    .table-wrap td,
    .management-table td { font-size: 15px; padding: 14px 12px; }
    .table-wrap thead th,
    .management-table thead th { font-size: 10px; padding: 10px 12px; }

    .auth-shell { width: 100%; }
    .auth-hero { padding: 24px 20px; }
    .auth-pane { padding: 24px 20px; }
    .auth-hero h1 { font-size: 2rem; }
    .auth-feature-grid { grid-template-columns: 1fr 1fr; }

    .field input, .field select, .field textarea { font-size: 16px; }
    .topbar__actions { flex-direction: column; align-items: stretch; }
    .toolbar-card { padding: 16px; }
    .toolbar-search-form input[type="search"] { width: 100%; }
    .toolbar-card__right { flex-wrap: wrap; gap: 12px; }
}

.hint-panel {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.10), rgba(56, 189, 248, 0.03));
    color: #dbeafe;
    font-size: 14px;
    line-height: 1.6;
}

.hint-panel strong {
    display: block;
    margin-bottom: 6px;
    color: #f0f9ff;
    font-size: 14px;
}

.hint-panel p { margin: 0 0 8px; }
.hint-panel ul { margin: 0 0 8px; padding-left: 20px; }
.hint-panel li { margin: 2px 0; }
.hint-panel b { color: #ffffff; }

@media (max-width: 640px) {
    .hint-panel { font-size: 15px; padding: 16px; }
}

.settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 18px;
    align-items: start;
}

.settings-content {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.settings-form {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.settings-card {
    scroll-margin-top: 24px;
}

.settings-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.settings-fields .field.full {
    grid-column: 1 / -1;
}

.settings-nav {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.settings-nav__title {
    margin: 2px 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.settings-nav a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    color: #c7d4e2;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.settings-nav a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.settings-nav a.is-active {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.28);
    color: #b7f7da;
}

.settings-nav__actions {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

@media (max-width: 1100px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-nav {
        position: static;
        order: -1;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        padding: 10px;
        overflow-x: auto;
    }

    .settings-nav__title {
        display: none;
    }

    .settings-nav a {
        white-space: nowrap;
    }

    .settings-nav__actions {
        display: flex;
        margin: 0 0 0 auto;
        padding: 0 0 0 10px;
        border-top: 0;
        border-left: 1px solid var(--border);
    }

    .settings-nav__actions .btn {
        min-height: 38px;
        padding: 0 12px;
    }
}

@media (max-width: 640px) {
    .settings-fields {
        grid-template-columns: 1fr;
    }

    .settings-nav__actions .btn-secondary {
        display: none;
    }

    .settings-nav a {
        font-size: 13px;
        padding: 8px 10px;
    }
}

.cron-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.cron-stat {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.cron-stat span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.cron-stat strong {
    display: block;
    margin: 4px 0;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.cron-stat.cron-ok {
    border-color: rgba(16, 185, 129, 0.28);
    background: rgba(16, 185, 129, 0.08);
}

.cron-stat.cron-warn {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.08);
}

.cron-section {
    margin-top: 18px;
}

.cron-section h3 {
    margin: 0 0 6px;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.cron-code-wrap {
    position: relative;
    margin: 8px 0 10px;
}

.cron-code {
    margin: 0;
    padding: 14px 16px;
    padding-right: 84px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #070e1c;
    color: #dbeafe;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-x: auto;
}

.cron-copy {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.cron-copy:hover {
    background: rgba(255, 255, 255, 0.09);
}

.cron-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.cron-list li { margin: 4px 0; }
.cron-list strong { color: #e2e8f0; }

.cron-section code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
    color: #bae6fd;
}

.perf-table { font-size: 13px; }
.perf-table th { font-size: 10px; }

@media (max-width: 640px) {
    .cron-grid { grid-template-columns: 1fr; }
    .cron-code { font-size: 12px; }
}

.company-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.company-switcher__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.company-switcher select {
    background-color: #070e1c;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    min-height: 38px;
    padding: 6px 10px;
    max-width: 240px;
}

.company-badge {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 1100px) {
    .company-switcher { width: 100%; }
    .company-switcher select { flex: 1; max-width: none; }
}

@media (max-width: 920px) {
    .companies-table th:nth-child(2),
    .companies-table td:nth-child(2),
    .companies-table th:nth-child(4),
    .companies-table td:nth-child(4),
    .companies-table th:nth-child(5),
    .companies-table td:nth-child(5) { display: none; }
}

.companies-table td { vertical-align: top; }

/* ---------- Itens por pÃ¡gina / coluna SSL ---------- */

.per-page-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}
.per-page-form label { margin: 0; color: var(--muted); font-weight: 600; }
.per-page-form select {
    min-height: 38px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background-color: rgba(2, 6, 23, .5);
    color: var(--text);
}
.col-ssl { width: 108px; max-width: 118px; }
.col-ssl .subtle {
    display: block;
    max-width: 112px;
    line-height: 1.35;
    white-space: normal;
}

/* ---------- Tema claro / escuro ---------- */

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .04);
    color: #cbd5e1;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.theme-toggle:hover { background: rgba(255, 255, 255, .08); color: #fff; transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .theme-icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .theme-icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .theme-icon-moon { display: block; }

html[data-theme="light"] {
    color-scheme: light;
    background: #eef3f8;
    --bg: #eef3f8;
    --panel: #ffffff;
    --panel-solid: #ffffff;
    --border: #dbe3ee;
    --text: #0f172a;
    --muted: #64748b;
    --shadow: 0 16px 40px rgba(15, 23, 42, .08);
}
html[data-theme="light"] body {
    background:
        radial-gradient(40rem 24rem at 100% 0%, rgba(16, 185, 129, .10), transparent 60%),
        linear-gradient(160deg, #f8fafc, #eef3f8 45%, #e9eef5) !important;
    color: #0f172a;
}
html[data-theme="light"] .sidebar { background: rgba(248, 250, 252, .94); border-color: #dbe3ee; }
html[data-theme="light"] .brand-text strong, html[data-theme="light"] .topbar h1,
html[data-theme="light"] .card-title, html[data-theme="light"] .settings-nav__title,
html[data-theme="light"] .value, html[data-theme="light"] .field label,
html[data-theme="light"] .toolbar-label { color: #0f172a; }
html[data-theme="light"] .brand small, html[data-theme="light"] .nav a,
html[data-theme="light"] .nav-icon, html[data-theme="light"] .user-pill__meta small,
html[data-theme="light"] .topbar__subtitle, html[data-theme="light"] .subtle,
html[data-theme="light"] .hint, html[data-theme="light"] .pagination-summary,
html[data-theme="light"] .chart-labels__item span, html[data-theme="light"] .mini-bars__item span { color: #64748b; }
html[data-theme="light"] .nav a { color: #334155; background: rgba(15, 23, 42, .02); }
html[data-theme="light"] .nav a:hover { background: #e2e8f0; border-color: #cbd5e1; }
html[data-theme="light"] .nav a.is-active { background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .28); color: #047857; }
html[data-theme="light"] .card, html[data-theme="light"] .toolbar-card,
html[data-theme="light"] .settings-nav, html[data-theme="light"] .hint-panel,
html[data-theme="light"] .modal__dialog { background: #fff; border-color: #dbe3ee; }
html[data-theme="light"] .table-wrap td, html[data-theme="light"] .management-table td { color: #0f172a; border-color: #e2e8f0; }
html[data-theme="light"] .table-wrap thead th, html[data-theme="light"] .management-table thead th { background: #f8fafc; color: #64748b; border-color: #e2e8f0; }
html[data-theme="light"] .table-wrap tbody tr:hover td, html[data-theme="light"] .management-table tbody tr:hover td { background: #f8fafc; }
html[data-theme="light"] .domain-link { color: #0f766e; }
html[data-theme="light"] .domain-link:hover { color: #065f46; }
html[data-theme="light"] .btn-secondary { background: #f1f5f9; border-color: #cbd5e1; color: #0f172a; }
html[data-theme="light"] .btn-secondary:hover { background: #e2e8f0; }
html[data-theme="light"] .btn-link { color: #0f766e; }
html[data-theme="light"] .company-switcher select, html[data-theme="light"] .toolbar-search-form input,
html[data-theme="light"] .toolbar-search-form select, html[data-theme="light"] .toolbar-inline-form select,
html[data-theme="light"] .per-page-form select, html[data-theme="light"] .field input,
html[data-theme="light"] .field select, html[data-theme="light"] .field textarea {
    background-color: #fff !important; border-color: #cbd5e1 !important; color: #0f172a !important;
}
html[data-theme="light"] select option { background: #fff; color: #0f172a; }
html[data-theme="light"] input::placeholder, html[data-theme="light"] textarea::placeholder { color: #94a3b8; }
html[data-theme="light"] .company-badge, html[data-theme="light"] .badge-outline,
html[data-theme="light"] .filter-chip { background: #f8fafc; border-color: #cbd5e1; color: #475569; }
html[data-theme="light"] .filter-chip.is-active { background: #d1fae5; border-color: #6ee7b7; color: #047857; }
html[data-theme="light"] .user-pill { background: #fff; border-color: #dbe3ee; }
html[data-theme="light"] .user-pill__dropdown { background: #fff; border-color: #dbe3ee; }
html[data-theme="light"] .user-pill__dropdown-item { color: #0f172a; }
html[data-theme="light"] .user-pill__dropdown-item:hover { background: #f1f5f9; }
html[data-theme="light"] .status-chip.ok { background: #d1fae5; border-color: #6ee7b7; color: #047857; }
html[data-theme="light"] .status-chip.warn { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
html[data-theme="light"] .status-chip.down { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
html[data-theme="light"] .status-chip.muted { background: #f1f5f9; border-color: #cbd5e1; color: #475569; }
html[data-theme="light"] .line-chart { background: #f8fafc; }
html[data-theme="light"] .docs-hero { background: linear-gradient(135deg, #ffffff, #f0fdf4); border-color: #b7e4cd; }
html[data-theme="light"] .docs-hero p, html[data-theme="light"] .docs-content p,
html[data-theme="light"] .doc-list, html[data-theme="light"] .doc-step__body { color: #334155; }
html[data-theme="light"] .doc-code { background: #f1f5f9; border-color: #cbd5e1; color: #0f766e; }
html[data-theme="light"] .doc-pre { background: #f8fafc; border-color: #cbd5e1; color: #0f172a; }
html[data-theme="light"] .doc-callout { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
html[data-theme="light"] .doc-callout.ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
html[data-theme="light"] .doc-callout.warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
html[data-theme="light"] .doc-callout.danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
html[data-theme="light"] .auth-page { background: linear-gradient(160deg, #f8fafc, #eef3f8); color: #0f172a; }
html[data-theme="light"] .auth-card, html[data-theme="light"] .auth-pane { background: #fff; border-color: #dbe3ee; }
html[data-theme="light"] .auth-hero { background: linear-gradient(160deg, #ecfdf5, #eff6ff); }
html[data-theme="light"] .auth-hero h1,
html[data-theme="light"] .auth-pane h2 { color: #0f172a; }
html[data-theme="light"] .auth-hero h1 span { color: #047857; }
html[data-theme="light"] .auth-feature strong { color: #0f172a; }
html[data-theme="light"] .auth-bg {
    background:
        radial-gradient(700px 400px at 80% 0%, rgba(16, 185, 129, 0.12), transparent 60%),
        radial-gradient(700px 400px at 10% 20%, rgba(45, 212, 191, 0.08), transparent 60%);
}
html[data-theme="light"] .auth-hero p, html[data-theme="light"] .auth-feature span,
html[data-theme="light"] .auth-note, html[data-theme="light"] .auth-pane .subtle { color: #475569; }
html[data-theme="light"] .auth-feature { background: #fff; border-color: #dbe3ee; }
html[data-theme="light"] .auth-badge { background: #fff; border-color: #dbe3ee; color: #047857; }
body.auth-page .theme-toggle { position: fixed; top: 18px; right: 18px; z-index: 10; background: #fff; color: #334155; border-color: #cbd5e1; }
html[data-theme="light"] body.auth-page .theme-toggle { background: #f1f5f9; }

html[data-theme="light"] .inline-interval-form select { background-color:#fff !important; color:#0f172a !important; border-color:#cbd5e1 !important; }
html[data-theme="light"] .refresh-badge { background:#e0f2fe; border-color:#bae6fd; color:#075985; }
html[data-theme="light"] .flash.success { background:#ecfdf5; border-color:#a7f3d0; color:#047857; }
html[data-theme="light"] .flash.error { background:#fef2f2; border-color:#fecaca; color:#b91c1c; }
html[data-theme="light"] .flash.info { background:#eff6ff; border-color:#bfdbfe; color:#1d4ed8; }
html[data-theme="light"] .modal__header h3,
html[data-theme="light"] .modal__dialog h3 { color:#0f172a; }
html[data-theme="light"] .danger-box { background:#fef2f2; border-color:#fecaca; color:#991b1b; }
html[data-theme="light"] .cron-code,
html[data-theme="light"] .cron-code-wrap pre { background:#f8fafc; color:#0f172a; border-color:#cbd5e1; }

/* Checkboxes/switches inside forms */
.field input[type="checkbox"],
.field input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    padding: 0 !important;
    margin: 0;
    flex: 0 0 auto;
    border: 1px solid rgba(148, 163, 184, .45) !important;
    border-radius: 5px;
    background: transparent !important;
    accent-color: #10b981;
    box-shadow: none !important;
}
.field .switch {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
}
.field .switch input[type="checkbox"] {
    margin-top: 1px;
}
html[data-theme="light"] .field input[type="checkbox"],
html[data-theme="light"] .field input[type="radio"] {
    border-color: #94a3b8 !important;
    background: #fff !important;
}

.field .switch {
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
    font-weight: 600;
    color: #cbd5e1;
}
html[data-theme="light"] .field .switch { color: #334155; }

/* ---------- Ajustes de UI (ações, selects, badges) ---------- */

/* Seta do select afastada da borda direita */
select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    padding-right: 40px !important;
}
html[data-theme="light"] select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23475569' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

/* Botões das tabelas: mesmo padrão e mais finos */
.actions--compact {
    gap: 8px;
}
.actions--compact .btn {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
    border-radius: 8px;
    gap: 6px;
}
.btn-info {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.32);
    color: #bae6fd;
}
.btn-info:hover { background: rgba(56, 189, 248, 0.2); }
.btn-warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fde68a;
}
.btn-warning:hover { background: rgba(245, 158, 11, 0.2); }
html[data-theme="light"] .btn-info { background: #e0f2fe; border-color: #7dd3fc; color: #075985; }
html[data-theme="light"] .btn-warning { background: #fef3c7; border-color: #fcd34d; color: #92400e; }

/* Badges do cabeçalho alinhados ao centro */
.header-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Coluna SSL: mostrar o texto completo quebrando linha */
.management-table td.col-ssl .subtle {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ---------- Notificacoes inline (header) ---------- */

.notif-menu {
    position: relative;
}

.notif-button {
    position: relative;
    overflow: visible;
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #f43f5e;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 17px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(244, 63, 94, 0.4);
}

.notif-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(340px, 86vw);
    max-height: 420px;
    overflow: auto;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid var(--border-strong, var(--border));
    background: #0b1220;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.55);
    z-index: 80;
}

.notif-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 8px 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}

.notif-panel__head strong {
    font-size: 13px;
    color: #f1f5f9;
}

.notif-panel__head a {
    font-size: 12px;
    font-weight: 700;
    color: #5eead4;
}

.notif-incidents {
    display: block;
    margin: 2px 4px 6px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(244, 63, 94, 0.14);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fecdd3;
    font-size: 12px;
    font-weight: 700;
}

.notif-empty {
    padding: 14px 10px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

.notif-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 9px 8px;
    border-radius: 10px;
    color: var(--text);
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notif-item__body {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.notif-item__body strong {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.3;
    color: #e2e8f0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-item__body small {
    font-size: 11px;
    color: var(--muted);
}

.notif-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 50%;
    background: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.14);
}

.notif-dot.ok { background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15); }
.notif-dot.down { background: #f43f5e; box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.16); }

html[data-theme="light"] .notif-panel { background: #fff; border-color: #cbd5e1; }
html[data-theme="light"] .notif-panel__head strong { color: #0f172a; }
html[data-theme="light"] .notif-item__body strong { color: #0f172a; }
html[data-theme="light"] .notif-item:hover { background: #f1f5f9; }
html[data-theme="light"] .notif-incidents { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
