/* ============================================================
   YoloTech CRM · Industrial Dark Theme
   ============================================================ */

:root {
    --bg: #09090b;
    --bg-elevated: #18181b;
    --bg-card: #131316;
    --border: #27272a;
    --border-hover: #3f3f46;
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    --cyan: #06b6d4;
    --cyan-hover: #22d3ee;
    --cyan-bg: rgba(6, 182, 212, 0.08);
    --cyan-border: rgba(6, 182, 212, 0.3);
    --emerald: #10b981;
    --emerald-bg: rgba(16, 185, 129, 0.08);
    --amber: #f59e0b;
    --amber-bg: rgba(245, 158, 11, 0.08);
    --red: #ef4444;
    --red-bg: rgba(239, 68, 68, 0.08);
    --red-border: rgba(239, 68, 68, 0.3);
    
    --font-display: 'JetBrains Mono', 'Courier New', monospace;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

/* ===== LOGIN ===== */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: radial-gradient(ellipse at top, rgba(6, 182, 212, 0.06), transparent 70%), var(--bg);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2.5rem;
}

.brand { text-align: center; margin-bottom: 2rem; }
.brand-eyebrow {
    font-family: var(--font-display);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}
.brand-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.25rem; }
.brand-tagline { font-size: 0.875rem; color: var(--text-muted); }

.login-form { display: flex; flex-direction: column; gap: 1rem; }

.field { display: flex; flex-direction: column; gap: 0.375rem; }
.field label {
    font-family: var(--font-display);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.field input, .field select, .field textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    color: var(--text);
    width: 100%;
    transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--cyan);
}

.priority-dot {
    width: 6px; height: 6px; border-radius: 50%;
    display: inline-block;
}
.priority-CRIT { background: var(--red); }
.priority-IMP { background: var(--amber); }
.priority-OPT { background: var(--emerald); }
.priority-STD { background: var(--cyan); }

.btn-primary {
    background: var(--cyan);
    color: var(--bg);
    padding: 0.625rem 1.25rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.875rem;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}
.btn-primary:hover { background: var(--cyan-hover); }
.btn-primary:disabled { background: var(--border); color: var(--text-dim); cursor: not-allowed; }

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.5rem 0.875rem;
    border-radius: 4px;
    font-size: 0.75rem;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}
.btn-secondary:hover { background: var(--bg-elevated); color: var(--text); }
.btn-secondary.cyan {
    background: var(--cyan-bg);
    border-color: var(--cyan-border);
    color: var(--cyan-hover);
}
.btn-secondary.cyan:hover { background: rgba(6, 182, 212, 0.15); }

.btn-ghost {
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 4px;
    transition: all 0.15s;
    white-space: nowrap;
}
.btn-ghost:hover { color: var(--text); background: var(--bg-elevated); }

.btn-link {
    color: var(--cyan-hover);
    font-size: 0.8125rem;
    text-decoration: none;
    background: none;
    padding: 0.25rem 0;
}
.btn-link:hover { text-decoration: underline; }

.login-actions {
    display: flex;
    justify-content: space-between;
    margin-top: -0.25rem;
    font-size: 0.8125rem;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    border: 1px solid;
}
.alert-error {
    background: var(--red-bg);
    border-color: var(--red-border);
    color: #fca5a5;
}
.alert-success {
    background: var(--emerald-bg);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.login-footer {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: var(--font-display);
}

/* ===== HEADER ===== */
.app-header {
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 40;
}
.header-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.brand-mini { padding-right: 1rem; }
.brand-mini-eyebrow {
    font-family: var(--font-display);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-dim);
}
.brand-mini-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.nav-tabs { display: flex; gap: 0.25rem; }
.nav-tab {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.15s;
    white-space: nowrap;
}
.nav-tab:hover { background: var(--bg-elevated); color: var(--text); }
.nav-tab.active {
    background: var(--cyan-bg);
    color: var(--cyan-hover);
}
.badge {
    background: var(--red-bg);
    color: #fca5a5;
    border: 1px solid var(--red-border);
    border-radius: 999px;
    padding: 0.0625rem 0.375rem;
    font-size: 10px;
    font-family: var(--font-display);
}

.user-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0 0.5rem;
    font-family: var(--font-display);
}

@media (max-width: 768px) {
    .nav-tab span { display: none; }
    .btn-secondary span, .btn-primary span { display: none; }
    .user-info { display: none; }
}

/* ===== CONTAINERS ===== */
.container { max-width: 1600px; margin: 0 auto; padding: 1rem; }
.container-wide { max-width: 1800px; }
.container-narrow { max-width: 800px; }

.view-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.25rem; letter-spacing: -0.02em; }
.view-subtitle { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1.5rem; }

