:root {
    --ll-primary: #2563eb;
    --ll-primary-dark: #1d4ed8;
    --ll-primary-light: #dbeafe;
    --ll-sidebar-bg: #f0f6ff;
    --ll-sidebar-active: #2563eb;
    --ll-bg: #eef2f7;
    --ll-card: #ffffff;
    --ll-text: #1e293b;
    --ll-muted: #64748b;
    --ll-border: #e2e8f0;
    --ll-success: #16a34a;
    --ll-warning: #ea580c;
    --ll-danger: #dc2626;
    --ll-sidebar-w: 240px;
    --ll-radius: 10px;
    --ll-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
}

*, *::before, *::after { box-sizing: border-box; }

body.ll-body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    color: var(--ll-text);
    background: var(--ll-bg);
    -webkit-font-smoothing: antialiased;
}

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

.ll-sidebar {
    width: var(--ll-sidebar-w);
    min-width: var(--ll-sidebar-w);
    background: var(--ll-sidebar-bg);
    border-right: 1px solid var(--ll-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 40;
    overflow-y: auto;
}

.ll-sidebar-brand {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--ll-border);
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: var(--ll-text);
}

.ll-sidebar-brand-icon {
    width: 36px; height: 36px;
    background: var(--ll-primary);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 13px;
}

.ll-sidebar-brand span { font-weight: 700; font-size: 15px; line-height: 1.2; }
.ll-sidebar-brand small { display: block; font-size: 11px; color: var(--ll-muted); font-weight: 400; }

.ll-nav { padding: .75rem .5rem; flex: 1; }

.ll-nav-item {
    display: flex; align-items: center; gap: .65rem;
    padding: .6rem .85rem;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 2px;
    transition: background .15s, color .15s;
}

.ll-nav-item:hover { background: rgba(37, 99, 235, .08); color: var(--ll-primary); }
.ll-nav-item.active { background: var(--ll-sidebar-active); color: #fff; }
.ll-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.ll-main { margin-left: var(--ll-sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

.ll-topbar {
    background: var(--ll-card);
    border-bottom: 1px solid var(--ll-border);
    padding: .75rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 30;
}

.ll-topbar-title { font-size: 1.1rem; font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.ll-topbar-actions { display: flex; align-items: center; gap: .75rem; }

.ll-badge {
    background: var(--ll-primary-light);
    color: var(--ll-primary);
    font-size: 11px; font-weight: 600;
    padding: .25rem .6rem; border-radius: 20px;
}

.ll-btn-outline {
    border: 1px solid var(--ll-border);
    background: #fff;
    padding: .35rem .85rem;
    border-radius: 6px;
    font-size: 12.5px;
    color: var(--ll-muted);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: .4rem;
}

.ll-user { display: flex; align-items: center; gap: .6rem; }
.ll-user-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--ll-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 13px;
}
.ll-user-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.ll-user-email { font-size: 11px; color: var(--ll-muted); }

.ll-content { padding: 1.25rem 1.5rem 2rem; flex: 1; }

/* ── KPI cards ── */
.ll-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .85rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 1400px) { .ll-kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .ll-kpi-grid { grid-template-columns: repeat(2, 1fr); } }

.ll-kpi {
    background: var(--ll-card);
    border-radius: var(--ll-radius);
    box-shadow: var(--ll-shadow);
    padding: 1rem 1.1rem;
    border: 1px solid var(--ll-border);
}

.ll-kpi-label { font-size: 12px; color: var(--ll-muted); margin-bottom: .35rem; }
.ll-kpi-value { font-size: 1.75rem; font-weight: 700; line-height: 1; }
.ll-kpi-sub { font-size: 11px; color: var(--ll-muted); margin-top: .3rem; }

/* ── Charts ── */
.ll-charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: .85rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 1100px) { .ll-charts-row { grid-template-columns: 1fr; } }

.ll-chart-card {
    background: var(--ll-card);
    border-radius: var(--ll-radius);
    box-shadow: var(--ll-shadow);
    border: 1px solid var(--ll-border);
    padding: 1.1rem;
}

.ll-chart-card h3 { font-size: 13px; font-weight: 600; margin: 0 0 .85rem; color: var(--ll-text); }
.ll-donuts { display: flex; flex-direction: column; gap: .85rem; }
.ll-donut-wrap { display: flex; align-items: center; gap: 1rem; }
.ll-donut-canvas { width: 90px !important; height: 90px !important; flex-shrink: 0; }
.ll-donut-legend { font-size: 12px; }
.ll-donut-legend li { display: flex; align-items: center; gap: .4rem; margin-bottom: .25rem; color: var(--ll-muted); }
.ll-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ── Panel / table ── */
.ll-panel {
    background: var(--ll-card);
    border-radius: var(--ll-radius);
    box-shadow: var(--ll-shadow);
    border: 1px solid var(--ll-border);
    overflow: hidden;
}

.ll-panel-header {
    padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--ll-border);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: .5rem;
}

