﻿/* ═══════════════════════════════════════════════════════
   FFACILITES Admin — CSS COMPLETO
   ═══════════════════════════════════════════════════════ */

:root {
    --primary:       #d4a017;
    --primary-light: #f5c518;
    --primary-dark:  #b8860b;
    --accent:        #10b981;
    --accent-dark:   #059669;
    --danger:        #ef4444;
    --danger-dark:   #b91c1c;
    --warning:       #f59e0b;
    --info:          #6366f1;
    --bg:            #0a0a0f;
    --sidebar:       #0d0d14;
    --card:          #111118;
    --card2:         #13131c;
    --border:        #2d2d3d;
    --border-light:  #3a3a50;
    --text:          #e5e7eb;
    --text-gray:     #9ca3af;
    --text-dim:      #6b7280;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    display: flex;
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
}

/* ── SCROLLBAR ─────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }

/* ── SIDEBAR ───────────────────────────────────────── */
.sidebar {
    width: 240px;
    min-width: 240px;
    background: var(--sidebar);
    border-right: 1px solid var(--border);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: width 0.2s;
}

.logo-area {
    padding: 20px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.menu-items { flex: 1; padding: 10px 0; }

.menu-section { padding: 4px 0; }
.menu-section + .menu-section {
    border-top: 1px solid var(--border);
    margin-top: 6px;
    padding-top: 10px;
}

.menu-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px 5px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.menu-icon {
    width: 14px;
    height: 14px;
    opacity: 0.45;
    filter: invert(1);
    flex-shrink: 0;
}

.btn-nav {
    width: 100%;
    padding: 9px 18px 9px 30px;
    background: none;
    border: none;
    color: var(--text-gray);
    text-align: left;
    cursor: pointer;
    border-radius: 7px;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: relative;
}

.btn-nav:hover {
    background: rgba(212,160,23,0.08);
    color: var(--primary-light);
    padding-left: 34px;
}

.btn-nav.active {
    background: linear-gradient(135deg, rgba(212,160,23,0.18), rgba(212,160,23,0.06));
    color: var(--primary-light);
    font-weight: 700;
    border-right: 2px solid var(--primary);
}

.btn-nav.active::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
}

/* Badge de alerta na sidebar */
.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #f97316;
    color: #fff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

.nav-badge.verde { background: var(--accent); }
.nav-badge.vermelho { background: var(--danger); }
.nav-badge.hidden { display: none; }

/* Sidebar footer */
.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.btn-site {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    background: rgba(212,160,23,0.08);
    border: 1px solid rgba(212,160,23,0.2);
    border-radius: 999px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-site:hover { background: rgba(212,160,23,0.16); border-color: rgba(212,160,23,0.4); }

.btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    background: rgba(239,68,68,0.07);
    border: 1px solid rgba(239,68,68,0.18);
    border-radius: 999px;
    color: #f87171;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}
.btn-logout:hover { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.35); }

/* ── CONTENT ───────────────────────────────────────── */
.content {
    flex: 1;
    padding: 28px 32px;
    overflow-y: auto;
    min-width: 0;
}

.page-header { margin-bottom: 24px; }
.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.page-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.5px;
}

.page-sub {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 4px;
}

/* ── STATS CARDS ───────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    border-left: 3px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: transform 0.15s, border-color 0.15s;
}
.stat-card:hover { transform: translateY(-2px); }

.stat-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 60px; height: 60px;
    border-radius: 0 14px 0 60px;
    opacity: 0.06;
}

.stat-card.verde  { border-left-color: var(--accent); }
.stat-card.verde::after  { background: var(--accent); }
.stat-card.vermelho { border-left-color: var(--danger); }
.stat-card.vermelho::after { background: var(--danger); }
.stat-card.amarelo { border-left-color: var(--primary); }
.stat-card.amarelo::after { background: var(--primary); }
.stat-card.roxo { border-left-color: var(--info); }
.stat-card.roxo::after { background: var(--info); }
.stat-card.azul { border-left-color: #38bdf8; }
.stat-card.azul::after { background: #38bdf8; }

.stat-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.05);
}
.stat-card-icon img { width: 16px; height: 16px; filter: invert(1); opacity: 0.7; }

.stat-card.verde  .stat-card-icon { background: rgba(16,185,129,0.12); }
.stat-card.vermelho .stat-card-icon { background: rgba(239,68,68,0.12); }
.stat-card.amarelo .stat-card-icon { background: rgba(212,160,23,0.12); }
.stat-card.roxo .stat-card-icon { background: rgba(99,102,241,0.12); }
.stat-card.azul .stat-card-icon { background: rgba(56,189,248,0.12); }

.stat-card-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--text-gray);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.stat-card-value {
    font-size: 26px;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
}
.stat-card.verde .stat-card-value    { color: var(--accent); }
.stat-card.vermelho .stat-card-value { color: var(--danger); }
.stat-card.amarelo .stat-card-value  { color: var(--primary); }
.stat-card.roxo .stat-card-value     { color: #818cf8; }
.stat-card.azul .stat-card-value     { color: #38bdf8; }

.stat-card-desc {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 5px;
}

/* ── BLOCO ─────────────────────────────────────────── */
.bloco {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
}