/* ===== KPIs ===== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}
@media (min-width: 1024px) {
    .kpi-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}

.kpi-card {
    border: 1px solid;
    border-radius: 6px;
    padding: 1rem;
}
.kpi-cyan { border-color: var(--cyan-border); background: var(--cyan-bg); }
.kpi-emerald { border-color: rgba(16, 185, 129, 0.3); background: var(--emerald-bg); }
.kpi-amber { border-color: rgba(245, 158, 11, 0.3); background: var(--amber-bg); }
.kpi-red { border-color: var(--red-border); background: var(--red-bg); }

.kpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.kpi-label {
    font-family: var(--font-display);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}
.kpi-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}
.kpi-sublabel {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* ===== FILTERS ===== */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    background: rgba(24, 24, 27, 0.5);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 1rem;
}
.search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}
.search-wrap svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}
.search-wrap input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    font-size: 0.875rem;
    color: var(--text);
}
.search-wrap input:focus { outline: none; border-color: var(--cyan); }

.filters-bar select {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--text);
}
.leads-count {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-left: auto;
}

/* ===== TABLA ===== */
.table-wrap {
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-card);
}
.table-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    background: rgba(24, 24, 27, 0.5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.table-header h3 { font-size: 0.875rem; font-weight: 700; }
.table-subtitle {
    font-family: var(--font-display);
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-left: auto;
}

.table-scroll { overflow-x: auto; }
.table-scroll table { width: 100%; min-width: 900px; font-size: 0.875rem; border-collapse: collapse; }
.table-scroll thead {
    border-bottom: 1px solid var(--border);
    background: rgba(24, 24, 27, 0.3);
}
.table-scroll th {
    padding: 0.5rem 0.75rem;
    text-align: left;
    font-family: var(--font-display);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    font-weight: 500;
}
.table-scroll th.right { text-align: right; }
.table-scroll td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.table-scroll tr.lead-row { transition: background 0.15s; }
.table-scroll tr.lead-row:hover { background: var(--cyan-bg); }
.lead-id-cell { font-family: var(--font-display); font-size: 0.75rem; color: var(--text-dim); }
.empresa-name { font-weight: 500; color: var(--text); margin-bottom: 0.25rem; }
.empresa-contact { font-size: 0.75rem; color: var(--text-dim); }

.usd-main {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text);
}
.usd-sub {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--cyan-hover);
}