.ll-panel-header h2 { font-size: 14px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: .5rem; }

.ll-panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--ll-primary-light);
    color: var(--ll-primary);
    flex-shrink: 0;
}
.ll-panel-icon svg { width: 16px; height: 16px; }

.ll-btn-primary {
    background: var(--ll-primary);
    color: #fff;
    border: none;
    padding: .45rem 1rem;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: .35rem;
    transition: background .15s;
}
.ll-btn-primary:hover { background: var(--ll-primary-dark); }

.ll-btn-secondary {
    background: #fff;
    color: var(--ll-text);
    border: 1px solid var(--ll-border);
    padding: .45rem 1rem;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: .35rem;
}

.ll-table-wrap { overflow-x: auto; }
.ll-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ll-table th {
    background: #f8fafc;
    padding: .6rem .75rem;
    text-align: left;
    font-weight: 600;
    color: var(--ll-muted);
    white-space: nowrap;
    border-bottom: 1px solid var(--ll-border);
}
.ll-table td { padding: .65rem .75rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.ll-table tr:hover td { background: #f8fafc; }
.ll-table tr:last-child td { border-bottom: none; }

.ll-hostname { color: var(--ll-primary); font-family: monospace; font-size: 11.5px; font-weight: 500; }

.ll-hostname-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--ll-primary);
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 11.5px;
    font-weight: 500;
    text-decoration: none;
    padding: .2rem .45rem;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.ll-hostname-link:hover {
    background: var(--ll-primary-light);
    color: var(--ll-primary-dark);
}
.ll-hostname-icon { width: 13px; height: 13px; flex-shrink: 0; opacity: .75; }
.ll-plan-tag { color: #b45309; font-weight: 500; }
.ll-usage { font-weight: 700; }

.ll-pill {
    display: inline-block;
    padding: .15rem .55rem;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}
.ll-pill.demo { background: #fef3c7; color: #92400e; }
.ll-pill.production { background: #dcfce7; color: #166534; }
.ll-pill.internal { background: #ffedd5; color: #c2410c; }
.ll-pill.ok { background: #dcfce7; color: #166534; }
.ll-pill.warning { background: #fef3c7; color: #92400e; }
.ll-pill.critical { background: #fee2e2; color: #991b1b; }

/* Notificaciones tenant */
.ll-notify-cell { text-align: center; vertical-align: middle; }
.ll-notify-ok {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
}
.ll-notify-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    cursor: default;
}
.ll-notify-badge {
    position: absolute;
    top: -5px;
    right: -7px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}

/* Toggle */
.ll-toggle { position: relative; display: inline-block; width: 38px; height: 22px; }
.ll-toggle input { opacity: 0; width: 0; height: 0; }
.ll-toggle-slider {
    position: absolute; cursor: pointer;
    inset: 0; background: #cbd5e1; border-radius: 22px; transition: .2s;
}
.ll-toggle-slider::before {
    content: ''; position: absolute;
    width: 16px; height: 16px; left: 3px; bottom: 3px;
    background: #fff; border-radius: 50%; transition: .2s;
}
.ll-toggle input:checked + .ll-toggle-slider { background: var(--ll-primary); }
.ll-toggle input:checked + .ll-toggle-slider::before { transform: translateX(16px); }

/* Dropdown menu */
.ll-dropdown { position: relative; display: inline-block; }
.ll-dropdown-btn {
    background: none; border: 1px solid var(--ll-border); cursor: pointer;
    padding: .3rem .45rem; border-radius: 6px; color: var(--ll-muted);
    display: inline-flex; align-items: center; justify-content: center;
}
.ll-dropdown-btn svg { width: 18px; height: 18px; }
.ll-dropdown-btn:hover { background: #f1f5f9; }
.ll-dropdown-menu {
    position: absolute; right: 0; top: 100%;
    margin-top: .35rem;
    background: #fff; border: 1px solid var(--ll-border);
    border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
    min-width: 190px; z-index: 50; padding: .35rem 0;
}

/* Menú flotante fuera de tablas/paneles (teleport al body) */
.ll-dropdown-menu--portal {
    position: fixed;
    right: auto;
    top: auto;
    margin: 0;
    z-index: 10000;
}

.ll-actions-cell {
    position: relative;
    overflow: visible;
}
.ll-dropdown-item {
    display: flex; align-items: center; gap: .5rem;
    padding: .5rem 1rem; font-size: 13px;
    color: var(--ll-text); text-decoration: none;
    background: none; border: none; width: 100%; text-align: left; cursor: pointer;
}
.ll-dropdown-item:hover { background: #f8fafc; }
.ll-dropdown-item--disabled,
.ll-dropdown-item--disabled:hover {
    color: var(--ll-muted);
    cursor: not-allowed;
    opacity: .65;
    background: transparent;
    pointer-events: none;
}
.ll-dropdown-icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--ll-muted); }
.ll-dropdown-item.danger { color: var(--ll-danger); }
.ll-dropdown-item.danger .ll-dropdown-icon { color: var(--ll-danger); }
.ll-dropdown-divider { border-top: 1px solid var(--ll-border); margin: .25rem 0; }

/* Forms */
.ll-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ll-form-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 900px) { .ll-form-grid, .ll-form-grid-2 { grid-template-columns: 1fr; } }

.ll-field label { display: block; font-size: 12px; font-weight: 500; color: var(--ll-muted); margin-bottom: .35rem; }
.ll-input, .ll-select {
    width: 100%;
    border: 1px solid var(--ll-border);
    border-radius: 6px;
    padding: .55rem .75rem;
    font-size: 13.5px;
    background: #f8fafc;
    color: var(--ll-text);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.ll-input:focus, .ll-select:focus {
    border-color: var(--ll-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
    background: #fff;
}
.ll-input-group { display: flex; gap: .5rem; }
.ll-input-suffix { display: flex; align-items: center; }
.ll-input-suffix .ll-input { border-radius: 6px 0 0 6px; }
.ll-input-suffix span {
    background: #f1f5f9; border: 1px solid var(--ll-border); border-left: none;
    padding: .55rem .75rem; border-radius: 0 6px 6px 0;
    font-size: 12px; color: var(--ll-muted); white-space: nowrap;
}

.ll-accordion { border: 1px solid var(--ll-border); border-radius: 8px; margin-bottom: .75rem; overflow: hidden; }
.ll-accordion-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: .75rem 1rem; background: #f8fafc; cursor: pointer;
    font-weight: 600; font-size: 13.5px; border: none; width: 100%; text-align: left;
}
.ll-accordion-body { padding: 1rem; border-top: 1px solid var(--ll-border); }

.ll-checkbox { display: flex; align-items: center; gap: .5rem; font-size: 13px; cursor: pointer; }
.ll-error { color: var(--ll-danger); font-size: 12px; margin-top: .25rem; }
.ll-flash { background: #dcfce7; color: #166534; padding: .6rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: 13px; }

/* Plan cards */
.ll-plans-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.35rem;
    flex-wrap: wrap;
}
.ll-plans-page-head h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ll-text);
}
.ll-plans-page-head p {
    margin: .3rem 0 0;
    font-size: 13px;
    color: var(--ll-muted);
    max-width: 560px;
    line-height: 1.45;
}

.ll-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}
@media (max-width: 980px) {
    .ll-plans-grid { grid-template-columns: 1fr; max-width: 420px; }
}

.ll-plan-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .35);
    padding: 1.6rem 1.4rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ll-plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -20px rgba(15, 23, 42, .4);
}
.ll-plan-card.is-featured {
    border: 2px solid #2563eb;
    box-shadow: 0 18px 40px -18px rgba(37, 99, 235, .45);
    padding-top: 1.9rem;
}
.ll-plan-card.is-inactive { opacity: .72; }

.ll-plan-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: .28rem .75rem;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(37, 99, 235, .35);
}

.ll-plan-card-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    min-height: 1.6rem;
}
.ll-plan-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}
.ll-plan-inactive {
    font-size: 11px;
    background: #fef3c7;
    color: #92400e;
    padding: .15rem .5rem;
    border-radius: 4px;
}