.bloco-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    flex-wrap: wrap;
    background: var(--card2);
}

.bloco-titulo {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bloco-titulo img { width: 14px; height: 14px; filter: invert(1); opacity: 0.6; }

/* ── TABELA ────────────────────────────────────────── */
.tabela-admin {
    width: 100%;
    border-collapse: collapse;
}

.tabela-admin th {
    padding: 10px 16px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--text-dim);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    text-align: left;
    background: var(--card2);
    white-space: nowrap;
}

.tabela-admin td {
    padding: 11px 16px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.035);
    color: var(--text);
    vertical-align: middle;
}

.tabela-admin tr:last-child td { border-bottom: none; }
.tabela-admin tbody tr { transition: background 0.1s; }
.tabela-admin tbody tr:hover td { background: rgba(212,160,23,0.04); }

.td-vazio {
    text-align: center;
    color: var(--text-dim);
    padding: 36px !important;
    font-size: 13px;
}

/* Dias restantes coloridos */
.dias-ok    { color: var(--accent); font-weight: 700; }
.dias-warn  { color: var(--primary); font-weight: 700; }
.dias-crit  { color: var(--danger); font-weight: 700; }
.dias-exp   { color: var(--text-dim); }

/* ── BADGES ────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.badge-ativo    { background: rgba(16,185,129,0.14); color: #10b981; }
.badge-expirado { background: rgba(239,68,68,0.14); color: #ef4444; }
.badge-pendente { background: rgba(212,160,23,0.14); color: #d4a017; }
.badge-trial    { background: rgba(99,102,241,0.14); color: #818cf8; }
.badge-info     { background: rgba(56,189,248,0.14); color: #38bdf8; }
.badge-urgente  { background: rgba(239,68,68,0.2); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.badge-alerta   { background: rgba(245,158,11,0.2); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }

/* ── INPUTS & FORMS ────────────────────────────────── */
input, select, textarea {
    background: #0d0d14;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 9px 13px;
    border-radius: 8px;
    outline: none;
    font-size: 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212,160,23,0.1);
}
input::placeholder { color: var(--text-dim); }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="color"] {
    width: 44px;
    height: 36px;
    padding: 3px 5px;
    cursor: pointer;
    border-radius: 8px;
}
select option { background: #111118; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 4px 0;
}
.form-campo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-campo label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--text-gray);
    text-transform: uppercase;
}
.form-campo input,
.form-campo select,
.form-campo textarea { width: 100%; }
.form-full { grid-column: 1 / -1; }

/* ── BOTÕES ────────────────────────────────────────── */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: #000;
    border: none;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-danger {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.25);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

.btn-verde {
    background: rgba(16,185,129,0.1);
    color: var(--accent);
    border: 1px solid rgba(16,185,129,0.25);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-verde:hover { background: var(--accent); color: #000; border-color: var(--accent); }

.btn-ghost {
    background: rgba(255,255,255,0.05);
    color: var(--text-gray);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); color: var(--text); border-color: var(--border-light); }

.btn-icon {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-gray);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.15s;
    flex-shrink: 0;
}
.btn-icon:hover { background: rgba(212,160,23,0.1); color: var(--primary); border-color: rgba(212,160,23,0.3); }

.btn-sm { padding: 6px 14px !important; font-size: 11px !important; }

