/* ============================================================
   LUKYS ADMIN - Estilos principales
   ============================================================ */

:root {
    --bg: #f7f8f4;
    --surface: #ffffff;
    --surface-2: #f4f5f0;
    --border: #e7e8e1;
    --text: #14150f;
    --text-muted: #6b6d61;

    /* Marca: negro + verde lima (tomado de la referencia visual) */
    --primary: #14150f;
    --primary-dark: #000000;
    --primary-light: #f2ffd6;

    --accent: #c8f135;
    --accent-dark: #a9cf1f;
    --accent-ink: #2c3200;

    --success: #16a34a;
    --success-light: #dcfce7;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --blue: #2563eb;
    --blue-light: #dbeafe;
    --purple: #9333ea;
    --purple-light: #f3e8ff;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 3px rgba(20, 20, 20, 0.06), 0 1px 2px rgba(20, 20, 20, 0.04);
    --shadow-lg: 0 10px 30px rgba(20, 20, 20, 0.14);
    --sidebar-w: 260px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

.text-muted { color: var(--text-muted); }
.text-right { text-align: right; }
.text-center { text-align: center; }

/* ── Layout general ─────────────────────────────────────── */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    padding: 32px 36px 60px;
    max-width: 100%;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
}
.page-header-actions { display: flex; gap: 10px; }

.page-header h1 {
    margin: 0 0 4px;
    font-size: 26px;
    font-weight: 800;
}

/* ── Sidebar ────────────────────────────────────────────── */
.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    background: var(--primary);
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 50;
    transition: transform .25s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 26px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--accent-ink);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}

.sidebar-brand-text strong { display: block; font-size: 17px; font-weight: 800; }
.sidebar-brand-text span { font-size: 12px; color: rgba(255,255,255,0.55); }

.sidebar-nav {
    flex: 1;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    font-size: 14.5px;
    transition: background .15s, color .15s;
}

.nav-item i { width: 18px; text-align: center; }
.nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-item.active { background: var(--accent); color: var(--accent-ink); font-weight: 700; }

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.sidebar-user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.sidebar-user-info { min-width: 0; }
.sidebar-user-info strong { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-info span { font-size: 11.5px; color: rgba(255,255,255,0.5); }

.btn-logout {
    background: rgba(255,255,255,0.08);
    border: none; color: #fff;
    width: 36px; height: 36px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.btn-logout:hover { background: var(--danger); }

.btn-toggle-sidebar {
    display: none;
    position: fixed;
    top: 16px; left: 16px;
    z-index: 60;
    background: var(--surface);
    border: 1px solid var(--border);
    width: 42px; height: 42px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* ── Dashboard Hero ─────────────────────────────────────── */
.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(120deg, #0a0a0a 0%, #1c1c1c 60%, #101010 130%);
    border-radius: 20px;
    padding: 30px 34px;
    margin-bottom: 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(67, 56, 202, 0.25);
}
.dashboard-hero::after {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,241,53,0.22), transparent 70%);
}
.dashboard-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--accent);
    color: var(--accent-ink);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.dashboard-hero h1 { margin: 0 0 6px; font-size: 26px; font-weight: 800; }
.dashboard-hero .text-muted { color: rgba(255,255,255,0.65); margin: 0; font-size: 13.5px; }

.dashboard-hero-badge {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 12px 18px;
    border-radius: 14px;
    backdrop-filter: blur(6px);
    z-index: 1;
    flex-shrink: 0;
}
.dashboard-hero-badge i { font-size: 20px; }
.dashboard-hero-badge strong { display: block; font-size: 13.5px; }
.dashboard-hero-badge span { font-size: 11.5px; color: rgba(255,255,255,0.6); }

/* ── Stats sections ─────────────────────────────────────── */
.stats-section { margin-bottom: 26px; }
.section-title {
    display: flex; align-items: center; gap: 9px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--text-muted);
    margin: 0 0 12px 2px;
}
.section-title i { color: var(--primary); font-size: 12px; }

.stats-grid-single { grid-template-columns: minmax(230px, 340px); }

.stat-card {
    position: relative;
    transition: transform .15s ease, box-shadow .15s ease;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    opacity: 0;
    transition: opacity .15s;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(20,20,43,0.10);
}
.stat-card:hover::before { opacity: 1; }