.ll-plan-price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: .15rem;
    margin: 1rem 0 .15rem;
    color: #0f172a;
    line-height: 1;
}
.ll-plan-currency {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: .45rem;
}
.ll-plan-amount {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.ll-plan-cents {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: .4rem;
}
.ll-plan-igv {
    font-size: 12px;
    color: #64748b;
    margin-bottom: .15rem;
}
.ll-plan-cycle {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 1.1rem;
}

.ll-plan-features {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0 0 1.15rem;
    flex: 1;
}
.ll-plan-features li {
    padding: .42rem 0;
    font-size: 13.5px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: .55rem;
    border-top: 1px solid #f1f5f9;
}
.ll-plan-features li:first-child { border-top: none; }
.ll-plan-features li::before {
    content: '✓';
    color: #2563eb;
    font-weight: 800;
    font-size: 13px;
}
.ll-plan-features li.is-muted {
    color: #94a3b8;
}
.ll-plan-features li.is-muted::before {
    content: '◌';
    color: #cbd5e1;
}

.ll-plan-card-actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}
.ll-plan-edit-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.ll-modules-section {
    margin-top: 1.4rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ll-border);
}
.ll-modules-title {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
}
.ll-modules-head p {
    margin: .25rem 0 0;
    font-size: 12.5px;
    color: var(--ll-muted);
    line-height: 1.45;
}
.ll-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: .9rem;
}
@media (max-width: 720px) {
    .ll-module-grid { grid-template-columns: 1fr; }
}
.ll-module-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem .9rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.ll-module-card.is-on {
    background: #eff6ff;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}
.ll-module-card.is-soon {
    opacity: .72;
    cursor: not-allowed;
    background: #f1f5f9;
}
.ll-module-card-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
    background: #fff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}
.ll-module-card-icon svg { width: 20px; height: 20px; }
.ll-module-card-body { flex: 1; min-width: 0; }
.ll-module-card-name { font-size: 13.5px; font-weight: 700; color: #0f172a; }
.ll-module-card-desc { font-size: 12px; color: #64748b; margin-top: .12rem; line-height: 1.35; }
.ll-module-soon {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    background: #fef3c7;
    color: #92400e;
    padding: .22rem .45rem;
    border-radius: 999px;
    white-space: nowrap;
}
.ll-module-switch {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    flex: 0 0 auto;
}

/* Payment summary */
.ll-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; margin-bottom: 1.25rem; }
@media (max-width: 900px) { .ll-pay-grid { grid-template-columns: repeat(2, 1fr); } }
.ll-pay-card { border-radius: var(--ll-radius); padding: 1.1rem; color: #fff; }
.ll-pay-card.paid { background: linear-gradient(135deg, #16a34a, #15803d); }
.ll-pay-card.pending { background: linear-gradient(135deg, #ea580c, #c2410c); }
.ll-pay-card.overdue { background: linear-gradient(135deg, #e11d48, #be123c); }
.ll-pay-card.voided { background: linear-gradient(135deg, #64748b, #475569); }
.ll-pay-amount { font-size: 1.5rem; font-weight: 700; }
.ll-pay-label { font-size: 12px; opacity: .9; }

/* Login — Super Admin (premium SaaS) */
@keyframes ll-orb-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(14px, -10px) scale(1.04); }
}

@keyframes ll-grid-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .65; }
}

.ll-login-body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #eef2f8;
    -webkit-font-smoothing: antialiased;
}

.ll-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

/* ── Panel izquierdo ── */
.ll-login-brand {
    position: relative;
    overflow: hidden;
    background: #070d1a;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    padding: clamp(2rem, 4vw, 3.5rem);
}

.ll-login-brand-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 15% 20%, rgba(59, 130, 246, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 55% 45% at 85% 75%, rgba(168, 85, 247, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse 40% 35% at 60% 10%, rgba(236, 72, 153, 0.12) 0%, transparent 45%),
        linear-gradient(160deg, #070d1a 0%, #0c1830 45%, #101828 100%);
}

.ll-login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
}

.ll-login-orb--1 {
    width: 280px; height: 280px;
    top: -60px; left: -40px;
    background: #3b82f6;
    animation: ll-orb-drift 14s ease-in-out infinite;
}

.ll-login-orb--2 {
    width: 220px; height: 220px;
    bottom: 10%; right: -30px;
    background: #a855f7;
    animation: ll-orb-drift 18s ease-in-out infinite reverse;
}

.ll-login-orb--3 {
    width: 160px; height: 160px;
    top: 45%; left: 55%;
    background: #ec4899;
    opacity: 0.35;
    animation: ll-orb-drift 11s ease-in-out infinite 2s;
}

.ll-login-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.5) 0%, transparent 85%);
    animation: ll-grid-pulse 8s ease-in-out infinite;
}

.ll-login-brand-content {
    position: relative;
    z-index: 1;
    max-width: 460px;
}

.ll-login-brand-logo {
    max-width: min(240px, 70vw);
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.ll-login-brand-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 .85rem;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.ll-login-brand-title span {
    color: #60a5fa;
}

.ll-login-brand-text {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 2.25rem;
}

.ll-login-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.ll-login-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.ll-login-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.12);
    color: #93c5fd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.08);
}

.ll-login-feature-icon svg { width: 22px; height: 22px; }

.ll-login-features strong {
    display: block;
    font-size: .92rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: .2rem;
}

.ll-login-features small {
    font-size: .82rem;
    color: #64748b;
    line-height: 1.4;
}

/* ── Panel derecho ── */
.ll-login-main {
    background: #eef2f8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    min-height: 100vh;
}

.ll-login-card {
    position: relative;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 20px 50px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    padding: 2rem 2rem 1.5rem;
    width: 100%;
    max-width: 440px;
}

.ll-login-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 21px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(168, 85, 247, 0.25), rgba(236, 72, 153, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.ll-login-version-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 11px;
    font-weight: 600;
    color: #6366f1;
    background: #eef2ff;
    border: 1px solid #e0e7ff;
    padding: .3rem .65rem;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.ll-login-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-right: 4.5rem;
}

.ll-login-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ll-login-card-icon svg { width: 26px; height: 26px; }

.ll-login-card-head h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.ll-login-card-head p {
    margin: .25rem 0 0;
    font-size: .88rem;
    color: #64748b;
}

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

.ll-field-icon label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: .45rem;
}

.ll-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ll-input-wrap > svg:first-of-type {
    position: absolute;
    left: .9rem;
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
}

.ll-field-icon .ll-input {
    width: 100%;
    padding: .72rem .9rem .72rem 2.55rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: .92rem;
    color: #0f172a;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.ll-input--toggle { padding-right: 2.75rem !important; }

.ll-field-icon .ll-input::placeholder { color: #94a3b8; }

.ll-field-icon .ll-input:focus {
    border-color: #6366f1;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.ll-password-toggle {
    position: absolute;
    right: .65rem;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s, background .15s;
    z-index: 2;
}

.ll-password-toggle:hover {
    color: #6366f1;
    background: #f1f5f9;
}

.ll-password-toggle svg { width: 18px; height: 18px; }

.ll-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: -.15rem;
}

.ll-login-remember {
    margin: 0;
    font-size: .85rem;
    color: #475569;
}

.ll-login-forgot {
    font-size: .85rem;
    font-weight: 500;
    color: #6366f1;
    text-decoration: none;
    transition: color .15s;
}

.ll-login-forgot:hover { color: #4f46e5; text-decoration: underline; }

.ll-login-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .82rem 1.25rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #2563eb 55%, #2563eb 100%);
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
    transition: transform .2s, box-shadow .2s, filter .2s;
    margin-top: .25rem;
    position: relative;
    overflow: hidden;
}

.ll-login-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-18deg);
    transition: left .55s ease;
}