/* ── MODAL ─────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.78);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.15s ease;
}
.modal-overlay.show { display: flex; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.modal {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.2s ease;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.modal-titulo {
    font-size: 17px;
    font-weight: 900;
    margin-bottom: 22px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-titulo::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    flex-shrink: 0;
}

.modal-btns {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

/* ── TOAST ─────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    min-width: 220px;
    max-width: 360px;
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    z-index: 9999;
    opacity: 0;
    transform: translateY(14px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}
.toast.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.toast.success { background: linear-gradient(135deg, #059669, #10b981); border-left: 3px solid #34d399; }
.toast.error   { background: linear-gradient(135deg, #b91c1c, #ef4444); border-left: 3px solid #f87171; }
.toast.info    { background: linear-gradient(135deg, #b8860b, #d4a017); border-left: 3px solid #f5c518; }
.toast.warn    { background: linear-gradient(135deg, #92400e, #f59e0b); border-left: 3px solid #fbbf24; }

/* ── GRÁFICO DE BARRAS CSS ─────────────────────────── */
.chart-wrap {
    padding: 32px 20px 8px;
}
.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 100px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.chart-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}
.chart-bar {
    width: 100%;
    border-radius: 6px 6px 0 0;
    min-height: 4px;
    transition: height 0.5s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
}
.chart-bar:hover { opacity: 0.8; }
.chart-bar-val {
    font-size: 11px;
    font-weight: 800;
    color: var(--text);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}