/* ── Chart card headers ─────────────────────────────────── */
.chart-card-header { margin-bottom: 16px; }
.chart-card-header h3 { margin: 0 0 3px; font-size: 15px; font-weight: 700; }
.chart-card-header p { margin: 0; font-size: 12px; }
.chart-card { transition: box-shadow .15s; }
.chart-card:hover { box-shadow: 0 8px 20px rgba(20,20,43,0.08); }

.activity-card { margin-top: 6px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow);
}

.stat-card-risk { border-color: var(--danger); background: linear-gradient(0deg, var(--danger-light), var(--surface)); }

.stat-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.bg-blue { background: var(--blue-light); color: var(--blue); }
.bg-green { background: var(--success-light); color: var(--success); }
.bg-red { background: var(--danger-light); color: var(--danger); }
.bg-orange { background: var(--warning-light); color: var(--warning); }
.bg-purple { background: var(--purple-light); color: var(--purple); }

.stat-label { display: block; font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.stat-value { display: block; font-size: 22px; font-weight: 800; margin-top: 2px; }

/* ── Charts ─────────────────────────────────────────────── */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}
.chart-card-wide { grid-column: 1 / -1; }

.chart-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.chart-card h3 { margin: 0 0 14px; font-size: 15px; font-weight: 700; }
.chart-card canvas { max-height: 260px; }

/* ── Activity feed ──────────────────────────────────────── */
.activity-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.activity-card h3 { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.activity-list { display: flex; flex-direction: column; gap: 2px; }
.activity-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 10px 4px;
    border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
    width: 32px; height: 32px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 13px;
}
.activity-body { display: flex; flex-direction: column; font-size: 13.5px; }
.activity-body span { color: var(--text-muted); }
.activity-body small { color: #9ca3af; margin-top: 2px; }

/* ── Tabs ───────────────────────────────────────────────── */
.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tab-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text-muted);
    display: flex; align-items: center; gap: 8px;
}
.tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Filters bar ────────────────────────────────────────── */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 22px;
    box-shadow: var(--shadow);
}
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group label { font-size: 11.5px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px; }
.filter-group input, .filter-group select {
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 9px 12px;
    font-size: 13.5px;
    font-family: inherit;
    min-width: 150px;
    background: var(--surface);
}
.filter-group input:focus, .filter-group select:focus { outline: none; border-color: var(--primary); }
.filter-grow { flex: 1; min-width: 180px; }
.filter-actions { flex-direction: row; gap: 8px; }

/* ── Botones ────────────────────────────────────────────── */
.btn-primary, .btn-secondary, .btn-danger, .btn-success, .btn-warning {
    border: none;
    border-radius: 9px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: filter .15s, transform .1s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(0.92); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(0.92); }
.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { filter: brightness(0.92); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; }

/* ── Producto cards grid ────────────────────────────────── */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.producto-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    position: relative;
}

.producto-card.producto-riesgo {
    background: #fff5f5;
    border: 1.5px solid #fca5a5;
}

.riesgo-indicador {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    display: flex; align-items: center; gap: 6px;
    z-index: 2;
}

.producto-imagen {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: var(--surface-2);
}

.producto-body { padding: 14px 16px 6px; flex: 1; }
.producto-body h4 {
    margin: 0 0 6px;
    font-size: 14.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.producto-propietario, .producto-fecha {
    margin: 0 0 4px;
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex; align-items: center; gap: 6px;
}
.producto-meta { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

.producto-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px 16px;
}
.producto-actions button { flex: 1; justify-content: center; }

/* ── Badges ─────────────────────────────────────────────── */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
}
.badge-success { background: var(--success-light); color: var(--success); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-neutral { background: var(--surface-2); color: var(--text-muted); }
.badge-purple { background: var(--purple-light); color: var(--purple); }
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-info { background: #e0f2fe; color: #0369a1; }
.badge-stack { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Administradores ────────────────────────────────────── */
.admin-avatar-placeholder {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--accent-ink);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.row-actions { display: flex; gap: 6px; justify-content: flex-end; }

.modal-box-form {
    max-width: 480px;
    text-align: left;
}
.modal-box-form h3 { text-align: center; margin-bottom: 18px; }

.admin-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; gap: 12px; }
.form-row .form-field { flex: 1; }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.form-field input, .form-field select {
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 13.5px;
    font-family: inherit;
    width: 100%;
}
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--primary); }

.checkbox-row { display: flex; gap: 10px; flex-wrap: wrap; }
.checkbox-pill {
    display: flex; align-items: center; gap: 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}
.checkbox-pill input { accent-color: var(--accent-dark); }
.checkbox-pill:has(input:checked) {
    border-color: var(--accent-dark);
    color: var(--accent-ink);
    background: var(--primary-light);
}