.ll-login-submit:hover:not(:disabled)::after {
    left: 140%;
}

.ll-login-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4);
    filter: brightness(1.05);
}

.ll-login-submit:active:not(:disabled) { transform: translateY(0); }
.ll-login-submit:disabled { opacity: .75; cursor: wait; }
.ll-login-submit svg { width: 18px; height: 18px; }

.ll-login-social-block {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.social-networks {
    display: flex;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.social-networks a {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e2e8f0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.45rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: transform .2s, box-shadow .2s, border-color .2s, color .2s, background .2s;
}

.social-networks a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    background: #fff;
}

.social-networks a.social-wa:hover { color: #25d366; border-color: #bbf7d0; }
.social-networks a.social-fb:hover { color: #1877f2; border-color: #bfdbfe; }
.social-networks a.social-yt:hover { color: #ff0000; border-color: #fecaca; }
.social-networks a.social-tt:hover { color: #000; border-color: #e2e8f0; }

.ll-login-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin: 1.15rem 0 0;
    font-size: .75rem;
    color: #94a3b8;
    text-align: center;
}

.ll-login-secure svg { width: 14px; height: 14px; flex-shrink: 0; }

.ll-login-page-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: .78rem;
    color: #94a3b8;
    line-height: 1.5;
    max-width: 440px;
}

.ll-login-page-footer a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
}

.ll-login-page-footer a:hover { color: #6366f1; text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .ll-login-shell { grid-template-columns: 1fr; }
    .ll-login-brand {
        min-height: auto;
        padding: 2rem 1.5rem 1.75rem;
    }
    .ll-login-brand-content { max-width: 100%; }
    .ll-login-features { display: none; }
    .ll-login-brand-text { margin-bottom: 0; font-size: .92rem; }
    .ll-login-brand-logo { max-width: 180px; margin-bottom: 1.25rem; }
    .ll-login-main { min-height: auto; padding-top: 0; }
}

@media (max-width: 480px) {
    .ll-login-card { padding: 1.5rem 1.25rem 1.25rem; border-radius: 16px; }
    .ll-login-card-head { padding-right: 0; flex-wrap: wrap; }
    .ll-login-version-badge { position: static; display: inline-block; margin-bottom: .75rem; }
    .ll-login-options { flex-direction: column; align-items: flex-start; }
    .social-networks { gap: .6rem; }
    .social-networks a { width: 44px; height: 44px; }
}

.ll-empty { text-align: center; padding: 2.5rem; color: var(--ll-muted); }
.ll-empty a { color: var(--ll-primary); font-weight: 600; }

[x-cloak] { display: none !important; }

.ll-filters { padding: .75rem 1.1rem; border-bottom: 1px solid var(--ll-border); display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.ll-search { max-width: 320px; }

/* ── Settings (configuraciones) ── */
.ll-cfg {
    background: var(--ll-card);
    border-radius: 14px;
    border: 1px solid var(--ll-border);
    box-shadow: var(--ll-shadow);
    overflow: hidden;
}

.ll-cfg-top {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
    border-bottom: 1px solid var(--ll-border);
}

.ll-cfg-top-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--ll-primary-light);
    color: var(--ll-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ll-cfg-top h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ll-text);
}

.ll-cfg-body {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 560px;
}

@media (max-width: 960px) {
    .ll-cfg-body { grid-template-columns: 1fr; }
    .ll-cfg-nav { border-right: none; border-bottom: 1px solid var(--ll-border); }
}

.ll-cfg-nav {
    padding: 1rem;
    background: #f8fafc;
    border-right: 1px solid var(--ll-border);
}

.ll-cfg-search-wrap {
    position: relative;
    margin-bottom: .85rem;
}

.ll-cfg-search-wrap svg {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--ll-muted);
    pointer-events: none;
}

