:root {
    /* Bootstrap 5.3 dark mode overrides */
    --bs-body-bg: #000;
    --bs-body-color: #fafafa;
    --bs-tertiary-bg: #161616;

    /* Cores base */
    --hs-bg: #000;
    --hs-surface: #161616;
    --hs-surface-hover: #1f1f1f;
    --hs-text: #fafafa;
    --hs-text-secondary: #a0a0a0;
    --hs-text-muted: #666666;

    /* Bordas */
    --hs-border-color: #2a2a2a;
    --hs-border-hover: #3a3a3a;

    /* Cores de severidade */
    --hs-critical: #dc2626;
    --hs-high: #ef4444;
    --hs-medium: #f97316;
    --hs-low: #eab308;
    --hs-info: #6b7280;

    /* Cores de ação */
    --hs-success: #10b981;
    --hs-warning: #f59e0b;
    --hs-danger: #dc3545;
    --hs-blue: #3b82f6;
    --hs-orange: #ff8000;

    /* Forms */
    --hs-form-bg: #181818e6;
    --hs-form-disabled-bg: #2c2c2c;
    --hs-form-disabled-text: #a1a1a1;
    --hs-form-border: #00416f;

    /* Border radius - meio termo */
    --hs-radius-sm: 4px;
    --hs-radius-md: 2px;
    --hs-radius-lg: 8px;

    /* Transições */
    --hs-transition: 0.15s ease;
}

body {
    background: var(--hs-bg);
    color: var(--hs-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.03em;
}

/* Typography Scale — escala 11/12/14/16/20/24 sobrepondo defaults Bootstrap */
:root {
    --bs-body-font-size: 14px;
}

h1, .h1 { font-size: 24px; font-weight: 600; }
h2, .h2 { font-size: 20px; font-weight: 600; }
h3, .h3 { font-size: 20px; font-weight: 500; }
h4, .h4 { font-size: 16px; font-weight: 600; }
h5, .h5 { font-size: 16px; font-weight: 500; }
h6, .h6 { font-size: 14px; font-weight: 600; }

.small, small       { font-size: 12px; }
.fs-xs              { font-size: 11px; }

.btn                { font-size: 14px; }
.btn-sm             { font-size: 12px; }
.btn-lg             { font-size: 16px; }

.form-control,
.form-select        { font-size: 14px; }
.form-control-sm,
.form-select-sm     { font-size: 12px; }
.form-control-lg,
.form-select-lg     { font-size: 16px; }

.badge              { font-size: 11px; font-weight: 500; }
.dropdown-menu      { --bs-dropdown-font-size: 14px; }

/* Utility classes — usar em vez de inline font-size */
.fs-xs              { font-size: 11px !important; }
.fs-sm              { font-size: 12px !important; }
.fs-md              { font-size: 13px !important; }
.fs-base            { font-size: 14px !important; }
.fs-lg              { font-size: 16px !important; }
.fs-xl              { font-size: 20px !important; }
.fs-2xl             { font-size: 24px !important; }
.fs-3xl             { font-size: 32px !important; }
.fs-4xl             { font-size: 48px !important; }
.fs-5xl             { font-size: 64px !important; }

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    color: var(--hs-text);
    line-height: 1.3;
    margin-bottom: 0.5em;
    letter-spacing: 0.03em;
}

/* Cap weight at 600 for Inter — evita negrito 700+ que fica pesado */
b, strong, .fw-bold, .fw-bolder {
    font-weight: 600 !important;
}

h1 {
    font-size: 28px;
    letter-spacing: 0.03em;
}

h2 {
    font-size: 22px;
    letter-spacing: 0.03em;
}

h3 {
    font-size: 18px;
    letter-spacing: 0.03em;
}

h4 {
    font-size: 16px;
}

h5 {
    font-size: 15px;
}

h6 {
    font-size: 15px;
    color: var(--hs-text-secondary);
}

.container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 15px 20px;
}

/* Responsividade do container */
@media (max-width: 1499px) {
    .container {
        max-width: 1400px;
    }
}

@media (max-width: 1399px) {
    .container {
        max-width: 1200px;
    }
}

@media (max-width: 1199px) {
    .container {
        max-width: 100%;
        padding: 20px 20px;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 16px 16px;
    }

    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 17px; }
}