.chart-bar-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
    text-align: center;
}
.bar-ativo    { background: linear-gradient(180deg, #10b981, #059669); }
.bar-trial    { background: linear-gradient(180deg, #818cf8, #6366f1); }
.bar-pendente { background: linear-gradient(180deg, #f5c518, #d4a017); }
.bar-expirado { background: linear-gradient(180deg, #f87171, #ef4444); }

/* ── TIMELINE DE ATIVIDADE ─────────────────────────── */
.timeline {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.timeline-item {
    display: flex;
    gap: 14px;
    padding: 10px 0;
    position: relative;
}
.timeline-item + .timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    width: 2px;
    height: 10px;
    background: var(--border);
}
.timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 1px;
}
.dot-criado  { background: rgba(16,185,129,0.15); color: var(--accent); }
.dot-editado { background: rgba(212,160,23,0.15); color: var(--primary); }
.dot-renovado{ background: rgba(56,189,248,0.15); color: #38bdf8; }
.dot-excluido{ background: rgba(239,68,68,0.15); color: var(--danger); }
.dot-login   { background: rgba(99,102,241,0.15); color: #818cf8; }

.timeline-body { flex: 1; min-width: 0; }
.timeline-msg {
    font-size: 13px;
    color: var(--text);
    line-height: 1.4;
}
.timeline-msg strong { color: var(--primary-light); }
.timeline-time {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 2px;
}

/* ── CONFIGURAÇÕES ─────────────────────────────────── */
.config-section {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}
.config-section:last-child { border-bottom: none; }
.config-section-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.config-section-title::before {
    content: '';
    display: block;
    width: 3px;
    height: 14px;
    background: var(--primary);
    border-radius: 3px;
}
.config-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.config-row label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-gray);
    min-width: 180px;
}
.config-row input,
.config-row select { flex: 1; min-width: 160px; max-width: 320px; }

/* ── URGÊNCIA RENOVAÇÕES ───────────────────────────── */
.urgencia-critica td { background: rgba(239,68,68,0.04) !important; }
.urgencia-alerta  td { background: rgba(245,158,11,0.04) !important; }

/* ── BOTÃO COPIAR ──────────────────────────────────── */
.btn-copy {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 12px;
    transition: color 0.15s;
    vertical-align: middle;
}
.btn-copy:hover { color: var(--primary); }

/* ── SEARCH BAR ────────────────────────────────────── */
.search-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.search-bar input { min-width: 200px; }
.search-bar select { min-width: 120px; }

/* ── EMPTY STATE ───────────────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    gap: 10px;
    color: var(--text-dim);
}
.empty-state-icon { font-size: 36px; opacity: 0.4; }
.empty-state-msg { font-size: 14px; font-weight: 600; }
.empty-state-sub { font-size: 12px; }

/* ── AÇÕES TABELA ──────────────────────────────────── */
.acoes-cell {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

/* ── SEPARADOR ─────────────────────────────────────── */
.sep { height: 1px; background: var(--border); margin: 4px 0; }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 900px) {
    .sidebar { width: 200px; min-width: 200px; }
    .content { padding: 20px 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    body { flex-direction: column; }
    .sidebar { width: 100%; min-width: unset; height: auto; position: relative; }
    .content { padding: 16px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .page-header-row { flex-direction: column; }
}



/* ============================================================
   ACEITACAO REDESIGN
   ============================================================ */
#listaContasPendentes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aceitacao-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(212,160,23,0.05), rgba(212,160,23,0.02));
    border: 1px solid rgba(212,160,23,0.25);
    border-left: 4px solid var(--primary);
    border-radius: 14px;
    transition: all 0.2s;
}
.aceitacao-card:hover {
    border-color: rgba(212,160,23,0.5);
    transform: translateX(2px);
    box-shadow: 0 6px 20px rgba(212,160,23,0.08);
}

.aceitacao-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: #000;
    font-size: 18px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.aceitacao-info {
    flex: 1;
    min-width: 0;
}

.aceitacao-nome {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.aceitacao-email {
    font-size: 13px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.aceitacao-email img { width: 12px; height: 12px; opacity: 0.6; }

.aceitacao-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.aceitacao-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-gray);
}
.aceitacao-tag img { width: 11px; height: 11px; opacity: 0.6; }
.aceitacao-tag-valor {
    background: rgba(16,185,129,0.1);
    border-color: rgba(16,185,129,0.2);
    color: #10b981;
    font-weight: 800;
}
.aceitacao-tag-plano {
    background: rgba(124,58,237,0.1);
    border-color: rgba(124,58,237,0.2);
    color: #a855f7;
    text-transform: capitalize;
}

.aceitacao-obs {
    margin-top: 8px;
    padding: 10px 12px;
    background: rgba(245,197,24,0.06);
    border: 1px solid rgba(212,160,23,0.15);
    border-radius: 8px;
    font-size: 12px;
    color: var(--primary-light);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.aceitacao-obs img { width: 13px; height: 13px; flex-shrink: 0; margin-top: 2px; opacity: 0.8; }

.aceitacao-acoes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.btn-aceitar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-aceitar:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16,185,129,0.3);
}
.btn-aceitar img { width: 14px; height: 14px; filter: brightness(0) invert(1); }

.btn-rejeitar {
    padding: 10px 18px;
    background: transparent;
    color: #f87171;
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-rejeitar:hover {
    background: rgba(239,68,68,0.1);
    border-color: rgba(239,68,68,0.5);
}

.aceitacao-empty {
    text-align: center;
    padding: 60px 20px;
}
.aceitacao-empty-icon {
    width: 72px; height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.05));
    border: 2px solid rgba(16,185,129,0.3);
    display: flex; align-items: center; justify-content: center;
}
.aceitacao-empty-icon img {
    width: 36px; height: 36px;
    filter: brightness(0) saturate(100%) invert(56%) sepia(86%) saturate(442%) hue-rotate(116deg) brightness(96%) contrast(89%);
}
.aceitacao-empty-titulo {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}
.aceitacao-empty-sub {
    font-size: 13px;
    color: var(--text-gray);
}

@media (max-width: 700px) {
    .aceitacao-card { flex-wrap: wrap; }
    .aceitacao-acoes { width: 100%; flex-direction: row; }
    .btn-aceitar, .btn-rejeitar { flex: 1; justify-content: center; }
}


/* ============================================================
   ONLINE STATUS BADGE
   ============================================================ */
.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.3);
    color: #10b981;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.online-badge .online-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16,185,129,0.2);
    animation: pulse-online 2s ease-in-out infinite;
}
@keyframes pulse-online {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.online-badge.offline {
    background: rgba(107,114,128,0.1);
    border-color: rgba(107,114,128,0.2);
    color: #9ca3af;
}
.online-badge.offline .online-dot {
    background: #6b7280;
    box-shadow: none;
    animation: none;
}

/* ============================================================
   ENTRADAS - aba IP/HWID
   ============================================================ */
.entrada-code {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: 5px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 11px;
    color: #d1d5db;
    word-break: break-all;
}

.suspeita-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(239,68,68,0.18);
    border: 1px solid rgba(239,68,68,0.4);
    color: #ef4444;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 900;
    margin-left: 6px;
    cursor: help;
}


/* ============================================================
   MODAL DE CONFIRMACAO IN-SITE (substitui confirm() nativo)
   ============================================================ */
.admin-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.2s;
    padding: 20px;
}
.admin-confirm-overlay.show { opacity: 1; }

.admin-confirm-box {
    background: linear-gradient(180deg, #13131c, #0d0d14);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px 28px 24px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(212,160,23,0.1);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.admin-confirm-overlay.show .admin-confirm-box {
    transform: translateY(0) scale(1);
}

.admin-confirm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(212,160,23,0.2), rgba(212,160,23,0.05));
    border: 2px solid rgba(212,160,23,0.4);
    color: var(--primary);
}
.admin-confirm-danger .admin-confirm-icon {
    background: linear-gradient(135deg, rgba(239,68,68,0.2), rgba(239,68,68,0.05));
    border-color: rgba(239,68,68,0.4);
    color: #ef4444;
}
.admin-confirm-success .admin-confirm-icon {
    background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(16,185,129,0.05));
    border-color: rgba(16,185,129,0.4);
    color: #10b981;
}

.admin-confirm-titulo {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.admin-confirm-msg {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 24px;
}
.admin-confirm-msg strong { color: var(--text); }

.admin-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.admin-confirm-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
    max-width: 180px;
}
.admin-confirm-cancel {
    background: rgba(255,255,255,0.04);
    color: var(--text-gray);
    border: 1px solid var(--border);
}
.admin-confirm-cancel:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text);
}
.admin-confirm-ok {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: #000;
}
.admin-confirm-ok:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(212,160,23,0.3);
}
.admin-confirm-danger-btn {
    background: linear-gradient(135deg, #b91c1c, #ef4444) !important;
    color: #fff !important;
}
.admin-confirm-danger-btn:hover {
    box-shadow: 0 8px 20px rgba(239,68,68,0.3) !important;
}
.admin-confirm-success-btn {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    color: #fff !important;
}

/* ============================================================
   ADMIN - VISUAL UPGRADE
   ============================================================ */

/* Stat cards mais bonitos */
.stat-card {
    background: linear-gradient(135deg, var(--card), var(--card2));
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(212,160,23,0.06);
    transition: all 0.3s;
}
.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212,160,23,0.3);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.stat-card:hover::before {
    background: rgba(212,160,23,0.12);
}
.stat-card.verde::before { background: rgba(16,185,129,0.08); }
.stat-card.vermelho::before { background: rgba(239,68,68,0.08); }
.stat-card.roxo::before { background: rgba(139,92,246,0.08); }
.stat-card.amarelo::before { background: rgba(245,197,24,0.10); }
.stat-card.azul::before { background: rgba(59,130,246,0.08); }

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: rgba(212,160,23,0.12);
    border: 1px solid rgba(212,160,23,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.stat-card-icon img { width: 22px; height: 22px; }
.stat-card.verde .stat-card-icon { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.3); }
.stat-card.vermelho .stat-card-icon { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.3); }
.stat-card.roxo .stat-card-icon { background: rgba(139,92,246,0.12); border-color: rgba(139,92,246,0.3); }
.stat-card.amarelo .stat-card-icon { background: rgba(245,197,24,0.12); border-color: rgba(245,197,24,0.3); }
.stat-card.azul .stat-card-icon { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.3); }