.ll-cfg-search {
    width: 100%;
    padding: .6rem .75rem .6rem 2.25rem;
    border: 1px solid var(--ll-border);
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.ll-cfg-search:focus {
    border-color: var(--ll-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.ll-cfg-nav-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ll-muted);
    margin: 0 0 .5rem .25rem;
}

.ll-cfg-nav-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: 100%;
    padding: .65rem .75rem;
    margin-bottom: 4px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #475569;
    font-size: 13.5px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
}

.ll-cfg-nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: .75;
}

.ll-cfg-nav-item:hover {
    background: rgba(37, 99, 235, .06);
    color: var(--ll-primary);
}

.ll-cfg-nav-item.active {
    background: var(--ll-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .25);
}

.ll-cfg-nav-item.active svg { opacity: 1; }

.ll-cfg-main {
    padding: 1.5rem 1.75rem 1.25rem;
    background: #fff;
}

.ll-cfg-main-head {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.ll-cfg-main-head h3 {
    margin: 0 0 .35rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ll-text);
}

.ll-cfg-main-head p {
    margin: 0;
    font-size: 13px;
    color: var(--ll-muted);
    line-height: 1.5;
    max-width: 640px;
}

.ll-cfg-form {
    display: grid;
    gap: 1.15rem;
    max-width: 720px;
}