/* ===== MOBILE NAVBAR ===== */
.mobile-nav-close { display: none; }

@media (max-width: 1199px) {
    .navbar-toggler:focus { box-shadow: none; }

    .navbar-collapse {
        border-top: 1px solid #1e1e1e;
        padding: 8px 0 12px;
    }

    .navbar-collapse .navbar-nav .nav-link {
        padding: 10px 8px !important;
        font-size: 14px;
    }

    /* Items de conta em coluna */
    .navbar-collapse > ul:last-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px;
        padding-top: 8px;
        border-top: 1px solid #1e1e1e;
        margin-top: 4px;
    }

    .navbar-collapse > ul:last-child .btn {
        background: none !important;
        border: none !important;
        color: #fff !important;
        padding: 8px 0 !important;
        font-size: 15px;
        box-shadow: none !important;
    }

    .navbar-collapse > ul:last-child .nav-item {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

a {
    text-decoration: none;
    transition: color var(--hs-transition);
}

a:hover {
    color: #fff;
}

.link-light:hover {
    color: #007FFF !important;
}

/* Backgrounds */
.bg-hackersec {
    background-color: var(--hs-surface) !important;
}

.bg-orange {
    background-color: var(--hs-orange) !important;
}

.bg-critical {
    background-color: var(--hs-critical) !important;
}

.bg-info {
    background-color: var(--hs-blue) !important;
}

/* Tabelas */
.table {
    --bs-table-bg: transparent !important;
    border-color: var(--hs-border-color) !important;
}

.table-spacex th,
.table-spacex td {
    padding: 1.2rem;
}

/* Tabela de vulnerabilidades — leitura leve: respiro + hierarquia visual */
.table-vulns > thead > tr > th {
    color: var(--hs-text-secondary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.55rem 0.75rem;
}
.table-vulns > tbody > tr > td {
    padding-top: 0.8rem !important;
    padding-bottom: 0.8rem !important;
}

/* Tabela ocupa a largura total do card (compensa o padding de 1rem do card-body) */
.table-vulns-wrap {
    margin-left: -1rem;
    margin-right: -1rem;
}
/* Controles do DataTables (busca, contagem, paginação) mantêm o respiro lateral */
.table-vulns-wrap .dt-top,
.table-vulns-wrap .dt-bottom {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
/* Primeira/última coluna visível recuperam o respiro lateral.
   A coluna 0 (ID) é REMOVIDA do DOM pelo DataTables, então o 1º visível é :first-child */
.table-vulns > thead > tr > th:first-child,
.table-vulns > tbody > tr > td:first-child {
    padding-left: 1.5rem;
}
.table-vulns > thead > tr > th:last-child,
.table-vulns > tbody > tr > td:last-child {
    padding-right: 1.5rem;
}

/* Severidade — soft badge tonal. Só o Crítico fica sólido pra realmente saltar. */
.sev-badge {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid transparent;
    border-radius: var(--hs-radius-sm);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.4;
}
.sev-0 { background: rgba(107,114,128,0.18); color: #b4b8bf; }
.sev-1 { background: rgba(234,179,8,0.16);   color: #eab308; }
.sev-2 { background: rgba(249,115,22,0.18);  color: #fb923c; }
.sev-3 { background: rgba(239,68,68,0.16);   color: #f87171; }
.sev-4 { background: rgba(91,16,16,0.85);     color: #f08a8a; border-color: rgba(122,32,32,0.90); }

/* Status — pílula com ponto, visualmente distinta da severidade */

/* Forms - agora com border-radius suave */
.form-control {
    border-radius: var(--hs-radius-sm);
    font-size: 15px;
    background-color: var(--hs-form-bg) !important;
    color: var(--hs-text) !important;
    border-color: var(--hs-form-border);
    transition: border-color var(--hs-transition), box-shadow var(--hs-transition);
}

.form-control:focus {
    border-color: var(--hs-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* floating-label em textarea: o ::after do Bootstrap usa --bs-body-bg (#000) e cria caixa preta atras do label ao digitar; alinhar a cor do proprio campo */
.form-floating > textarea.form-control:focus ~ label::after,
.form-floating > textarea.form-control:not(:placeholder-shown) ~ label::after {
    background-color: var(--hs-form-bg) !important;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: var(--hs-form-disabled-bg) !important;
    color: var(--hs-form-disabled-text) !important;
    border-color: #474747;
    cursor: not-allowed;
}

.form-select {
    border-radius: var(--hs-radius-sm);
}

/* Botões - border-radius médio */
.btn {
    letter-spacing: 0.03em;
    padding-left: 1.2em;
    padding-right: 1.2em;
    border-radius: var(--hs-radius-md) !important;
    transition: all var(--hs-transition);
}

.btn-outline-light {
    color: #FFF !important;
    border-color: rgba(255,255,255,0.70) !important;
    text-decoration: none !important;
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.15) !important;
    --bs-btn-active-bg: rgba(255, 255, 255, 0.15) !important;
    --bs-btn-focus-shadow-rgb: transparent !important;
}

.btn-outline-light:hover {
    color: #FFF !important;
    border-color: rgba(255,255,255,0.90) !important;
    text-decoration: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--hs-blue), #2563eb);
    border: none;
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #60a5fa, var(--hs-blue));
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, var(--hs-danger), #b91c1c);
    border: none;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ef4444, var(--hs-danger));
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Cards - border-radius maior para modernizar */
.card {
    background-color: var(--hs-bg);
    color: #F0F0F0;
    border: 1px solid var(--hs-border-color);
    border-radius: var(--hs-radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: border-color var(--hs-transition), box-shadow var(--hs-transition), transform var(--hs-transition);
}

.card:hover {
    border-color: var(--hs-border-hover);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* Card clicável */
.card-clickable {
    cursor: pointer;
}

.card-clickable:hover {
    border-color: var(--hs-border-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Badges - mais modernos */
.badge {
    border-radius: var(--hs-radius-sm);
    font-weight: 500;
}

/* Badges de severidade */
.badge-critical {
    background: rgba(220, 38, 38, 0.15);
    color: var(--hs-critical);
}

.badge-high {
    background: rgba(239, 68, 68, 0.15);
    color: var(--hs-high);
}

.badge-medium {
    background: rgba(249, 115, 22, 0.15);
    color: var(--hs-medium);
}

.badge-low {
    background: rgba(234, 179, 8, 0.15);
    color: var(--hs-low);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--hs-success);
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--hs-blue);
}

/* Alertas */
.alert {
    border-radius: var(--hs-radius-lg);
}

/* Modais */
.modal-content {
    border-radius: var(--hs-radius-lg);
    border: 1px solid var(--hs-border-color);
    background-color: var(--hs-surface);
}

/* Dropdowns */
.dropdown-menu {
    border-radius: var(--hs-radius-md);
    border: 1px solid var(--hs-border-color);
    background-color: var(--hs-surface);
}

.dropdown-item {
    transition: background-color var(--hs-transition);
}

.dropdown-item:hover {
    background-color: var(--hs-surface-hover);
}

/* Footer e misc */
.footer {
    font-size: 15px;
}

code {
    color: #00CDFF !important;
    font-size: 15px;
    border-radius: var(--hs-radius-sm);
}

td {
    font-size: 15px;
}

/* Menu */
.link-menu-hackersec {
    color: #FFF;
    font-size: 15px;
    text-decoration: none;
    transition: color var(--hs-transition), box-shadow var(--hs-transition);
}

.link-menu-hackersec:hover,
.link-menu-hackersec:focus-visible {
    color: #FFF !important;
    box-shadow: 0 2px 0 0 rgb(255,255,255);
}

.nav-pills .nav-link {
    border-radius: var(--hs-radius-sm);
}

/* Inputs group */
.input-group-text {
    border-radius: var(--hs-radius-sm);
    background-color: var(--hs-surface);
    border-color: var(--hs-form-border);
}

/* Progress bars */
.progress {
    border-radius: var(--hs-radius-sm);
    background-color: var(--hs-surface);
}

.progress-bar {
    border-radius: var(--hs-radius-sm);
}

/* Tooltips */
.tooltip-inner {
    border-radius: var(--hs-radius-sm);
}

/* DataTables integration */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: var(--hs-radius-sm) !important;
}

/* Scrollbar moderna (webkit) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--hs-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--hs-border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hs-border-hover);
}

/* Utilitários de texto */
.text-muted {
    color: var(--hs-text-muted) !important;
}

.text-secondary {
    color: var(--hs-text-secondary) !important;
}

/* Severity border-left (para listas) */
.severity-critical { border-left: 4px solid var(--hs-critical); }
.severity-high { border-left: 4px solid var(--hs-high); }
.severity-medium { border-left: 4px solid var(--hs-medium); }
.severity-low { border-left: 4px solid var(--hs-low); }
.severity-info { border-left: 4px solid var(--hs-info); }


/* Animação sutil de fade-in */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeIn 0.3s ease forwards;
}

/* Lista de Vulnerabilidades (estilo moderno) */
.vuln-list {
    list-style: none;
    padding: 0;
    margin: 0 -1rem; /* Compensa padding do card-body */
}

.vuln-item {
    display: flex;
    align-items: center;
    padding: 16px 1rem;
    border-bottom: 1px solid var(--hs-border-color);
    transition: background var(--hs-transition);
    cursor: pointer;
}

.vuln-item:last-child {
    border-bottom: none;
}

.vuln-item:hover {
    background: var(--hs-surface-hover);
}

.vuln-severity-bar {
    width: 4px;
    height: 44px;
    border-radius: 2px;
    margin-right: 16px;
    flex-shrink: 0;
}

.vuln-severity-bar.critical { background: var(--hs-critical); }
.vuln-severity-bar.high { background: var(--hs-high); }
.vuln-severity-bar.medium { background: var(--hs-medium); }
.vuln-severity-bar.low { background: var(--hs-low); }
.vuln-severity-bar.info { background: var(--hs-info); }

.vuln-info {
    flex: 1;
    min-width: 0;
}

.vuln-info h4 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--hs-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vuln-info p {
    font-size: 13px;
    color: var(--hs-text-secondary);
    margin: 0;
}

.vuln-meta {
    text-align: right;
    flex-shrink: 0;
    margin-left: 16px;
}

.vuln-meta .date {
    font-size: 12px;
    color: var(--hs-text-muted);
    margin-top: 4px;
}

/* Lista de Testes (estilo moderno) */
.test-list {
    list-style: none;
    padding: 0;
    margin: 0 -1rem; /* Compensa padding do card-body */
}

.test-item {
    display: flex;
    align-items: center;
    padding: 16px 1rem;
    border-bottom: 1px solid var(--hs-border-color);
    transition: background var(--hs-transition);
    cursor: pointer;
}

.test-item:last-child {
    border-bottom: none;
}

.test-item:hover {
    background: var(--hs-surface-hover);
}

.test-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 20px;
    flex-shrink: 0;
}

.test-icon.web { background: rgba(59, 130, 246, 0.15); color: var(--hs-blue); }
.test-icon.api { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.test-icon.mobile { background: rgba(16, 185, 129, 0.15); color: var(--hs-success); }
.test-icon.infra { background: rgba(249, 115, 22, 0.15); color: var(--hs-medium); }
.test-icon.default { background: rgba(107, 114, 128, 0.15); color: var(--hs-info); }

.test-info {
    flex: 1;
    min-width: 0;
}

.test-info h4 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--hs-text);
}

.test-info p {
    font-size: 13px;
    color: var(--hs-text-secondary);
    margin: 0;
}

.test-meta {
    text-align: right;
    flex-shrink: 0;
    margin-left: 16px;
}


.test-info p span {
    font-weight: 600;
}

@media (max-width: 575px) {
    .test-item {
        flex-wrap: wrap;
        padding: 12px 0.75rem;
        gap: 8px;
    }
    .test-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        margin-right: 10px;
    }
    .test-info {
        flex: 1;
        min-width: calc(100% - 56px);
    }
    .test-info h4 {
        font-size: 14px;
        word-break: break-word;
    }
    .test-info p {
        font-size: 12px;
    }
    .test-meta {
        width: 100%;
        text-align: left;
        margin-left: 46px;
        margin-top: 0;
    }
    .test-list {
        margin: 0 -0.5rem;
    }
}

/* ==================== Breadcrumb ==================== */
.has-bc {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 1rem;
}
.has-bc a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
}
.has-bc a:hover {
    color: rgba(255,255,255,0.55);
}

/* ==================== Mobile Navbar Compact ==================== */
@media (max-width: 1199px) {
    .navbar-brand img { height: 26px !important; }
    .navbar-brand span { font-size: 11px !important; margin-top: 0 !important; }
    .navbar { padding-top: 4px !important; padding-bottom: 4px !important; }
}

/* Navbar: padding vertical do container reduzido no desktop (pagina mantem o seu) */
@media (min-width: 1200px) {
    .navbar > .container {
        padding-top: 8px;
        padding-bottom: 8px;
    }
}
/* Barras de navegação no mobile/tablet nao herdam o padding vertical de pagina do .container */
@media (max-width: 1199px) {
    .navbar > .container,
    .has-mobile-nav > .container {
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* ==================== Mobile Navigation Tabs ==================== */
.has-mobile-nav {
    background: var(--hs-surface);
    border-bottom: 1px solid var(--hs-border-color);
    margin-top: 0;
}
.has-mobile-nav::-webkit-scrollbar { display: none; }
.has-mob-tab {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    white-space: nowrap;
    border-radius: 6px;
    transition: all 0.15s;
}
.has-mob-tab:hover { color: rgba(255,255,255,0.8); }
.has-mob-tab.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* ==================== Timeline / Atividades Recentes ==================== */
.tl-c { position: relative; padding-left: 60px; }
.tl-c::before { content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,0.1); }
.tl-c .tl-date { position: relative; padding: 20px 0 10px; font-size: 1.05em; font-weight: 600; color: rgba(255,255,255,0.85); text-transform: uppercase; letter-spacing: 0.03em; }
.tl-c .tl-date::before { content: ''; position: absolute; left: -45px; top: 26px; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.tl-c .tl-item { position: relative; padding: 14px 16px; margin-bottom: 4px; border-radius: 8px; transition: background var(--hs-transition); cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tl-c .tl-item:hover { background: rgba(255,255,255,0.07); }
.tl-c .tl-icon { position: absolute; left: -58px; top: 14px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.tl-c .tl-body { flex: 1; min-width: 0; }
.tl-c .tl-action { font-size: 14px; color: #fff; }
.tl-c .tl-action a { color: #fff; text-decoration: none; }
.tl-c .tl-action a:hover { text-decoration: underline; }
.tl-c .tl-meta { font-size: 0.9em; color: rgba(255,255,255,0.6); margin-top: 4px; }
.tl-c .tl-time { font-size: 0.88em; color: rgba(255,255,255,0.5); white-space: nowrap; flex-shrink: 0; padding-top: 2px; }

@media (max-width: 575px) {
    .tl-c { padding-left: 0; }
    .tl-c::before { display: none; }
    .tl-c .tl-date::before { display: none; }
    .tl-c .tl-date { padding: 12px 0 6px; font-size: 0.9em; }
    .tl-c .tl-icon { position: static; width: 32px; height: 32px; font-size: 14px; flex-shrink: 0; margin-right: 10px; }
    .tl-c .tl-item { padding: 10px 8px; gap: 8px; flex-wrap: wrap; }
    .tl-c .tl-action { font-size: 0.9em; }
    .tl-c .tl-meta { font-size: 0.8em; }
    .tl-c .tl-time { font-size: 0.78em; width: 100%; text-align: right; padding-top: 4px; }
}

/* Botão AI Gradient */
.btn-ai-gradient {
    background: linear-gradient(135deg, #1e3a8a 0%, #4c1d95 50%, #7b1fa2 100%);
    color: white;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.btn-ai-gradient:hover {
    background: linear-gradient(135deg, #1a337a 0%, #431a85 50%, #6d1b90 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-ai-gradient:active {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.btn-ai-gradient i {
    margin-right: 6px;
}

/* Yaga AI indicator */
.yaga-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 7px;
    border-radius: 2px;
    background: linear-gradient(135deg, #dc2626 0%, #1b1464 75%);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    cursor: default;
}

.yaga-badge i {
    font-size: 10px;
}

/* Card Select — componente generico reutilizavel */
.has-card-select {
    cursor: pointer;
    padding: 20px 16px;
    border-radius: 8px;
    border: 1px solid var(--hs-border-color);
    background: var(--hs-surface);
    text-align: center;
    transition: all 0.2s;
    position: relative;
}
.has-card-select:hover {
    border-color: var(--hs-border-hover);
    background: var(--hs-surface-hover);
}
.has-card-select.selected {
    border-color: var(--hs-blue);
    background: rgba(59,130,246,0.08);
}
.has-card-select i.has-card-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
    color: var(--hs-text-muted);
}
.has-card-select.selected i.has-card-icon {
    color: #60a5fa;
}
.has-card-select .has-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--hs-text-secondary);
}
.has-card-select.selected .has-card-title {
    color: var(--hs-text);
}
.has-card-select .has-card-desc {
    font-size: 11px;
    color: var(--hs-text-muted);
    margin-top: 4px;
    line-height: 1.4;
}
.has-card-select.selected .has-card-desc {
    color: var(--hs-text-secondary);
}
.has-card-select .has-card-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 11px;
    padding: 0 !important;
    line-height: 22px;
    text-align: center;
    display: none;
}
.has-card-select .has-card-badge.show {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

/* HAS — .btn-light com aparência dark (usado nos botões OAuth de login/register) */
.btn-light {
    background: #1a1a1a !important;
    border: 1px solid #2a2a2a !important;
    color: #fafafa !important;
    padding: 11px !important;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.15s;
}
.btn-light:hover {
    background: #222 !important;
    border-color: #3a3a3a !important;
    color: #fafafa !important;
}
.btn-light i { color: #fafafa; }

/* Badges tonais — mesma linguagem do sev-badge (fundo translucido + texto colorido), escopado a .badge.
   Usa !important porque as utilities de cor do Bootstrap 5.3 vem com !important. */
.badge.text-bg-primary,   .badge.bg-primary   { background: rgba(59,130,246,.16)  !important; color: #60a5fa !important; border: 1px solid rgba(59,130,246,.28) !important; }
.badge.text-bg-secondary, .badge.bg-secondary { background: rgba(120,130,145,.32) !important; color: #d3d9e2 !important; border: 1px solid rgba(255,255,255,.07) !important; }
.badge.text-bg-success,   .badge.bg-success   { background: rgba(34,197,94,.16)   !important; color: #4ade80 !important; border: 1px solid rgba(34,197,94,.28) !important; }
.badge.text-bg-danger,    .badge.bg-danger    { background: rgba(239,68,68,.16)   !important; color: #f87171 !important; border: 1px solid rgba(239,68,68,.32) !important; }
.badge.text-bg-warning,   .badge.bg-warning   { background: rgba(234,179,8,.16)   !important; color: #eab308 !important; border: 1px solid rgba(234,179,8,.28) !important; }
.badge.text-bg-info,      .badge.bg-info      { background: rgba(6,182,212,.16)   !important; color: #22d3ee !important; border: 1px solid rgba(6,182,212,.28) !important; }
.badge.text-bg-light,     .badge.bg-light     { background: rgba(255,255,255,.10) !important; color: #e8eaed !important; border: 1px solid rgba(255,255,255,.14) !important; }
.badge.text-bg-dark,      .badge.bg-dark      { background: rgba(0,0,0,.30)       !important; color: #cbd0d8 !important; border: 1px solid rgba(255,255,255,.10) !important; }

/* Badge "Em andamento": ponto "ao vivo" DENTRO do badge (antes do texto) + respiracao suave */
.badge-ia-live {
    display: inline-flex;
    align-items: center;
    animation: ia-live-breathe 2.6s ease-in-out infinite;
}
.badge-ia-live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    margin-right: 6px;
    flex: none;
    animation: ia-live-halo 1.6s ease-in-out infinite;
}
@keyframes ia-live-breathe {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
    50%      { box-shadow: 0 0 7px 0 rgba(59, 130, 246, 0.30); }
}
@keyframes ia-live-halo {
    0%        { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.6); }
    70%, 100% { box-shadow: 0 0 0 4px rgba(96, 165, 250, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .badge-ia-live, .badge-ia-live::before { animation: none; }
}