/* ── Empty state ────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    max-width: 440px;
    margin: 0 auto;
}
.empty-state-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin: 0 auto 18px;
}
.empty-state h2 { margin: 0 0 10px; font-size: 19px; }
.empty-state p { line-height: 1.6; }

/* ── Tabla de usuarios ──────────────────────────────────── */
.table-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead th {
    text-align: left;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--text-muted);
    background: var(--surface-2);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.data-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
    vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--surface-2); }

.user-cell { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.user-cell strong { display: block; font-size: 13.5px; }
.user-cell span { font-size: 12px; color: var(--text-muted); }

/* ── Auditoría: teaser en dashboard ─────────────────────── */
.audit-teaser-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 26px;
    box-shadow: var(--shadow);
}
.audit-teaser-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--accent-ink);
    display: flex; align-items: center; justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}
.audit-teaser-text { flex: 1; }
.audit-teaser-text h3 { margin: 0 0 3px; font-size: 15px; font-weight: 700; }
.audit-teaser-text p { margin: 0; font-size: 12.5px; }

/* ── Auditoría: listado completo ────────────────────────── */
.audit-list { display: flex; flex-direction: column; gap: 10px; }
.audit-item {
    display: flex; gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: var(--shadow);
}
.audit-item-body { flex: 1; min-width: 0; }
.audit-item-top {
    display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
    margin-bottom: 4px;
}
.audit-item-top strong { font-size: 14px; }
.audit-item-fecha { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }
.audit-item-body p { margin: 0 0 8px; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.audit-item-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.audit-item-meta span { font-size: 11.5px; color: #9ca3af; display: flex; align-items: center; gap: 5px; }
.audit-item-meta i { font-size: 10.5px; }
.scroll-sentinel {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    color: var(--text-muted);
    font-size: 13.5px;
}
.scroll-sentinel.visible { display: flex; }

/* ── Toasts ─────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 24px; right: 24px;
    display: flex; flex-direction: column; gap: 10px;
    z-index: 200;
}
.toast {
    background: #16182b;
    color: #fff;
    padding: 13px 18px;
    border-radius: 10px;
    display: flex; align-items: center; gap: 10px;
    font-size: 13.5px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .25s, transform .25s;
    max-width: 340px;
}
.toast-show { opacity: 1; transform: translateY(0); }
.toast-success i { color: var(--success); }
.toast-error i { color: #f87171; }
.toast-warning i { color: var(--warning); }
.toast-info i { color: var(--blue); }

/* ── Modal ──────────────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(15, 15, 30, 0.5);
    align-items: center; justify-content: center;
    z-index: 300;
}
.modal-overlay.modal-open { display: flex; }
.modal-box {
    background: var(--surface);
    border-radius: 16px;
    padding: 28px;
    width: 100%; max-width: 380px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.modal-icon {
    width: 54px; height: 54px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    font-size: 20px;
}
.modal-icon-danger { background: var(--danger-light); color: var(--danger); }
.modal-icon-default { background: var(--primary-light); color: var(--primary); }
.modal-box h3 { margin: 0 0 8px; font-size: 17px; }
.modal-box p { margin: 0 0 20px; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions button { flex: 1; justify-content: center; }

/* ── Login ──────────────────────────────────────────────── */
.login-body {
    margin: 0;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at top left, #262a12, #0a0a0a 55%);
    font-family: 'Inter', sans-serif;
}
.login-wrapper { width: 100%; max-width: 400px; padding: 20px; }
.login-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 34px;
    box-shadow: var(--shadow-lg);
}
.login-brand { text-align: center; margin-bottom: 26px; }
.login-brand-icon {
    width: 56px; height: 56px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--accent-ink);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}
.login-brand h1 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.login-brand p { margin: 0; font-size: 13px; color: var(--text-muted); }

.login-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon i:first-child { position: absolute; left: 14px; color: #9ca3af; font-size: 14px; }
.input-icon input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
}
.input-icon input:focus { outline: none; border-color: var(--primary); }
.input-toggle-pass {
    position: absolute; right: 12px;
    background: none; border: none; color: #9ca3af;
}
.login-error {
    background: var(--danger-light);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 13px;
}
.btn-spinner { margin-left: 4px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.sidebar-open { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 76px 18px 50px; }
    .btn-toggle-sidebar { display: flex; align-items: center; justify-content: center; }
    .charts-grid { grid-template-columns: 1fr; }
}