.ll-cfg-field label.ll-cfg-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ll-text);
    margin-bottom: .4rem;
}

.ll-cfg-key {
    display: inline-block;
    margin-left: .35rem;
    padding: .1rem .4rem;
    border-radius: 4px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
    font-family: ui-monospace, monospace;
    vertical-align: middle;
}

.ll-cfg-input,
.ll-cfg-textarea {
    width: 100%;
    border: 1px solid var(--ll-border);
    border-radius: 8px;
    padding: .65rem .85rem;
    font-size: 13.5px;
    background: #f8fafc;
    color: var(--ll-text);
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.ll-cfg-textarea { min-height: 88px; resize: vertical; line-height: 1.5; }

.ll-cfg-input:focus,
.ll-cfg-textarea:focus {
    border-color: var(--ll-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
    background: #fff;
}

.ll-cfg-hint {
    margin: .4rem 0 0;
    font-size: 12px;
    color: var(--ll-muted);
    line-height: 1.45;
}

.ll-cfg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 700px) {
    .ll-cfg-row { grid-template-columns: 1fr; }
}

.ll-cfg-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border: 1px solid var(--ll-border);
    border-radius: 10px;
    background: #f8fafc;
}

.ll-cfg-toggle-text strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ll-text);
}

.ll-cfg-toggle-text span {
    font-size: 12px;
    color: var(--ll-muted);
}