.stat-card-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}
.stat-card-value {
    font-size: 30px;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}
.stat-card.verde .stat-card-value { color: #10b981; }
.stat-card.vermelho .stat-card-value { color: #ef4444; }
.stat-card.roxo .stat-card-value { color: #a78bfa; }
.stat-card.amarelo .stat-card-value { color: #f5c518; }
.stat-card.azul .stat-card-value { color: #60a5fa; }
.stat-card-desc {
    font-size: 11px;
    color: var(--text-dim);
    position: relative;
    z-index: 1;
}

/* Page header mais bonito */
.page-title {
    font-size: 28px !important;
    font-weight: 900 !important;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, #d4a017);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Bloco mais bonito */
.bloco {
    background: linear-gradient(180deg, var(--card), var(--card2)) !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    overflow: hidden;
    margin-bottom: 18px;
}
.bloco-header {
    background: rgba(0,0,0,0.25) !important;
    padding: 14px 20px !important;
    border-bottom: 1px solid var(--border) !important;
}
.bloco-titulo {
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    color: var(--text) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.bloco-titulo img { width: 16px; height: 16px; opacity: 0.8; }

/* Tabelas admin mais bonitas */
.tabela-admin {
    width: 100%;
    border-collapse: collapse;
}
.tabela-admin thead tr {
    background: rgba(0,0,0,0.3);
}
.tabela-admin th {
    padding: 12px 16px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-dim);
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.tabela-admin td {
    padding: 14px 16px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--text);
    vertical-align: middle;
}
.tabela-admin tr:last-child td { border-bottom: none; }
.tabela-admin tbody tr:hover { background: rgba(255,255,255,0.02); }

/* Badges modernos */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-ativo { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.badge-pendente { background: rgba(245,197,24,0.15); color: #f5c518; border: 1px solid rgba(245,197,24,0.3); }
.badge-expirado { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.badge-trial { background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.3); }