.estado-pill {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 11px;
    border: 1px solid;
}
.estado-Lead { background: rgba(100, 116, 139, 0.15); color: #cbd5e1; border-color: rgba(100, 116, 139, 0.3); }
.estado-Calificado { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border-color: rgba(59, 130, 246, 0.3); }
.estado-Cotizado { background: var(--amber-bg); color: #fcd34d; border-color: rgba(245, 158, 11, 0.3); }
.estado-Negociando { background: rgba(249, 115, 22, 0.15); color: #fdba74; border-color: rgba(249, 115, 22, 0.3); }
.estado-Ganado { background: var(--emerald-bg); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.3); }
.estado-Perdido { background: var(--red-bg); color: #fca5a5; border-color: var(--red-border); }
.estado-Pausado { background: rgba(82, 82, 91, 0.15); color: #a1a1aa; border-color: rgba(82, 82, 91, 0.3); }

.action-btns {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}
@media (min-width: 768px) {
    .action-btns { opacity: 0; transition: opacity 0.15s; }
    .lead-row:hover .action-btns { opacity: 1; }
}
.icon-btn {
    padding: 0.375rem;
    border-radius: 4px;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan-hover);
}
.icon-btn:hover { background: var(--cyan-bg); }
.icon-btn.danger { color: #fca5a5; }
.icon-btn.danger:hover { background: var(--red-bg); }

.priority-star { color: var(--cyan); margin-right: 0.25rem; }

.fecha-overdue { color: #fca5a5 !important; font-weight: 600; }
.fecha-today { color: #fcd34d !important; font-weight: 600; }

.proxima-accion {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 0.125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

/* Cotización progress mini */
.cotizacion-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    font-size: 11px;
}
.progress-bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    max-width: 80px;
}
.progress-fill {
    height: 100%;
    background: var(--cyan);
    transition: width 0.3s;
}

/* ===== KANBAN ===== */
.kanban-board {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}
.kanban-col {
    flex-shrink: 0;
    width: 280px;
}
.kanban-col-header {
    padding: 0.625rem 0.75rem;
    background: rgba(24, 24, 27, 0.5);
    border: 1px solid var(--border);
    border-radius: 4px 4px 0 0;
    border-top: 2px solid;
}
.kanban-col-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
}
.kanban-col-count {
    font-family: var(--font-display);
    font-size: 10px;
    background: var(--bg-elevated);
    padding: 0.0625rem 0.5rem;
    border-radius: 999px;
    color: var(--text-dim);
}
.kanban-col-usd {
    font-family: var(--font-display);
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 0.25rem;
}
.kanban-col-body {
    background: rgba(24, 24, 27, 0.3);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 0.5rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.kanban-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.75rem;
    cursor: pointer;
    transition: border-color 0.15s;
}
.kanban-card:hover { border-color: var(--cyan-border); }
.kanban-card-id {
    font-family: var(--font-display);
    font-size: 10px;
    color: var(--text-dim);
    margin-bottom: 0.25rem;
}
.kanban-card-title {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.kanban-card-meta {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.kanban-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-family: var(--font-display);
}

/* Kanban con colores por columna */
.kanban-col[data-estado="Lead"] .kanban-col-header { border-top-color: #64748b; }
.kanban-col[data-estado="Calificado"] .kanban-col-header { border-top-color: #3b82f6; }
.kanban-col[data-estado="Cotizado"] .kanban-col-header { border-top-color: #f59e0b; }
.kanban-col[data-estado="Negociando"] .kanban-col-header { border-top-color: #f97316; }
.kanban-col[data-estado="Ganado"] .kanban-col-header { border-top-color: #10b981; }
.kanban-col[data-estado="Perdido"] .kanban-col-header { border-top-color: #ef4444; }
.kanban-col[data-estado="Pausado"] .kanban-col-header { border-top-color: #52525b; }

/* ===== HOY ===== */
.hoy-card {
    border: 1px solid var(--border);
    background: rgba(24, 24, 27, 0.3);
    border-radius: 6px;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 0.5rem;
}
.hoy-card:hover { background: rgba(24, 24, 27, 0.5); }
.hoy-card.overdue {
    border-color: var(--red-border);
    background: var(--red-bg);
}
.hoy-card.overdue:hover { background: rgba(239, 68, 68, 0.12); }
.hoy-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(24, 24, 27, 0.3);
}

/* ===== MODALES ===== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 50;
    display: flex;
    align-items: stretch;
    justify-content: center;
}
@media (min-width: 640px) {
    .modal-backdrop { align-items: center; padding: 1rem; }
}
.modal {
    background: var(--bg);
    width: 100%;
    max-height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
@media (min-width: 640px) {
    .modal {
        max-width: 1024px;
        max-height: 90vh;
        border: 1px solid var(--border);
        border-radius: 8px;
    }
}
.modal-narrow { max-width: 720px !important; }

.modal-header {
    position: sticky;
    top: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}
.modal-title { font-size: 1rem; font-weight: 700; }
.modal-subtitle { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.125rem; }
.modal-close {
    padding: 0.5rem;
    border-radius: 4px;
    color: var(--text-muted);
    transition: background 0.15s;
}
.modal-close:hover { background: var(--bg-elevated); color: var(--text); }

.modal-body { padding: 1rem; }
@media (min-width: 640px) { .modal-body { padding: 1.5rem; } }

.modal-footer {
    position: sticky;
    bottom: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 0.875rem 1.25rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Form sections */
.form-section { margin-bottom: 1.5rem; }
.section-title {
    font-family: var(--font-display);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--cyan-hover);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.875rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}
@media (min-width: 640px) {
    .form-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .form-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.form-grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
    .form-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.span-2 { grid-column: span 2; }
@media (max-width: 640px) {
    .span-2 { grid-column: span 1; }
}

.range-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.range-wrap input[type=range] { flex: 1; accent-color: var(--cyan); }
.range-value {
    font-family: var(--font-display);
    color: var(--cyan-hover);
    width: 3rem;
    text-align: right;
}

/* Sub-etapas */
.subetapas-section {
    background: rgba(24, 24, 27, 0.5);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}
.subetapa-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.625rem;
    border-radius: 4px;
    background: var(--bg);
    margin-bottom: 0.5rem;
}
.subetapa-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}
.subetapa-pendiente { background: var(--border); color: var(--text-dim); }
.subetapa-en_curso { background: var(--cyan); color: var(--bg); }
.subetapa-completado { background: var(--emerald); color: var(--bg); }

.subetapa-info { font-size: 0.875rem; }
.subetapa-name { font-weight: 500; }
.subetapa-meta { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.125rem; }

/* JSON paste textarea */
.json-textarea {
    width: 100%;
    height: 16rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--cyan-hover);
    resize: vertical;
}
.json-textarea:focus { outline: none; border-color: var(--cyan); }

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    font-size: 11px;
    color: var(--text-dim);
}
.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--cyan);
    color: var(--bg);
    padding: 0.625rem 1rem;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 60;
    animation: slideUp 0.2s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== LOADING ===== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== EMPTY STATE ===== */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
}
.empty-state svg { color: var(--text-dim); margin-bottom: 0.75rem; }
.empty-state p { margin-bottom: 0.25rem; }
.empty-state .hint { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 1rem; }