.ll-cfg-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.ll-cfg-footer .ll-btn-primary {
    padding: .6rem 1.5rem;
    border-radius: 8px;
    font-size: 14px;
}

.ll-cfg-alert {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 13px;
    font-weight: 500;
}

.ll-cfg-alert svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Campos sensibles (settings) ── */
.ll-cfg-secret-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}

.ll-cfg-secret-input {
    width: 100%;
    padding-right: 2.75rem !important;
}

.ll-cfg-secret-masked {
    -webkit-text-security: disc;
    text-security: disc;
}

.ll-cfg-secret-toggle {
    position: absolute;
    top: 50%;
    right: .55rem;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .15s, background .15s;
    z-index: 2;
}

.ll-cfg-secret-wrap textarea + .ll-cfg-secret-toggle {
    top: .65rem;
    transform: none;
}

.ll-cfg-secret-toggle:hover {
    color: var(--ll-primary);
    background: #f1f5f9;
}

.ll-cfg-secret-toggle svg {
    width: 18px;
    height: 18px;
}

/* ── Sidebar logo ── */
.ll-sidebar-brand-icon--logo {
    background: #fff;
    border: 1px solid var(--ll-border);
    padding: 4px;
    overflow: hidden;
}

.ll-sidebar-brand-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ── Perfil ── */
.ll-profile-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 1.25rem;
    align-items: start;
}

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

.ll-profile-card { overflow: hidden; }

.ll-profile-logo-block {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: .5rem;
}

.ll-profile-logo-preview {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    border: 1px solid var(--ll-border);
    background: #f8fafc;
    padding: .5rem;
    flex-shrink: 0;
}

.ll-profile-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ll-profile-token-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* ── Actualización del sistema ── */
.ll-update-repo-head {
    padding: .85rem 1.25rem;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
    border-bottom: 1px solid var(--ll-border);
}

.ll-update-repo-head h3 {
    margin: 0;
    font-size: 1rem;
    color: #1e3a8a;
}

.ll-update-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #312e81 100%);
    color: #fff;
    border-radius: 14px 14px 0 0;
    padding: 1.5rem 1.75rem;
}

.ll-update-hero h2 {
    margin: 0 0 .35rem;
    font-size: 1.35rem;
}

.ll-update-hero p {
    margin: 0;
    color: #cbd5e1;
    font-size: .9rem;
    max-width: 640px;
}

.ll-update-wizard .ll-panel {
    border-radius: 0 0 14px 14px;
    border-top: none;
}

.ll-update-steps {
    display: flex;
    gap: .5rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--ll-border);
    overflow-x: auto;
}

.ll-update-step {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: 12px;
    color: var(--ll-muted);
    white-space: nowrap;
    padding: .35rem .65rem;
    border-radius: 20px;
    background: #f8fafc;
}

.ll-update-step.is-active {
    color: var(--ll-primary);
    background: #eff6ff;
    font-weight: 600;
}

.ll-update-step.is-done {
    color: #166534;
    background: #ecfdf5;
}

.ll-update-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    background: #e2e8f0;
}

.ll-update-step.is-active .ll-update-step-num { background: var(--ll-primary); color: #fff; }
.ll-update-step.is-done .ll-update-step-num { background: #16a34a; color: #fff; }

.ll-update-body { padding: 1.25rem 1.5rem 1.5rem; }
.ll-update-body h4 { margin: 0 0 .5rem; }

.ll-update-checks {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
    display: grid;
    gap: .5rem;
}

.ll-update-checks li {
    padding: .65rem .85rem;
    border-radius: 8px;
    border: 1px solid var(--ll-border);
    font-size: 13px;
}

.ll-update-checks li.ok { background: #f0fdf4; border-color: #bbf7d0; }
.ll-update-checks li.fail { background: #fef2f2; border-color: #fecaca; }
.ll-update-checks li span { display: block; color: var(--ll-muted); font-size: 12px; margin-top: .15rem; }

.ll-update-log {
    margin-top: 1rem;
    padding: .85rem 1rem;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    max-height: 240px;
    overflow: auto;
    white-space: pre-wrap;
}

.ll-update-success {
    margin-top: .25rem;
    padding: 1rem 1.1rem;
    border-radius: 10px;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
}

.ll-update-success h4 {
    margin: 0 0 .35rem;
    color: #166534;
}

.ll-update-success p {
    margin: 0;
    color: #15803d;
    font-size: 14px;
}

.ll-update-flash {
    margin-top: 1rem;
    padding: .75rem 1rem;
    border-radius: 8px;
    font-size: 13px;
}

.ll-update-flash.ok {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* Confirmación eliminar cliente */
.ll-confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.ll-confirm-dialog {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
    padding: 1.5rem 1.5rem 1.25rem;
    text-align: center;
    animation: ll-confirm-in .18s ease-out;
}

@keyframes ll-confirm-in {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.ll-confirm-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #fef2f2;
    color: var(--ll-danger);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ll-confirm-icon svg { width: 26px; height: 26px; }

.ll-confirm-title {
    margin: 0 0 .5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ll-text);
}

.ll-confirm-text {
    margin: 0 0 1.25rem;
    font-size: 13px;
    line-height: 1.55;
    color: var(--ll-muted);
}

.ll-confirm-text strong {
    color: var(--ll-text);
    font-weight: 600;
}

.ll-confirm-actions {
    display: flex;
    gap: .65rem;
    justify-content: center;
    flex-wrap: wrap;
}

.ll-btn-danger {
    background: var(--ll-danger);
    color: #fff;
    border: none;
    padding: .5rem 1.15rem;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-width: 110px;
    transition: background .15s, transform .1s;
}

.ll-btn-danger:hover { background: #b91c1c; }
.ll-btn-danger:active { transform: scale(0.98); }

.ll-confirm-actions .ll-btn-secondary {
    min-width: 110px;
    padding: .5rem 1.15rem;
    border-radius: 8px;
    font-weight: 600;
}
