/* ==========================================================================
   1. VARIABLES DE DISEÑO (Identidad Cyberpunk/Financiera)
   ========================================================================== */
:root {
    --bg-main: #0b0e14; /* Fondo profundo de la app */
    --bg-card: #121824; /* Fondo de paneles y tarjetas */
    --bg-input: #1a2333; /* Fondo de formularios */

    --neon-cyan: #00f2fe; /* Azul/celeste brillante */
    --neon-green: #00e676; /* Verde ingresos */
    --neon-red: #ff3d71; /* Rojo egresos */

    --text-light: #ffffff;
    --text-muted: #6c7a9c; /* Gris para secundarios */

    --border-radius: 12px;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   2. ESTRUCTURA BASE Y ESTRUCTURA DEL CONTENEDOR (MainLayout)
   ========================================================================== */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-light);
    margin: 0;
    padding: 0;
}

/* Ocultar flechas de inputs numéricos en toda la app */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding-bottom: 2.75rem;
}

.top-row {
    background-color: var(--bg-card);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

    .top-row ::deep a, .top-row ::deep .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
        color: var(--text-muted);
    }

        .top-row ::deep a:hover {
            text-decoration: underline;
            color: var(--text-light);
        }

.content {
    padding-top: 1.5rem;
    min-width: 0;
    max-width: 100%;
}

/* Pantallas Grandes: Menú a la izquierda, contenido a la derecha */
@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        z-index: 20;
        flex-shrink: 0;
        transition: width 0.3s ease;
    }

        /* Si colapsas el sidebar de Blazor reduciendo su ancho */
        .sidebar.collapsed {
            width: 70px;
        }

    main {
        flex: 1;
        min-width: 0;
        overflow-x: clip;
        overflow-y: auto;
    }
}

/* ==========================================================================
   3. ESTILOS COMPLETOS DEL NAVMENU (Menú Lateral)
   ========================================================================== */
.navbar-brand {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--neon-cyan) !important;
}

.nav-scrollable {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 3.5rem);
    background-color: var(--bg-card);
}

.nav-item {
    padding: 0 0.75rem;
    margin-bottom: 0.25rem;
}

    .nav-item ::deep a {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        color: var(--text-light) !important;
        background-color: transparent;
        border-radius: 8px;
        padding: 0.75rem 1rem;
        text-decoration: none;
        transition: all 0.25s ease-in-out;
    }

        .nav-item ::deep a:hover {
            background-color: rgba(0, 242, 254, 0.08) !important;
            color: var(--neon-cyan) !important;
        }

        .nav-item ::deep a.active {
            background: linear-gradient(135deg, rgba(0, 114, 255, 0.15), rgba(0, 242, 254, 0.15)) !important;
            border-left: 4px solid var(--neon-cyan) !important;
            font-weight: bold;
        }

        /* Íconos de Bootstrap unificados */
        .nav-item ::deep a span.bi {
            font-size: 1.25rem !important;
            width: 24px !important;
            height: 24px !important;
            display: inline-flex !important;
            justify-content: center !important;
            align-items: center !important;
            margin-right: 12px;
            color: var(--neon-cyan);
            transition: margin 0.25s ease-in-out;
        }

        .nav-item ::deep a .nav-text {
            transition: opacity 0.2s ease;
            white-space: nowrap;
        }

/* --------------------------------------------------------------------------
   CENTRADO ABSOLUTO CUANDO EL MENU SE COLAPSA (collapsed)
   -------------------------------------------------------------------------- */
@media (min-width: 641px) {
    .sidebar.collapsed .nav-item ::deep a,
    nav.collapsed .nav-item ::deep a {
        justify-content: center !important;
        padding: 0.75rem 0 !important;
    }

        .sidebar.collapsed .nav-item ::deep a .nav-text,
        nav.collapsed .nav-item ::deep a .nav-text {
            display: none !important; /* Oculta texto */
        }

        .sidebar.collapsed .nav-item ::deep a span.bi,
        nav.collapsed .nav-item ::deep a span.bi {
            margin-right: 0 !important; /* Quita margen para centrar */
        }
}

/* ==========================================================================
   4. COMPONENTES GLOBALES (Dashboard, Tablas y Formularios)
   ========================================================================== */
.custom-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.custom-input {
    background-color: var(--bg-input);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

    .custom-input:focus {
        border-color: var(--neon-cyan);
        box-shadow: 0 0 8px rgba(0, 242, 254, 0.3);
        outline: none;
    }


/* Tooltip sidebar colapsado */
.nav-tooltip {
    display: none;
    position: absolute;
    left: 62px;
    top: 50%;
    transform: translateY(-50%);
    background: #1a2333;
    color: #00f2fe;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid rgba(0,242,254,0.3);
    font-size: 0.82rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 9999;
    pointer-events: none;
}

.sidebar-collapsed .nav-link-item {
    position: relative;
}

    .sidebar-collapsed .nav-link-item:hover .nav-tooltip {
        display: block;
    }

/* ==========================================================================
   5. PÁGINAS OSCURAS UNIFICADAS
   ========================================================================== */
.page-dark {
    background: #060913;
    min-height: 100vh;
    color: #f0f4f8;
    padding: 1.25rem;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.page-eyebrow {
    color: #00f2fe;
    letter-spacing: 1px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.page-border {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-card {
    background: rgba(22, 30, 49, 0.85);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem;
}

.dark-table {
    width: 100%;
    font-size: 0.85rem;
    color: #f0f4f8;
}

.dark-table thead tr {
    color: #00f2fe;
    text-transform: uppercase;
    font-size: 0.72rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.dark-table th,
.dark-table td {
    padding: 0.5rem 0.4rem;
    vertical-align: middle;
}

.dark-table tfoot tr {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.dark-input {
    width: 100%;
    background: #1a2333;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #f0f4f8;
    padding: 4px 8px;
    font-size: 0.85rem;
    outline: none;
}

.dark-input:focus {
    border-color: #00f2fe;
}

.dark-badge {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #8899bb;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.modal-caja {
    background: #121824;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 24px;
    width: 320px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.modal-input {
    width: 100%;
    background: #1a2333;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #f0f4f8;
    padding: 8px 12px;
    font-size: 0.9rem;
    outline: none;
    display: block;
}

.modal-input:focus {
    border-color: #00f2fe;
}

/* Sidebar: anular subrayado de Bootstrap en los NavLink */
.sidebar-wrapper a.nav-link-item,
.sidebar-wrapper a.nav-link-item:hover,
.sidebar-wrapper a.nav-link-item:focus,
.sidebar-wrapper a.nav-link-item:active,
.sidebar-wrapper a.nav-link-item.active,
.sidebar-wrapper a.nav-link-item:visited {
    text-decoration: none !important;
}

/* ==========================================================================
   COMPARADOR DE CUOTAS
   ========================================================================== */
.cuotas-page {
    background: #060913;
    min-height: 100vh;
    color: #f0f4f8;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.cuotas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.cuotas-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cuotas-header-title {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
}

.cuotas-header-title h1 {
    font-size: 1.35rem;
}

.cuotas-btn-link {
    background: transparent;
    border: 0;
    color: #8fd6ff;
    font-size: 0.78rem;
    padding: 0.25rem 0.4rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cuotas-btn-link:hover {
    color: #00f2fe;
}

.cuotas-progreso-inline {
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-top: 0.45rem;
}

.cuotas-progreso-inline .cuotas-progreso-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #00c2ff, #00f2fe);
    transition: width 0.35s ease;
}

.cuotas-enlaces-compact {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cuotas-enlace-inline {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex: 1 1 180px;
    min-width: 0;
    margin: 0;
}

.cuotas-enlace-inline .cuotas-enlace-label {
    font-size: 0.68rem;
    min-width: 1.4rem;
    text-align: center;
}

.cuotas-input-compact {
    padding: 0.28rem 0.45rem !important;
    font-size: 0.78rem !important;
    min-height: 0 !important;
}

.cuotas-flash-compact {
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: #8ee4ff;
    font-size: 0.78rem;
}

.cuotas-kicker {
    color: #00f2fe;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    font-weight: 700;
}

.cuotas-sub {
    color: #6c7a9c;
    font-size: 0.85rem;
}

.cuotas-updated {
    color: #6c7a9c;
    font-size: 0.8rem;
}

.cuotas-btn-refresh {
    background: linear-gradient(135deg, #00f2fe, #00c2ff);
    border: 0;
    color: #041018;
    font-weight: 700;
    padding: 0.55rem 1rem;
    border-radius: 10px;
}

.cuotas-btn-refresh:disabled {
    opacity: 0.7;
}

.cuotas-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #d8e4ff;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: 10px;
}

.cuotas-btn-secondary:disabled {
    opacity: 0.7;
}

.cuotas-header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cuotas-modo-switch {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    overflow: hidden;
}

.cuotas-modo-btn {
    border: 0;
    background: transparent;
    color: #9aa8c7;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    cursor: pointer;
}

.cuotas-modo-btn.is-active {
    background: rgba(45, 212, 191, 0.18);
    color: #5eead4;
}

.cuotas-modo-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cuotas-manual-upload {
    margin-top: 0.55rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px dashed rgba(94, 234, 212, 0.25);
    background: rgba(8, 14, 28, 0.55);
}

.cuotas-manual-hint {
    margin: 0 0 0.55rem;
    color: #7f8cab;
    font-size: 0.78rem;
}

.cuotas-manual-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.cuotas-manual-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    padding: 0.45rem 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cuotas-manual-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    min-width: 0;
}

.cuotas-manual-pending {
    color: #5eead4;
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 9rem;
}

.cuotas-manual-input {
    width: 100%;
    font-size: 0.72rem;
    color: #c7d2e8;
}

.cuotas-manual-preview-link {
    display: block;
    text-decoration: none;
    color: #7f8cab;
    font-size: 0.7rem;
}

.cuotas-manual-preview-img {
    display: block;
    width: 100%;
    max-height: 72px;
    object-fit: cover;
    object-position: top;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
    .cuotas-manual-grid {
        grid-template-columns: 1fr;
    }
}

.cuotas-enlaces-panel {
    background: rgba(8, 14, 28, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1rem 1.1rem;
}

.cuotas-enlaces-header {
    margin-bottom: 0.85rem;
}

.cuotas-enlaces-hint {
    color: #7f8cab;
    font-size: 0.82rem;
    margin-top: 0.35rem !important;
}

.cuotas-enlaces-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.cuotas-enlace-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.cuotas-enlace-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cuotas-enlace-field .cuotas-search {
    max-width: none;
    width: 100%;
}

.cuotas-enlaces-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.85rem;
    flex-wrap: wrap;
}

.cuotas-enlaces-msg {
    color: #8fd6ff;
    font-size: 0.82rem;
}

@media (max-width: 992px) {
    .cuotas-enlaces-grid {
        grid-template-columns: 1fr;
    }
}

.cuotas-alert {
    background: rgba(255, 61, 113, 0.12);
    border: 1px solid rgba(255, 61, 113, 0.35);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #ffb3c7;
    font-size: 0.85rem;
}

.cuotas-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cuotas-search {
    max-width: 320px;
    background: #121824 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f0f4f8 !important;
    caret-color: #00f2fe;
    -webkit-text-fill-color: #f0f4f8;
}

.cuotas-search:focus,
.cuotas-search:active,
.cuotas-search:hover {
    color: #f0f4f8 !important;
    background: #121824 !important;
    -webkit-text-fill-color: #f0f4f8;
    box-shadow: 0 0 0 0.15rem rgba(0, 242, 254, 0.15);
    border-color: rgba(0, 242, 254, 0.35) !important;
}

.cuotas-search::placeholder {
    color: #6c7a9c;
    opacity: 1;
}

.cuotas-search:-webkit-autofill,
.cuotas-search:-webkit-autofill:hover,
.cuotas-search:-webkit-autofill:focus {
    -webkit-text-fill-color: #f0f4f8 !important;
    box-shadow: 0 0 0 1000px #121824 inset !important;
    caret-color: #00f2fe;
}

.cuotas-count {
    color: #6c7a9c;
    font-size: 0.85rem;
}

.cuotas-loading,
.cuotas-empty {
    background: rgba(22, 30, 49, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    color: #9fb0d0;
}

.cuotas-layout {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.cuotas-list-wrap {
    min-width: 0;
}

.cuotas-calc-column {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
}

.cuotas-calc-row {
    display: grid;
    grid-template-columns: 300px minmax(0, 300px);
    gap: 1rem;
    align-items: start;
}

.cuotas-reloj-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cuotas-reloj-hora-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.cuotas-reloj-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c7a9c;
}

.cuotas-reloj-hora {
    font-size: 1.35rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #e8f0ff;
    letter-spacing: 0.04em;
}

.cuotas-reloj-fecha {
    font-size: 0.78rem;
    color: #8b9ab8;
    text-transform: capitalize;
}

.cuotas-alerta-no-apostar {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(248, 113, 113, 0.55);
    color: #fecaca;
    font-size: 0.78rem;
    animation: cuotas-alerta-pulse 1.2s ease-in-out infinite;
}

.cuotas-alerta-no-apostar strong {
    color: #fca5a5;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cuotas-alerta-no-apostar-soft {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fde68a;
    animation: none;
}

.cuotas-row-urgente {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(248, 113, 113, 0.45) !important;
    box-shadow: inset 3px 0 0 #ef4444;
}

.cuotas-row-urgente .cuotas-row-time,
.cuotas-row-urgente .cuotas-row-teams {
    color: #fecaca;
}

.cuotas-row-urgente-tag {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    color: #fca5a5;
    margin-top: 0.1rem;
}

.cuotas-calc-urgente {
    border-color: rgba(248, 113, 113, 0.55) !important;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35), 0 8px 24px rgba(239, 68, 68, 0.12);
}

@keyframes cuotas-alerta-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.82; }
}

.cuotas-left {
    display: grid;
    grid-template-columns: max-content 300px;
    gap: 1rem;
    align-items: start;
    min-width: 0;
}

.cuotas-surebet-count {
    color: #7dffb6;
    font-size: 0.82rem;
    font-weight: 700;
}

.cuotas-margen-leyenda {
    font-size: 0.72rem;
    color: #6c7a9c;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.cuotas-margen-leyenda::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 2px;
    background: linear-gradient(90deg, #7dffb6 0%, #d6e86a 33%, #ffc266 66%, #ff8fab 100%);
}

.cuotas-date-header {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0.4rem 0.65rem 0.25rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #00f2fe;
    background: rgba(6, 9, 19, 0.95);
}

.cuotas-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: max-content;
    max-width: 100%;
    background: rgba(22, 30, 49, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.35rem;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}

.cuotas-list-head,
.cuotas-row {
    display: grid;
    grid-template-columns: 5.2rem minmax(8rem, 15rem) repeat(3, 3.35rem) 4.5rem;
    align-items: center;
    gap: 0.35rem 0.45rem;
    width: max-content;
    min-width: 100%;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
}

.cuotas-list-head {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    margin-bottom: 0.15rem;
    background: rgba(6, 9, 19, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c7a9c;
}

.cuotas-list-head-mercado {
    text-align: center;
    color: #00f2fe;
}

.cuotas-list-head-margen {
    text-align: right;
}

.cuotas-row {
    text-align: left;
    padding-top: 0.28rem;
    padding-bottom: 0.28rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(15, 21, 36, 0.55);
    color: inherit;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.cuotas-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.cuotas-row-active {
    border-color: rgba(0, 242, 254, 0.45);
    background: rgba(0, 242, 254, 0.08);
}

.cuotas-row-manual:not(.cuotas-row-active) {
    border-color: rgba(186, 104, 255, 0.45);
    background: rgba(186, 104, 255, 0.08);
}

.cuotas-row-active.cuotas-row-manual {
    border-color: rgba(0, 242, 254, 0.55);
    box-shadow: inset 0 0 0 1px rgba(186, 104, 255, 0.35);
}

.cuotas-row-surebet {
    border-left: 3px solid rgba(0, 230, 118, 0.55);
}

.cuotas-list-head-time,
.cuotas-row-time {
    font-size: 0.72rem;
    color: #6c7a9c;
    font-weight: 600;
    white-space: nowrap;
}

.cuotas-tz-hint {
    font-size: 0.62rem;
    font-weight: 500;
    color: #00f2fe;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cuotas-list-head-match,
.cuotas-row-teams {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18rem;
}

.cuotas-pa-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    max-width: 100%;
}

.cuotas-pa-tag {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 0.06rem 0.32rem;
    line-height: 1.3;
    white-space: nowrap;
}

.cuotas-pa-tag-api {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.cuotas-pa-panel-api {
    color: #93c5fd;
    font-weight: 700;
}

.cuotas-pa-tag-alto {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.45);
}

.cuotas-pa-tag-medio {
    color: #fde68a;
    background: rgba(251, 191, 36, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.cuotas-pa-tag-riesgo {
    color: #fecaca;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.cuotas-pa-tag-goles {
    color: #a5f3fc;
    background: rgba(34, 211, 238, 0.14);
    border: 1px solid rgba(34, 211, 238, 0.38);
}

.cuotas-pa-tag-goles-soft {
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.28);
}

.cuotas-pa-tag-abierto,
.cuotas-pa-tag-volatil {
    color: #e9d5ff;
    background: rgba(192, 132, 252, 0.14);
    border: 1px solid rgba(192, 132, 252, 0.35);
}

.cuotas-pa-count {
    font-size: 0.72rem;
    font-weight: 800;
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.28);
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
}

.cuotas-pa-count-goles {
    color: #67e8f9;
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.28);
}

.cuotas-pa-panel {
    background: rgba(15, 21, 36, 0.85);
    border: 1px solid rgba(192, 132, 252, 0.22);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
}

.cuotas-pa-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.55rem;
}

.cuotas-pa-panel-title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
    color: #f3f7ff;
}

.cuotas-pa-panel-hint {
    font-size: 0.68rem;
    color: #8fa3c4;
}

.cuotas-pa-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.45rem;
}

.cuotas-pa-card {
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    padding: 0.45rem 0.55rem;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.12s ease, background 0.12s ease;
}

.cuotas-pa-card:hover {
    border-color: rgba(192, 132, 252, 0.4);
    background: rgba(192, 132, 252, 0.08);
}

.cuotas-pa-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}

.cuotas-pa-card-time {
    font-size: 0.68rem;
    font-weight: 700;
    color: #00f2fe;
    white-space: nowrap;
}

.cuotas-pa-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    justify-content: flex-end;
}

.cuotas-pa-card-match {
    margin: 0 0 0.2rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #f3f7ff;
    line-height: 1.3;
}

.cuotas-pa-card-fav {
    margin: 0 0 0.15rem;
    font-size: 0.68rem;
    color: #c5d4ef;
}

.cuotas-pa-card-fav strong {
    color: #86efac;
}

.cuotas-pa-card-meta {
    margin: 0;
    font-size: 0.62rem;
    color: #6c7a9c;
}

.cuotas-pa-detail {
    margin: 0.35rem 0 0.5rem;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    background: rgba(192, 132, 252, 0.08);
    border: 1px solid rgba(192, 132, 252, 0.22);
}

.cuotas-pa-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-bottom: 0.3rem;
}

.cuotas-pa-detail-text {
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.45;
    color: #b8c5de;
}

.cuotas-pa-detail-stats {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0.35rem;
    font-size: 0.62rem;
    color: #93c5fd;
    font-variant-numeric: tabular-nums;
}

.cuotas-match-teams {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
    overflow: hidden;
}

.cuotas-equipo {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    min-width: 0;
    max-width: 100%;
}

.cuotas-flag {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.cuotas-equipo-nombre {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.cuotas-row-picks {
    display: contents;
}

.cuotas-pick-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-width: 0;
}

.cuotas-pick-odd {
    font-size: 0.74rem;
    font-weight: 700;
    color: #e8edf7;
    text-align: center;
    line-height: 1;
}

.cuotas-margen-inline {
    justify-self: end;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    white-space: nowrap;
}

/* Margen: menor % = más recomendable */
.cuotas-margen-t1 {
    background: rgba(0, 230, 118, 0.18);
    border: 1px solid rgba(0, 230, 118, 0.45);
    color: #7dffb6;
}

.cuotas-margen-t2 {
    background: rgba(180, 220, 0, 0.14);
    border: 1px solid rgba(200, 230, 60, 0.4);
    color: #d6e86a;
}

.cuotas-margen-t3 {
    background: rgba(255, 167, 38, 0.16);
    border: 1px solid rgba(255, 167, 38, 0.45);
    color: #ffc266;
}

.cuotas-margen-t4 {
    background: rgba(255, 61, 113, 0.16);
    border: 1px solid rgba(255, 61, 113, 0.45);
    color: #ff8fab;
}

.cuotas-vs {
    color: #6c7a9c;
    font-size: 0.75rem;
    font-weight: 500;
}

.cuotas-panel-odds {
    margin-bottom: 0.85rem;
    padding: 0.5rem;
    background: rgba(15, 21, 36, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cuotas-panel-odds-head,
.cuotas-panel-odds-row {
    display: grid;
    grid-template-columns: 1.75rem repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.35rem;
}

.cuotas-panel-odds-head {
    margin-bottom: 0.35rem;
}

.cuotas-odds-head-casa {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.15rem 0;
}

.cuotas-casa-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.1rem;
    min-width: 3.1rem;
    max-width: 3.1rem;
    min-height: 1.42rem;
    padding: 0.1rem 0.15rem;
    border-radius: 5px;
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.cuotas-pick-cell .cuotas-casa-text {
    font-size: 0.6rem;
    min-height: 1.36rem;
}

.cuotas-surebet-table td .cuotas-casa-text {
    margin: 0 auto;
}

.cuotas-casa-betano .cuotas-casa-text,
.cuotas-casa-text.cuotas-casa-betano {
    background: #ff5500;
    border-color: #ff7a33;
    color: #fff;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.cuotas-casa-teapuesto .cuotas-casa-text,
.cuotas-casa-text.cuotas-casa-teapuesto {
    background: #0d2137;
    border-color: #00b4ff;
    color: #7ddfff;
    box-shadow: inset 0 0 0 1px rgba(0, 180, 255, 0.25);
}

.cuotas-casa-at .cuotas-casa-text,
.cuotas-casa-text.cuotas-casa-at {
    background: #b80f17;
    border-color: #ff4d57;
    color: #fff;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.cuotas-odd.cuotas-casa-betano:not(.cuotas-odd-empty) {
    background: rgba(255, 85, 0, 0.14);
    border-color: rgba(255, 85, 0, 0.5);
    color: #ffb27a;
}

.cuotas-odd.cuotas-casa-teapuesto:not(.cuotas-odd-empty) {
    background: rgba(0, 180, 255, 0.1);
    border-color: rgba(0, 180, 255, 0.45);
    color: #8ee4ff;
}

.cuotas-odd.cuotas-casa-at:not(.cuotas-odd-empty) {
    background: rgba(184, 15, 23, 0.16);
    border-color: rgba(255, 77, 87, 0.5);
    color: #ff9aa0;
}

.cuotas-panel-odds-row + .cuotas-panel-odds-row {
    margin-top: 0.25rem;
}

.cuotas-market-label-sm {
    font-size: 0.75rem;
    font-weight: 800;
    color: #9fb0d0;
    text-align: center;
}

.cuotas-surebet-time {
    display: block;
    width: 100%;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: #6c7a9c;
    font-weight: 500;
}

.cuotas-odd {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.25rem 0.35rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 700;
    font-size: 0.82rem;
    text-align: center;
}

.cuotas-odd-sm {
    min-height: 1.75rem;
    font-size: 0.78rem;
}

.cuotas-odd-empty {
    color: #6c7a9c;
    font-weight: 500;
}

.cuotas-odd-btn {
    width: 100%;
    cursor: pointer;
    color: inherit;
    transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.cuotas-odd-btn:hover:not(.cuotas-odd-empty) {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.1);
}

.cuotas-odd-selected {
    box-shadow: 0 0 0 2px #00f2fe !important;
    background: rgba(0, 242, 254, 0.12) !important;
}

.cuotas-odd-best {
    background: rgba(0, 230, 118, 0.18);
    color: #7dffb6;
    border-color: rgba(0, 230, 118, 0.45);
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.12);
}

.cuotas-odd-best.cuotas-odd-selected {
    box-shadow: 0 0 0 2px #00f2fe, 0 0 12px rgba(0, 230, 118, 0.12) !important;
}

.cuotas-surebet-panel {
    position: sticky;
    top: 1rem;
    align-self: start;
    background: rgba(22, 30, 49, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.1rem 1.15rem 1.25rem;
}

.cuotas-manual-slot {
    min-width: 0;
    max-width: 300px;
    position: sticky;
    top: 1rem;
    align-self: start;
}

.cuotas-manual-odds {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.cuotas-manual-odd-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    color: #00f2fe;
    text-align: center;
}

.cuotas-manual-margen {
    margin-bottom: 0.65rem;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cuotas-surebet-header {
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cuotas-surebet-title {
    margin: 0.15rem 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}

.cuotas-surebet-sub {
    margin: 0;
    color: #6c7a9c;
    font-size: 0.8rem;
}

.cuotas-surebet-match {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    align-items: baseline;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
}

.cuotas-surebet-best-btn {
    width: 100%;
    margin-bottom: 0.9rem;
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.35);
    color: #8ee4ff;
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: 10px;
    padding: 0.45rem 0.75rem;
}

.cuotas-surebet-best-btn:hover {
    background: rgba(0, 242, 254, 0.2);
    color: #c8f7ff;
}

.cuotas-surebet-table-wrap {
    overflow-x: auto;
}

.cuotas-surebet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.cuotas-surebet-table th {
    color: #6c7a9c;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    padding: 0.35rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cuotas-surebet-table td {
    padding: 0.5rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #d8e2f2;
}

.cuotas-surebet-table tfoot td {
    border-bottom: 0;
    padding-top: 0.75rem;
    font-weight: 700;
    color: #9fb0d0;
}

.cuotas-surebet-mercado {
    font-weight: 800;
    color: #00f2fe;
    width: 1.5rem;
}

.cuotas-calc-hint {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    color: #6c7a9c;
    line-height: 1.35;
}

.cuotas-calc-hint strong {
    color: #00f2fe;
}

.cuotas-leg-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #9fb0d0;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.12s ease;
}

.cuotas-leg-btn:hover {
    background: rgba(0, 242, 254, 0.12);
    border-color: rgba(0, 242, 254, 0.35);
    color: #c8f7ff;
}

.cuotas-leg-btn-active {
    background: rgba(0, 242, 254, 0.2) !important;
    border-color: #00f2fe !important;
    color: #fff !important;
    box-shadow: 0 0 0 1px rgba(0, 242, 254, 0.35);
}

.cuotas-surebet-row-active td {
    background: rgba(0, 242, 254, 0.05);
}

.cuotas-surebet-table th:nth-child(2) {
    color: #80deea;
}

.cuotas-surebet-table th:nth-child(3) {
    color: #ffc107;
}

.cuotas-calc-cuota-cell {
    background: rgba(0, 242, 254, 0.05);
}

.cuotas-calc-apuesta-cell {
    min-width: 6.5rem;
}

/* ── Calculadora vertical (1 / X / 2) ── */
.cuotas-calc-vertical-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cuotas-calc-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.cuotas-calc-pierna-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cuotas-calc-pierna-card.cuotas-surebet-row-active {
    border-color: rgba(0, 242, 254, 0.45);
    box-shadow: inset 0 0 0 1px rgba(0, 242, 254, 0.2);
}

.cuotas-calc-pierna-card.cuotas-calc-row-confirmed {
    border-color: rgba(255, 193, 7, 0.35);
}

.cuotas-calc-pierna-head {
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    letter-spacing: 0.04em;
}

.cuotas-calc-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cuotas-calc-field-label {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #c5d0e6;
}

.cuotas-calc-vertical .cuotas-calc-cell-input {
    width: 100%;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.5rem 0.65rem;
    min-height: 2.5rem;
}

.cuotas-calc-vertical .cuotas-money-prefix {
    font-size: 0.95rem;
    font-weight: 800;
}

.cuotas-calc-vertical .cuotas-apuesta-confirm-box {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
}

.cuotas-calc-vertical .cuotas-apuesta-confirm-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #dce4f5;
}

.cuotas-calc-vertical .cuotas-apuesta-confirm-check {
    width: 1.1rem;
    height: 1.1rem;
}

.cuotas-calc-total-block {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.28);
}

.cuotas-calc-total-block .cuotas-calc-field-label {
    color: #ffe082;
}

.cuotas-calc-field-cobro .cuotas-calc-cobro-btn-block {
    width: 100%;
    min-height: 2.75rem;
    font-size: 1.15rem;
    font-weight: 900;
}

.cuotas-surebet-result-vertical {
    text-align: center;
    padding: 1rem 0.85rem;
}

.cuotas-surebet-result-vertical .cuotas-surebet-result-main {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    border-top: none;
    padding-top: 0;
}

.cuotas-surebet-result-vertical .cuotas-surebet-result-main span {
    font-size: 0.92rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #dce4f5;
}

.cuotas-surebet-result-vertical .cuotas-surebet-result-main strong {
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.15;
}

.cuotas-surebet-result-vertical .cuotas-result-pct {
    font-size: 0.88rem;
    font-weight: 700;
    color: #9fb0d0;
}

.jugadas-apuesta-box-total {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: stretch;
}

.jugadas-apuesta-box-total .jugadas-btn-distribuir {
    font-size: 0.82rem;
    font-weight: 700;
}

.cuotas-calc-cobro-cell {
    min-width: 4.5rem;
    white-space: nowrap;
    text-align: right;
    vertical-align: middle;
    padding-right: 0.35rem !important;
}

.cuotas-calc-cobro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.5rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    border: 1px solid rgba(165, 214, 167, 0.35);
    background: rgba(46, 125, 50, 0.22);
    color: #c8e6c9;
    font-size: 0.72rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.cuotas-calc-cobro-btn:hover {
    background: rgba(56, 142, 60, 0.38);
    border-color: rgba(165, 214, 167, 0.55);
}

.cuotas-calc-cobro-btn.is-selected {
    transform: scale(1.03);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.cuotas-calc-cobro-btn.is-selected.is-ganancia {
    background: rgba(46, 125, 50, 0.55);
    border-color: #81c784;
    color: #e8f5e9;
}

.cuotas-calc-cobro-btn.is-selected.is-perdida {
    background: rgba(198, 40, 40, 0.45);
    border-color: #ef5350;
    color: #ffcdd2;
}

.cuotas-calc-compact .cuotas-calc-cobro-cell {
    min-width: 4rem;
}

.cuotas-calc-compact .cuotas-calc-cobro-btn {
    min-width: 3rem;
    font-size: 0.66rem;
    padding: 0.15rem 0.45rem;
}

.cuotas-calc-input-cuota {
    color: #80deea !important;
    background: rgba(0, 242, 254, 0.1) !important;
    border-color: rgba(0, 242, 254, 0.22) !important;
}

.cuotas-calc-input-cuota:focus {
    background: rgba(0, 242, 254, 0.18) !important;
    border-color: rgba(0, 242, 254, 0.5) !important;
}

.cuotas-calc-input-apuesta {
    color: #ffc107 !important;
    background: rgba(255, 193, 7, 0.08) !important;
    border-color: rgba(255, 193, 7, 0.22) !important;
}

.cuotas-calc-input-apuesta:focus {
    background: rgba(255, 193, 7, 0.14) !important;
    border-color: rgba(255, 193, 7, 0.45) !important;
}

.cuotas-inline-money-apuesta {
    color: #ffc107;
}

.cuotas-money-prefix {
    font-size: 0.72rem;
    font-weight: 800;
    opacity: 0.9;
    flex-shrink: 0;
}

.cuotas-calc-input-total {
    font-size: 0.88rem !important;
}

.cuotas-calc-row-confirmed td {
    background: rgba(0, 255, 71, 0.04);
}

.cuotas-calc-total-row td {
    font-weight: 700;
    color: #9fb0d0;
}

.cuotas-calc-table .cuotas-calc-cell-input {
    width: 100%;
    min-width: 3.5rem;
    background: transparent;
    border: 1px solid transparent;
    color: #fff;
    border-radius: 6px;
    padding: 0.3rem 0.35rem;
    font-weight: 700;
    font-size: 0.82rem;
    text-align: right;
}

.cuotas-apuesta-confirm-box {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 0.25rem 0.35rem 0.25rem 0.4rem;
    background: rgba(0, 0, 0, 0.22);
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.cuotas-apuesta-confirm-box.is-checked {
    border-color: #00ff47;
    background: linear-gradient(145deg, rgba(0, 255, 71, 0.22), rgba(57, 255, 20, 0.1));
    box-shadow:
        0 0 0 1px rgba(0, 255, 71, 0.45),
        0 0 10px rgba(0, 255, 71, 0.35);
}

.cuotas-apuesta-confirm-label {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    user-select: none;
}

.cuotas-apuesta-confirm-label span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cuotas-apuesta-confirm-box.is-checked .cuotas-apuesta-confirm-label {
    text-shadow: none;
}

.cuotas-apuesta-confirm-check {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    accent-color: #00ff47;
    cursor: pointer;
    flex-shrink: 0;
}

.cuotas-apuesta-confirm-box.is-checked .cuotas-apuesta-confirm-check {
    filter: drop-shadow(0 0 4px #00ff47);
}

.cuotas-apuesta-confirm-box .cuotas-inline-money {
    flex: 1;
    min-width: 0;
    margin-top: 0;
}

.cuotas-calc-table .cuotas-calc-cell-input:not(.cuotas-calc-input-cuota):not(.cuotas-calc-input-apuesta):focus {
    background: rgba(0, 242, 254, 0.15);
    border-color: rgba(0, 242, 254, 0.45);
    outline: none;
}

.cuotas-calc-table .cuotas-calc-cell-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.cuotas-inline-money {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem;
    color: #d8e2f2;
    font-size: 0.82rem;
    font-weight: 700;
}


.cuotas-surebet-stake-input {
    width: 100%;
    min-width: 5rem;
    background: #121824;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
    font-weight: 700;
}

.cuotas-total-calculado {
    color: #7dffb6;
    font-size: 0.9rem;
}

.cuotas-modo-nota {
    padding-top: 0.35rem !important;
    text-align: right;
    border-bottom: 0 !important;
}

.cuotas-modo-link {
    background: none;
    border: 0;
    color: #6c7a9c;
    font-size: 0.72rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.cuotas-modo-link:hover {
    color: #9fb0d0;
}

.cuotas-surebet-result {
    margin-top: 1rem;
    border-radius: 12px;
    padding: 0.85rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.cuotas-surebet-win {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.cuotas-surebet-loss {
    background: rgba(255, 61, 113, 0.1);
    border: 1px solid rgba(255, 61, 113, 0.3);
}

.cuotas-surebet-result-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: #9fb0d0;
}

.cuotas-surebet-result-main {
    font-size: 0.9rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cuotas-surebet-win .cuotas-surebet-result-main strong {
    color: #7dffb6;
}

.cuotas-surebet-loss .cuotas-surebet-result-main strong {
    color: #ff8fab;
}

.cuotas-surebet-note {
    margin: 0.75rem 0 0;
    color: #6c7a9c;
    font-size: 0.75rem;
    line-height: 1.4;
}

.cuotas-surebet-empty {
    color: #6c7a9c;
    font-size: 0.85rem;
    padding: 0.75rem 0;
}

/* ── Calculadora L-E-V compacta (cabe en pantalla) ── */
.cuotas-calc-compact {
    padding: 0.55rem 0.65rem 0.6rem;
    border-radius: 12px;
}

.cuotas-surebet-header-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    padding-bottom: 0.4rem;
}

.cuotas-surebet-header-compact .cuotas-surebet-title {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.2;
}

.cuotas-calc-margen-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
    flex-shrink: 0;
}

.cuotas-calc-toolbar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
    min-width: 0;
}

.cuotas-surebet-match-compact {
    margin-bottom: 0;
    font-size: 0.72rem;
    line-height: 1.25;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
}

.cuotas-surebet-match-compact .cuotas-equipo {
    font-weight: 700;
}

.cuotas-surebet-match-compact .cuotas-surebet-time {
    font-size: 0.65rem;
    margin-left: 0;
    opacity: 0.85;
}

.cuotas-surebet-best-btn-compact {
    width: auto;
    flex-shrink: 0;
    margin-bottom: 0;
    padding: 0.28rem 0.5rem;
    font-size: 0.68rem;
    border-radius: 8px;
}

.cuotas-partido-compact {
    flex: 1;
    min-width: 0;
    font-size: 0.78rem !important;
    padding: 0.28rem 0.45rem !important;
    max-width: none !important;
}

.cuotas-calc-compact .cuotas-surebet-table th {
    font-size: 0.62rem;
    padding: 0.2rem 0.15rem;
}

.cuotas-calc-compact .cuotas-surebet-table td {
    padding: 0.22rem 0.15rem;
    vertical-align: middle;
}

.cuotas-calc-compact .cuotas-surebet-table tfoot td {
    padding-top: 0.35rem;
    font-size: 0.72rem;
}

.cuotas-calc-compact .cuotas-surebet-mercado {
    width: 1.1rem;
    font-size: 0.78rem;
}

.cuotas-calc-compact .cuotas-calc-cell-input {
    padding: 0.18rem 0.25rem;
    font-size: 0.75rem;
    min-width: 2.8rem;
}

.cuotas-calc-compact .cuotas-apuesta-confirm-box {
    gap: 0.25rem;
    padding: 0.15rem 0.25rem 0.15rem 0.3rem;
    border-radius: 7px;
}

.cuotas-calc-compact .cuotas-apuesta-confirm-check {
    width: 0.95rem;
    height: 0.95rem;
}

.cuotas-calc-compact .cuotas-apuesta-confirm-box .cuotas-inline-money {
    font-size: 0.75rem;
}

.cuotas-calc-compact .cuotas-calc-input-cuota,
.cuotas-calc-compact .cuotas-calc-input-apuesta {
    padding: 0.18rem 0.25rem;
    font-size: 0.75rem;
    min-width: 2.8rem;
}

.cuotas-calc-compact .cuotas-calc-apuesta-cell {
    min-width: 5.5rem;
}

.cuotas-calc-compact .cuotas-surebet-result {
    margin-top: 0.35rem;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    gap: 0;
}

.cuotas-calc-compact .cuotas-surebet-result-main {
    font-size: 0.78rem;
    padding-top: 0;
    border-top: none;
}

.cuotas-calc-compact .cuotas-surebet-empty {
    padding: 0.35rem 0;
    font-size: 0.78rem;
}

.jugadas-guardar-block-compact {
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.cuotas-nota-compact {
    flex: 1;
    min-width: 0;
    font-size: 0.75rem !important;
    padding: 0.28rem 0.45rem !important;
    max-width: none !important;
}

.cuotas-btn-guardar-compact {
    flex-shrink: 0;
    padding: 0.3rem 0.65rem !important;
    font-size: 0.72rem !important;
    white-space: nowrap;
}

.odds-api-page {
    color: #d8e2f2;
}

.odds-api-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.odds-api-meta-label {
    color: #6c7a9c;
    font-size: 0.82rem;
}

.odds-api-casa-chip {
    display: inline-flex;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.odds-api-casa-betano {
    background: #ff5500;
    color: #fff;
}

.odds-api-casa-golden {
    background: #d4a017;
    color: #1a1200;
}

.odds-api-table-wrap {
    overflow-x: auto;
    background: rgba(22, 30, 49, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.5rem;
}

.odds-api-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.odds-api-table th,
.odds-api-table td {
    padding: 0.5rem 0.45rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.odds-api-table th {
    color: #6c7a9c;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.odds-api-casa-head {
    color: #fff !important;
    font-weight: 800;
}

.odds-api-subhead th {
    color: #00f2fe;
    font-size: 0.72rem;
}

.odds-api-time {
    color: #6c7a9c;
    white-space: nowrap;
    text-align: left !important;
}

.odds-api-match {
    text-align: left !important;
    white-space: nowrap;
    font-size: 0.85rem;
}

.odds-api-sin-dato {
    color: #4a5568;
}

.odds-api-nota {
    margin: 0.75rem 0 0;
    color: #6c7a9c;
    font-size: 0.75rem;
}

.odds-api-nota a {
    color: #8ee4ff;
}

.jugadas-page {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    color: #d8e2f2;
    font-size: 0.78rem;
}

.jugadas-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.jugadas-subtitle {
    margin: 0.2rem 0 0;
    color: #9fb0d0;
    font-size: 0.78rem;
}

.jugadas-flash {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: #8ee4ff;
    font-size: 0.88rem;
}

.jugadas-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.jugadas-kpi {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex: 1;
    min-width: 100px;
}

.jugadas-kpi span {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #9fb0d0;
}

.jugadas-kpi strong {
    font-size: 0.88rem;
    color: #f0f4f8;
    font-variant-numeric: tabular-nums;
    margin-left: auto;
}

.jugadas-kpi small { display: none; }

.jugadas-kpi-total { border-left: 3px solid #00f2fe; }
.jugadas-kpi-total strong { color: #8ee4ff; }
.jugadas-kpi-pendiente { border-left: 3px solid #ffd166; }
.jugadas-kpi-pendiente strong { color: #ffd166; }
.jugadas-kpi-ganada { border-left: 3px solid #7dffb6; }
.jugadas-kpi-ganada strong { color: #7dffb6; }
.jugadas-kpi-perdida { border-left: 3px solid #ff8fab; }
.jugadas-kpi-perdida strong { color: #ff8fab; }
.jugadas-kpi-acum { border-left: 3px solid rgba(255, 255, 255, 0.2); }

.jugadas-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.jugadas-toolbar-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9fb0d0;
    margin-right: 0.25rem;
}

.jugadas-date-input {
    width: 8.5rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.82rem;
    color: #e8eef8;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color-scheme: dark;
}

.jugadas-date-input:focus {
    outline: none;
    border-color: rgba(0, 242, 254, 0.4);
}

.jugadas-date-sep {
    color: #6c7a9c;
}

.jugadas-filter-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #8ee4ff;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.28);
    border-radius: 8px;
    cursor: pointer;
}

.jugadas-filter-btn:hover {
    background: rgba(0, 242, 254, 0.18);
}

.jugadas-filter-btn-clear {
    color: #9fb0d0;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
}

.jugadas-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #9fb0d0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.jugadas-positivo { color: #7dffb6 !important; }
.jugadas-negativo { color: #ff8fab !important; }

.jugadas-master-layout {
    display: grid;
    grid-template-columns: minmax(340px, 400px) minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.jugadas-sidebar {
    position: sticky;
    top: 0.5rem;
    max-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
    background: rgba(12, 18, 30, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    min-width: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.jugadas-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.jugadas-sidebar-head-right {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.jugadas-sidebar-resultados-ts {
    font-size: 0.62rem;
    font-weight: 600;
    color: #8fa3c4;
}

.jugadas-sidebar-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    padding: 0;
    border-radius: 6px;
    border: 1px solid rgba(0, 242, 254, 0.28);
    background: rgba(0, 242, 254, 0.08);
    color: #00f2fe;
    font-size: 0.82rem;
    line-height: 1;
    cursor: pointer;
}

.jugadas-sidebar-refresh:hover:not(:disabled) {
    background: rgba(0, 242, 254, 0.16);
    border-color: rgba(0, 242, 254, 0.45);
}

.jugadas-sidebar-refresh:disabled {
    opacity: 0.45;
    cursor: wait;
}

.jugadas-row-resultado-final,
.jugadas-card-resultado-api {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    padding: 0.32rem 0.45rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.jugadas-card-resultado-api {
    margin-top: 0.15rem;
}

.jugadas-row-score {
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #f3f7ff;
    font-variant-numeric: tabular-nums;
}

.jugadas-row-score-market {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #c084fc;
    background: rgba(192, 132, 252, 0.14);
    border: 1px solid rgba(192, 132, 252, 0.32);
    border-radius: 4px;
    padding: 0.08rem 0.35rem;
    white-space: nowrap;
}

.jugadas-row-resultado-pending {
    justify-content: center;
    border-style: dashed;
    opacity: 0.75;
}

.jugadas-row-score-pending {
    font-size: 0.65rem;
    font-weight: 600;
    color: #8fa3c4;
}

.jugadas-flash-info {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.22);
    color: #9eeaff;
}

.jugadas-sidebar-title {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #c5d4ef;
}

.jugadas-sidebar-count {
    font-size: 0.75rem;
    font-weight: 800;
    color: #00f2fe;
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.28);
    border-radius: 999px;
    padding: 0.12rem 0.55rem;
    min-width: 1.75rem;
    text-align: center;
}

.jugadas-row-list {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.55rem;
}

.jugadas-row-summary {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.75rem 0.65rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(22, 30, 49, 0.55);
    cursor: pointer;
    position: relative;
    overflow: visible;
    transition: border-color 0.15s, background 0.15s, transform 0.12s;
    user-select: none;
}

.jugadas-row-summary:focus-visible {
    outline: 2px solid rgba(0, 242, 254, 0.55);
    outline-offset: 2px;
}

.jugadas-row-summary::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 10px 0 0 10px;
}

.jugadas-row-summary.jugadas-card-pendiente {
    background: linear-gradient(90deg, rgba(255, 209, 102, 0.1) 0%, rgba(22, 30, 49, 0.58) 55%);
    border-color: rgba(255, 209, 102, 0.22);
}

.jugadas-row-summary.jugadas-card-pendiente::before { background: #ffd166; }

.jugadas-row-summary.jugadas-card-ganada {
    background: linear-gradient(90deg, rgba(0, 230, 118, 0.12) 0%, rgba(22, 30, 49, 0.58) 55%);
    border-color: rgba(125, 255, 182, 0.24);
}

.jugadas-row-summary.jugadas-card-ganada::before { background: #7dffb6; }

.jugadas-row-summary.jugadas-card-perdida {
    background: linear-gradient(90deg, rgba(255, 61, 113, 0.12) 0%, rgba(22, 30, 49, 0.58) 55%);
    border-color: rgba(255, 143, 171, 0.24);
}

.jugadas-row-summary.jugadas-card-perdida::before { background: #ff8fab; }

.jugadas-row-summary:hover {
    border-color: rgba(0, 242, 254, 0.35);
    background: rgba(22, 30, 49, 0.78);
    transform: translateY(-1px);
}

.jugadas-row-summary.is-selected {
    border-color: rgba(0, 242, 254, 0.55);
    background: rgba(0, 242, 254, 0.1);
    box-shadow: inset 0 0 0 1px rgba(0, 242, 254, 0.18), 0 0 0 1px rgba(0, 242, 254, 0.12);
}

.jugadas-row-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
}

.jugadas-row-fecha {
    font-size: 0.72rem;
    font-weight: 600;
    color: #8fa3c4;
    white-space: nowrap;
}

.jugadas-row-partido-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
}

.jugadas-row-partido {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    color: #f3f7ff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jugadas-row-score-inline {
    flex: 0 0 auto;
    white-space: nowrap;
}

.jugadas-row-score-pending.jugadas-row-score-inline {
    font-size: 0.82rem;
    font-weight: 700;
    color: #5a6d8a;
    opacity: 0.85;
}

.jugadas-row-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.35rem;
    font-size: 0.68rem;
    color: #7f8fa8;
    line-height: 1.35;
}

.jugadas-row-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    margin-top: 0.1rem;
}

.jugadas-row-stat {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
    padding: 0.35rem 0.4rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.jugadas-row-stat-k {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8fa3c4;
}

.jugadas-row-stat-v {
    font-size: 0.78rem;
    font-weight: 800;
    color: #eef3ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jugadas-row-stat-apuesta {
    color: #ffe082;
}

.jugadas-sidebar-more {
    margin: 0;
    padding: 0.55rem 0.85rem 0.65rem;
    font-size: 0.68rem;
    color: #8fa3c4;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.jugadas-main-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.jugadas-panel-block {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.jugadas-panel-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.jugadas-panel-title {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9fb0d0;
}

.jugadas-panel-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: #ffd166;
    background: rgba(255, 209, 102, 0.12);
    border: 1px solid rgba(255, 209, 102, 0.28);
    border-radius: 999px;
    padding: 0.05rem 0.38rem;
}

.jugadas-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.jugadas-panel-empty {
    padding: 0.85rem 1rem;
    text-align: center;
    color: #7f8fa8;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.jugadas-panel-seleccion .jugadas-panel-title {
    color: #00f2fe;
}

.jugadas-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(var(--jugadas-rows, 1), auto);
    grid-auto-flow: column;
    gap: 0.45rem;
    align-items: start;
}

.jugadas-card {
    position: relative;
    background: rgba(22, 30, 49, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 0.35rem 0.4rem 0.35rem 0.55rem;
    min-width: 0;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.jugadas-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    border-radius: 10px 0 0 10px;
}

.jugadas-card-pendiente {
    background: linear-gradient(90deg, rgba(255, 209, 102, 0.14) 0%, rgba(22, 30, 49, 0.58) 38%);
    border-color: rgba(255, 209, 102, 0.28);
    box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.08);
}

.jugadas-card-pendiente::before {
    background: linear-gradient(180deg, #ffe082 0%, #ffd166 100%);
    box-shadow: 0 0 12px rgba(255, 209, 102, 0.45);
}

.jugadas-card-ganada {
    background: linear-gradient(90deg, rgba(0, 230, 118, 0.16) 0%, rgba(22, 30, 49, 0.58) 42%);
    border-color: rgba(125, 255, 182, 0.32);
    box-shadow: inset 0 0 0 1px rgba(125, 255, 182, 0.1);
}

.jugadas-card-ganada::before {
    background: linear-gradient(180deg, #b9f6ca 0%, #7dffb6 55%, #00e676 100%);
    box-shadow: 0 0 14px rgba(125, 255, 182, 0.5);
}

.jugadas-card-perdida {
    background: linear-gradient(90deg, rgba(255, 61, 113, 0.18) 0%, rgba(22, 30, 49, 0.58) 42%);
    border-color: rgba(255, 143, 171, 0.34);
    box-shadow: inset 0 0 0 1px rgba(255, 143, 171, 0.1);
}

.jugadas-card-perdida::before {
    background: linear-gradient(180deg, #ffb3c1 0%, #ff8fab 55%, #ff3d71 100%);
    box-shadow: 0 0 14px rgba(255, 143, 171, 0.45);
}

.jugadas-card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(10.5rem, auto) minmax(5.5rem, 0.75fr);
    gap: 0.3rem 0.4rem;
    align-items: start;
    min-width: 0;
}

.jugadas-col-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.jugadas-title-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.jugadas-status-pill {
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.jugadas-pill-pendiente {
    color: #ffd166;
    background: rgba(255, 209, 102, 0.22);
    border: 1px solid rgba(255, 209, 102, 0.45);
}

.jugadas-pill-ganada {
    color: #d7ffe8;
    background: rgba(0, 230, 118, 0.24);
    border: 1px solid rgba(125, 255, 182, 0.55);
}

.jugadas-pill-perdida {
    color: #ffe0e8;
    background: rgba(255, 61, 113, 0.24);
    border: 1px solid rgba(255, 143, 171, 0.55);
}

.jugadas-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.64rem;
    color: #7a8aa8;
    line-height: 1.2;
}

.jugadas-meta-dot { color: #5a6a88; }
.jugadas-meta-origen { color: #00f2fe; font-weight: 600; }

.jugadas-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.08rem 0.38rem;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1.2;
}

.jugadas-tag-surebet {
    color: #e8d4ff;
    background: rgba(168, 85, 247, 0.22);
    border: 1px solid rgba(192, 132, 252, 0.45);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
}

.jugadas-stats-stack {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.35rem;
    width: 100%;
    max-width: 11rem;
}

.jugadas-stats-stack-compact {
    max-width: 8.5rem;
    margin-top: 0.25rem;
}

.jugadas-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-variant-numeric: tabular-nums;
    min-height: 2rem;
}

.jugadas-stat-compact {
    min-height: 1.65rem;
    padding: 0.28rem 0.45rem;
    border-radius: 6px;
    font-size: 0.72rem;
}

.jugadas-stat-compact .jugadas-stat-k {
    font-size: 0.62rem;
}

.jugadas-stat-compact .jugadas-stat-v {
    font-size: 0.78rem;
}

.jugadas-stat-result-side {
    width: 100%;
    margin-top: 0.15rem;
}

.jugadas-stat-k {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #b8c5de;
    flex-shrink: 0;
}

.jugadas-stat-v {
    font-size: 0.92rem;
    font-weight: 800;
    text-align: right;
    color: #eef3ff;
}

.jugadas-stat.cuotas-margen-t1 .jugadas-stat-v { color: #7dffb6; }
.jugadas-stat.cuotas-margen-t2 .jugadas-stat-v { color: #d6e86a; }
.jugadas-stat.cuotas-margen-t3 .jugadas-stat-v { color: #ffc266; }
.jugadas-stat.cuotas-margen-t4 .jugadas-stat-v { color: #ff8fab; }

.jugadas-stat.jugadas-positivo .jugadas-stat-v { color: #7dffb6; }
.jugadas-stat.jugadas-negativo .jugadas-stat-v { color: #ff8fab; }

.jugadas-stat-total {
    border-color: rgba(0, 242, 254, 0.35);
    background: rgba(0, 242, 254, 0.08);
}

.jugadas-stat-total .jugadas-stat-k {
    color: #80deea;
}

.jugadas-stat-total-field {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    min-width: 0;
}

.jugadas-stat-currency {
    font-size: 0.82rem;
    font-weight: 800;
    color: #4dd0e1;
    flex-shrink: 0;
}

.jugadas-col-calc { min-width: 0; padding: 0; }

.jugadas-page .jugadas-col-calc.cuotas-calc-compact {
    padding: 0.15rem 0.2rem;
}

.jugadas-page .jugadas-calc-table {
    font-size: 0.62rem;
    width: auto;
    table-layout: fixed;
}

.jugadas-page .jugadas-calc-table th {
    font-size: 0.52rem;
    padding: 0.08rem 0.12rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.jugadas-page .jugadas-calc-table td,
.jugadas-page .jugadas-calc-table th {
    padding: 0.1rem 0.12rem;
}

.jugadas-page .jugadas-calc-table .cuotas-surebet-mercado {
    width: 0.9rem;
    font-size: 0.68rem;
    padding: 0.08rem 0.05rem;
}

.jugadas-page .jugadas-calc-table .cuotas-calc-cuota-cell {
    width: 3.4rem;
}

.jugadas-page .jugadas-calc-table .cuotas-calc-apuesta-cell {
    width: 5.2rem;
    min-width: 0;
}

.jugadas-page .cuotas-calc-cell-input {
    padding: 0.12rem 0.18rem;
    font-size: 0.68rem;
    min-height: 1.35rem;
    min-width: 0 !important;
    width: 100%;
    box-sizing: border-box;
    cursor: text;
}

.jugadas-page .cuotas-calc-input-cuota:focus,
.jugadas-page .cuotas-calc-input-apuesta:focus {
    outline: none;
}

.jugadas-btn-distribuir {
    margin-left: 0.35rem;
    border: 1px solid rgba(0, 242, 254, 0.25);
    background: rgba(0, 242, 254, 0.08);
    color: #8ee4ff;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.12rem 0.28rem;
    cursor: pointer;
    vertical-align: middle;
}

.jugadas-btn-distribuir:hover {
    border-color: rgba(0, 242, 254, 0.45);
    background: rgba(0, 242, 254, 0.14);
}

.jugadas-page .cuotas-money-prefix {
    font-size: 0.55rem;
}

.jugadas-page .jugadas-apuesta-box {
    padding: 0.02rem 0.08rem;
}

.jugadas-calc-wrap { overflow-x: visible; }

.jugadas-calc-table { width: auto; }

.jugadas-calc-table tbody tr:last-child td { border-bottom: none; }

.jugadas-page .jugadas-calc-table tfoot td {
    padding-top: 0.25rem;
    font-size: 0.62rem;
    font-weight: 700;
    color: #9fb0d0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.jugadas-page .cuotas-calc-input-total {
    font-weight: 800;
}

.jugadas-apuesta-box {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.05rem 0.2rem;
    background: rgba(255, 255, 255, 0.02);
}

.jugadas-col-result {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    padding-left: 0.4rem;
}

.jugadas-estado-group {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.jugadas-estado-btn {
    flex: 1;
    padding: 0.18rem 0.2rem;
    font-size: 0.6rem;
    font-weight: 700;
    color: #9fb0d0;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    cursor: pointer;
}

.jugadas-estado-btn + .jugadas-estado-btn {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.jugadas-estado-pendiente.is-active {
    color: #ffd166;
    background: rgba(255, 209, 102, 0.15);
}

.jugadas-estado-ganada.is-active {
    color: #7dffb6;
    background: rgba(0, 230, 118, 0.12);
}

.jugadas-estado-perdida.is-active {
    color: #ff8fab;
    background: rgba(255, 61, 113, 0.12);
}

.jugadas-estado-btn:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.06);
    color: #e8eef8;
}

.jugadas-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    padding: 0.15rem 0.3rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.jugadas-result-pendiente { opacity: 0.75; }
.jugadas-result-ganada { border-color: rgba(0, 230, 118, 0.3); }
.jugadas-result-perdida { border-color: rgba(255, 61, 113, 0.3); }

.jugadas-result-label {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6c7a9c;
    white-space: nowrap;
}

.jugadas-col-actions {
    display: flex;
    gap: 0.2rem;
    justify-content: flex-end;
}

.jugadas-inline-money {
    display: flex;
    align-items: baseline;
    gap: 0.1rem;
}

.jugadas-inline-money span {
    font-size: 0.6rem;
    color: #8ea3c8;
    font-weight: 700;
}

.jugadas-ghost {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: inherit;
    outline: none;
}

.jugadas-ghost:focus {
    border-color: rgba(0, 242, 254, 0.35);
    background: rgba(0, 242, 254, 0.06);
}

.jugadas-ghost:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.jugadas-ghost-title {
    flex: 1;
    min-width: 0;
    font-size: 0.74rem;
    font-weight: 700;
    color: #fff;
    padding: 0.05rem 0.2rem;
    line-height: 1.2;
}

.jugadas-ghost-total {
    width: 4.25rem;
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 800;
    color: #e0f7fa;
    padding: 0;
    text-align: right;
    background: transparent;
    border: none;
}

.jugadas-ghost-result {
    width: 3rem;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0;
    text-align: right;
}

.jugadas-ghost-result-ganada:not(:disabled) { color: #7dffb6; }
.jugadas-ghost-result-perdida:not(:disabled) { color: #ff8fab; }

.jugadas-ghost-nota {
    width: 100%;
    font-size: 0.64rem;
    color: #9fb0d0;
    padding: 0.12rem 0.3rem;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
}

.jugadas-btn-mini {
    padding: 0.15rem 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 5px;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1.2;
}

.jugadas-btn-save {
    color: #0a1628;
    background: #00f2fe;
    border-color: #00f2fe;
}

.jugadas-btn-delete {
    color: #ff8fab;
    background: rgba(255, 61, 113, 0.08);
    border-color: rgba(255, 61, 113, 0.25);
    padding: 0.15rem 0.35rem;
}

@media (max-width: 1100px) {
    .jugadas-master-layout {
        grid-template-columns: 1fr;
    }

    .jugadas-sidebar {
        position: static;
        max-height: 420px;
    }

    .jugadas-list {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-flow: row;
    }
}

@media (max-width: 900px) {
    .jugadas-card-grid {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .jugadas-col-result {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-left: 0;
        padding-top: 0.35rem;
    }

    .jugadas-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}

.cuotas-progreso {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
}

.cuotas-progreso-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.cuotas-progreso-label {
    color: #8ee4ff;
    font-weight: 700;
}

.cuotas-progreso-detalle {
    color: rgba(255, 255, 255, 0.65);
    text-align: right;
}

.cuotas-progreso-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.cuotas-progreso-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #00c2ff, #00f2fe);
    transition: width 0.35s ease;
}


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

    .cuotas-calc-row {
        grid-template-columns: 1fr;
    }

    .cuotas-left {
        grid-template-columns: 1fr;
    }

    .cuotas-surebet-panel {
        position: static;
    }

    .cuotas-list {
        width: 100%;
        max-height: none;
    }

    .cuotas-list-head {
        display: none;
    }

    .cuotas-manual-slot {
        max-width: none;
        position: static;
    }

    .cuotas-list-head,
    .cuotas-row {
        grid-template-columns: 1fr auto;
    }

    .cuotas-row {
        grid-template-areas:
            "teams margen"
            "time margen"
            "picks picks";
    }

    .cuotas-row-time { grid-area: time; }
    .cuotas-row-teams { grid-area: teams; }
    .cuotas-row-picks {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-area: picks;
        gap: 0.35rem;
    }
    .cuotas-pick-cell {
        flex-direction: column;
        justify-content: center;
        gap: 0.2rem;
    }
    .cuotas-margen-inline { grid-area: margen; }
}

/* ── Revisar DNI — pantalla única ── */
.dni-page {
    background: #060913;
    height: calc(100vh - 0.5rem);
    height: calc(100dvh - 0.5rem);
    overflow: hidden;
    color: #f0f4f8;
    padding: 0.35rem 0.45rem;
    margin: -0.25rem -0.5rem;
    box-sizing: border-box;
}

.dni-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 0.3rem;
    min-height: 0;
}

.dni-top-compact {
    padding-bottom: 0.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dni-top-compact h1 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.dni-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-shrink: 0;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dni-top-title h1 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.dni-kicker {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #00f2fe;
}

.dni-top-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.dni-chip {
    font-size: 0.62rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #9aa8c8;
}

.dni-chip-ok { border-color: rgba(34, 197, 94, 0.35); color: #4ade80; }
.dni-chip-fail { border-color: rgba(239, 68, 68, 0.35); color: #f87171; }
.dni-chip-tg { border-color: rgba(42, 171, 238, 0.35); color: #7dd3fc; }

.dni-main {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 268px minmax(220px, 250px) minmax(0, 1fr);
    gap: 0.4rem;
}

.dni-sidebar-compact {
    gap: 0.28rem;
}

.dni-sidebar-block-compact {
    padding: 0.35rem 0.4rem;
}

.dni-sidebar-block-compact .dni-label {
    margin-bottom: 0.12rem;
    font-size: 0.6rem;
}

.dni-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.dni-sidebar-block {
    background: rgba(22, 30, 49, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.5rem;
}

.dni-consultas-stack {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.dni-consulta-card {
    display: flex;
    gap: 0.5rem;
    background: rgba(22, 30, 49, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.5rem;
}

.dni-consulta-card-tg {
    border-color: rgba(42, 171, 238, 0.22);
}

.dni-consulta-step {
    flex-shrink: 0;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #060913;
    background: linear-gradient(135deg, #00f2fe, #2aabee);
    margin-top: 0.1rem;
}

.dni-consulta-step-tg {
    background: linear-gradient(135deg, #2aabee, #229ed9);
}

.dni-consulta-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
}

.dni-consulta-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
}

.dni-consulta-kicker {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #00f2fe;
}

.dni-consulta-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.dni-consulta-desc {
    margin: 0;
    font-size: 0.67rem;
    color: #6c7a9c;
    line-height: 1.4;
}

.dni-consulta-desc code {
    color: #7dd3fc;
    font-size: 0.64rem;
}

.dni-consultas-stack-tight {
    gap: 0.28rem;
}

.dni-consulta-row {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}

.dni-consulta-row .dni-consulta-step {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.18rem;
    font-size: 0.65rem;
}

.dni-consulta-row-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.dni-consulta-row .dni-btn-action {
    flex: 1;
    width: 100%;
    padding: 0.32rem 0.45rem !important;
    font-size: 0.68rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dni-consulta-row-tg .dni-btn-consulta-2 {
    text-align: left;
}

.dni-input-compact {
    min-height: 1.75rem !important;
    max-height: 4.5rem;
    padding: 0.22rem 0.38rem !important;
    font-size: 0.74rem !important;
    line-height: 1.25;
}

.dni-sidebar-status-compact {
    font-size: 0.62rem;
    padding: 0.2rem 0.35rem;
}

.dni-sidebar-results-compact {
    padding: 0.35rem;
    gap: 0.28rem;
    max-height: 42vh;
}

.dni-final-card-compact {
    padding: 0.35rem 0.4rem;
    gap: 0.22rem;
}

.dni-final-card-compact .dni-final-top {
    margin-bottom: 0;
}

.dni-final-card-compact .dni-sidebar-result-dni {
    font-size: 0.76rem;
}

.dni-final-card-compact .dni-final-badge {
    font-size: 0.58rem;
    padding: 0.1rem 0.35rem;
}

.dni-final-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.22rem;
}

.dni-final-pill {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 0.08rem 0.32rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #9aa8c8;
}

.dni-final-pill.is-ok {
    border-color: rgba(34, 197, 94, 0.35);
    color: #4ade80;
}

.dni-final-pill.is-fail {
    border-color: rgba(239, 68, 68, 0.35);
    color: #f87171;
}

.dni-final-pill.is-skip {
    border-color: rgba(255, 255, 255, 0.08);
    color: #6c7a9c;
}

.dni-tg-checks-inline {
    font-size: 0.6rem;
    color: #9aa8c8;
}

.dni-historial-item-compact {
    padding: 0.35rem 0.4rem;
}

.dni-consulta-card-compact {
    padding: 0.38rem 0.45rem;
}

.dni-consulta-card-compact .dni-consulta-body {
    gap: 0.28rem;
}

.dni-consulta-card-compact .dni-consulta-step {
    width: 1.45rem;
    height: 1.45rem;
    font-size: 0.68rem;
    margin-top: 0.05rem;
}

.dni-consulta-card-compact .dni-btn-action {
    padding: 0.38rem 0.55rem !important;
    font-size: 0.7rem !important;
}

.dni-tg-inline-ok {
    font-size: 0.62rem;
    color: #4ade80;
    font-weight: 600;
}

.dni-tg-status-compact {
    font-size: 0.62rem;
}

.dni-tg-auth-panel-compact {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.dni-comprobando-panel-compact {
    padding: 0.38rem 0.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.dni-comprobando-panel-compact .dni-comprobando-title {
    font-size: 0.65rem;
}

.dni-comprobando-panel-compact .dni-comprobando-dni {
    font-size: 0.68rem;
}

.dni-teapuesto-panel-compact {
    margin-top: 0;
    padding: 0.45rem 0.5rem;
    gap: 0.28rem;
}

.dni-teapuesto-panel-compact .dni-label {
    margin-bottom: 0;
    font-size: 0.62rem;
}

.dni-teapuesto-panel-compact .dni-input {
    padding: 0.28rem 0.4rem;
    font-size: 0.72rem;
}

.dni-teapuesto-datos {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    padding: 0.32rem 0.38rem;
    border-radius: 8px;
    background: rgba(6, 9, 19, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dni-teapuesto-dato {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 0.68rem;
}

.dni-teapuesto-dato-label {
    color: #6c7a9c;
    flex-shrink: 0;
}

.dni-teapuesto-dato-val {
    color: #e8edf7;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.dni-teapuesto-ingreso {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.dni-sidebar-results + .dni-teapuesto-panel-compact {
    margin-top: 0.35rem;
}

.dni-btn-action {
    border-radius: 8px !important;
    padding: 0.5rem 0.65rem !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.dni-btn-action:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.07);
}

.dni-btn-action:active:not(:disabled) {
    transform: translateY(0);
}

.dni-btn-action:disabled {
    opacity: 0.42;
    box-shadow: none;
}

.dni-btn-consulta-1 {
    background: linear-gradient(135deg, #00f2fe 0%, #00b4d8 100%) !important;
    border: none !important;
    color: #041018 !important;
    box-shadow: 0 3px 14px rgba(0, 242, 254, 0.28);
}

.dni-btn-consulta-1:hover:not(:disabled) {
    box-shadow: 0 4px 18px rgba(0, 242, 254, 0.38);
}

.dni-btn-consulta-2 {
    background: linear-gradient(135deg, #5bc8fc 0%, #229ed9 55%, #1a8bc4 100%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 3px 14px rgba(34, 158, 217, 0.35);
}

.dni-btn-consulta-2:hover:not(:disabled) {
    box-shadow: 0 4px 18px rgba(34, 158, 217, 0.45);
}

.dni-btn-comprobar {
    margin-top: 0.05rem;
    padding: 0.42rem 0.55rem !important;
    font-size: 0.72rem !important;
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 55%, #d97706 100%) !important;
    border: none !important;
    color: #1a1208 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 3px 14px rgba(245, 158, 11, 0.32);
}

.dni-btn-comprobar:hover:not(:disabled) {
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.42);
}

.dni-teapuesto-panel {
    margin-top: 0.65rem;
    padding: 0.65rem 0.7rem;
    border-radius: 12px;
    border: 1px solid rgba(34, 158, 217, 0.28);
    background: rgba(34, 158, 217, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dni-teapuesto-head {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
}

.dni-teapuesto-kicker {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7ddfff;
}

.dni-teapuesto-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e8edf7;
}

.dni-teapuesto-hint {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.35;
    color: #8b9ab8;
}

.dni-btn-teapuesto {
    margin-top: 0.15rem;
    background: linear-gradient(135deg, #38bdf8, #229ed9) !important;
    border: none !important;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 12px rgba(34, 158, 217, 0.35);
}

.dni-email-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem;
    align-items: center;
}

.dni-btn-gmail {
    background: linear-gradient(135deg, #ea4335, #c5221f) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 800;
    min-width: 4.2rem;
    padding-inline: 0.55rem !important;
    box-shadow: 0 2px 10px rgba(234, 67, 53, 0.35);
}

.dni-teapuesto-mini {
    font-size: 0.68rem;
    color: #8b9ab8;
}

.dni-teapuesto-msg {
    font-size: 0.72rem;
    line-height: 1.35;
    color: #c5d4ef;
}

.dni-teapuesto-count {
    font-size: 0.68rem;
    color: #8b9ab8;
}

.dni-teapuesto-link-bd {
    font-size: 0.68rem;
    color: #93c5fd;
    text-decoration: none;
}

.dni-teapuesto-link-bd:hover {
    color: #bfdbfe;
    text-decoration: underline;
}

.dni-teapuesto-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.dni-teapuesto-actions-stack {
    grid-template-columns: 1fr;
    gap: 0.35rem;
}

.dni-teapuesto-hint-inline {
    margin: 0;
    font-size: 0.64rem;
    line-height: 1.3;
    color: #7d8fa8;
}

.dni-teapuesto-msg-guardado {
    color: #86efac;
}

.dni-btn-guardar {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    border: none !important;
    color: #fff !important;
}

.dni-teapuesto-badge {
    font-size: 0.68rem;
    color: #6ee7a0;
}

.dni-teapuesto-import {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: #c5d4ef;
}

.dni-teapuesto-import summary {
    cursor: pointer;
    color: #93c5fd;
}

.dni-teapuesto-import input[type="file"] {
    margin-top: 0.35rem;
    font-size: 0.68rem;
    max-width: 100%;
}

.dni-teapuesto-campos {
    margin: 0;
    padding-left: 1rem;
    font-size: 0.68rem;
    color: #8b9ab8;
}

.dni-teapuesto-ok { color: #6ee7a0; }
.dni-teapuesto-skip { color: #fbbf24; }

.dni-btn-tg-auth {
    background: linear-gradient(135deg, #229ed9, #1a7fb8) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(34, 158, 217, 0.3);
}

.dni-comprobando-panel {
    padding: 0.5rem 0.55rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 242, 254, 0.25);
    background: rgba(0, 242, 254, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dni-comprobando-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #00f2fe;
}

.dni-comprobando-steps {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.dni-comprobando-step {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    color: #6c7a9c;
}

.dni-comprobando-step.is-active {
    color: #e8f6fc;
    font-weight: 600;
}

.dni-comprobando-step.is-done {
    color: #4ade80;
}

.dni-comprobando-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6c7a9c;
    flex-shrink: 0;
}

.dni-comprobando-step.is-active .dni-comprobando-dot {
    background: #00f2fe;
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.8);
}

.dni-comprobando-step.is-done .dni-comprobando-dot {
    background: #4ade80;
}

.dni-comprobando-dni {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.72rem;
    color: #9aa8c8;
}

.dni-final-card {
    border-radius: 10px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(6, 9, 19, 0.55);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dni-final-comprobado {
    border-color: rgba(74, 222, 128, 0.35);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(6, 9, 19, 0.5));
}

.dni-final-rechazadoconsulta1,
.dni-final-rechazadoconsulta2 {
    border-color: rgba(248, 113, 113, 0.35);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(6, 9, 19, 0.5));
}

.dni-final-incompleto,
.dni-final-sindatos {
    border-color: rgba(251, 191, 36, 0.3);
}

.dni-final-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
}

.dni-final-badge {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #c5d0e6;
    white-space: nowrap;
}

.dni-final-comprobado .dni-final-badge {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.15);
}

.dni-final-rechazadoconsulta1 .dni-final-badge,
.dni-final-rechazadoconsulta2 .dni-final-badge {
    color: #f87171;
    background: rgba(239, 68, 68, 0.15);
}

.dni-final-resumen {
    margin: 0;
    font-size: 0.68rem;
    color: #9aa8c8;
    line-height: 1.4;
}

.dni-final-steps {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.dni-final-step {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.35rem 0.4rem;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.dni-final-step-ok {
    border-color: rgba(74, 222, 128, 0.25);
}

.dni-final-step-fail {
    border-color: rgba(248, 113, 113, 0.25);
}

.dni-final-step-skip {
    opacity: 0.65;
}

.dni-final-step-num {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.1);
    color: #9aa8c8;
    flex-shrink: 0;
}

.dni-final-step-ok .dni-final-step-num {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.dni-final-step-fail .dni-final-step-num {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.dni-final-step-title {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c7a9c;
}

.dni-final-step-value {
    display: block;
    margin-top: 0.06rem;
    font-size: 0.7rem;
    color: #e8edf7;
    font-weight: 600;
    line-height: 1.35;
}

.dni-tg-auth-stack {
    flex-direction: column;
    width: 100%;
}

.dni-auth-input-wide {
    width: 100%;
    font-size: 0.72rem !important;
    padding: 0.3rem 0.45rem !important;
    min-height: auto !important;
    background: rgba(6, 9, 19, 0.9) !important;
    border: 1px solid rgba(42, 171, 238, 0.35) !important;
    color: #fff !important;
}

.dni-sidebar-status {
    font-size: 0.68rem;
    color: #00f2fe;
    padding: 0.3rem 0.45rem;
    background: rgba(0, 242, 254, 0.06);
    border-radius: 6px;
}

.dni-errors-side {
    max-height: 5rem;
}

.dni-sidebar-results {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.25rem;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(22, 30, 49, 0.55);
    flex-shrink: 0;
    max-height: 55vh;
    overflow-y: auto;
}

.dni-sidebar-results-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9aa8c8;
}

.dni-sidebar-result-card {
    background: rgba(6, 9, 19, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dni-sidebar-result-dni {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
}

.dni-sidebar-f1,
.dni-sidebar-f2 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.25rem 0.4rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
}

.dni-sidebar-f-label {
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c7a9c;
    min-width: 1.2rem;
}

.dni-result-ok.dni-sidebar-f1 { color: #4ade80; }
.dni-result-fail.dni-sidebar-f1 { color: #f87171; }
.dni-result-error.dni-sidebar-f1 { color: #fbbf24; }

.dni-sidebar-f2-pending {
    color: #9aa8c8;
}

.dni-tg-verdict-panel-side {
    gap: 0.35rem;
}

.dni-tg-verdict-panel-side .dni-tg-verdict {
    padding: 0.45rem 0.5rem;
}

.dni-tg-verdict-panel-side .dni-tg-verdict-copy strong {
    font-size: 0.7rem;
}

.dni-tg-verdict-panel-side .dni-tg-verdict-copy span {
    font-size: 0.65rem;
}

.dni-tg-checks-side {
    grid-template-columns: 1fr;
    gap: 0.3rem;
}

.dni-tg-checks-side .dni-tg-check {
    padding: 0.35rem 0.45rem;
}

.dni-tg-checks-side .dni-tg-check-value {
    font-size: 0.68rem;
}

.dni-results-panel,
.dni-historial-panel,
.dni-detail-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: rgba(22, 30, 49, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.dni-historial-hint {
    margin: 0;
    padding: 0.25rem 0.65rem 0.35rem;
    font-size: 0.62rem;
    color: #6c7a9c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.dni-historial-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dni-historial-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(6, 9, 19, 0.45);
    padding: 0.45rem 0.5rem;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
}

.dni-historial-item:hover {
    border-color: rgba(0, 242, 254, 0.25);
    background: rgba(0, 242, 254, 0.05);
}

.dni-historial-item.is-active {
    border-color: rgba(0, 242, 254, 0.45);
    background: rgba(0, 242, 254, 0.1);
    box-shadow: inset 3px 0 0 #00f2fe;
}

.dni-historial-item.dni-historial-ok .dni-historial-badge {
    color: #4ade80;
}

.dni-historial-item.dni-historial-fail .dni-historial-badge {
    color: #f87171;
}

.dni-historial-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}

.dni-historial-dni {
    font-weight: 800;
    font-size: 0.82rem;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.dni-historial-badge {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #9aa8c8;
    white-space: nowrap;
}

.dni-historial-item-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.35rem;
    font-size: 0.62rem;
    color: #6c7a9c;
}

.dni-historial-tipo {
    color: #8ea3c8;
}

.dni-historial-time {
    font-family: ui-monospace, Consolas, monospace;
}

.dni-historial-resumen {
    margin: 0;
    font-size: 0.65rem;
    line-height: 1.35;
    color: #9aa8c8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dni-detail-section-final {
    border-left: 3px solid rgba(255, 235, 59, 0.35);
}

.dni-tg-checks-detail {
    margin-bottom: 0.45rem;
}

.dni-results-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9aa8c8;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.dni-results-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.dni-detail-card {
    background: rgba(6, 9, 19, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.dni-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dni-detail-header .dni-result-dni {
    font-size: 1rem;
}

.dni-detail-time {
    font-size: 0.68rem;
    color: #6c7a9c;
    font-family: ui-monospace, Consolas, monospace;
}

.dni-detail-section {
    padding: 0.5rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dni-detail-section:last-child {
    border-bottom: none;
}

.dni-detail-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9aa8c8;
}

.dni-detail-text {
    margin: 0;
    font-size: 0.8rem;
    color: #c5d0e6;
    line-height: 1.45;
    white-space: pre-wrap;
}

.dni-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.35rem 0.75rem;
    margin: 0 0 0.45rem;
}

.dni-detail-field dt {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c7a9c;
    margin: 0;
}

.dni-detail-field dd {
    margin: 0.1rem 0 0;
    font-size: 0.82rem;
    color: #f0f4f8;
    font-weight: 600;
}

.dni-detail-raw {
    margin: 0;
    padding: 0.5rem 0.6rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    font-size: 0.75rem;
    color: #c5d0e6;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.4;
    max-height: none;
    overflow: visible;
}

.dni-result-tg-pass {
    border-color: rgba(34, 197, 94, 0.45);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(6, 9, 19, 0.35));
    box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.08);
}

.dni-result-tg-fail {
    border-color: rgba(239, 68, 68, 0.45);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(6, 9, 19, 0.35));
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.08);
}

.dni-badge-pass {
    color: #4ade80 !important;
    background: rgba(34, 197, 94, 0.18) !important;
    border: 1px solid rgba(74, 222, 128, 0.35);
}

.dni-badge-fail {
    color: #f87171 !important;
    background: rgba(239, 68, 68, 0.18) !important;
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.dni-tg-verdict-panel {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
    max-width: 100%;
}

.dni-tg-verdict {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dni-tg-verdict-aprobado {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(74, 222, 128, 0.35);
}

.dni-tg-verdict-rechazado {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(248, 113, 113, 0.35);
}

.dni-tg-verdict-desconocido {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.3);
}

.dni-tg-verdict-light {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.15rem;
    box-shadow: 0 0 12px currentColor;
}

.dni-tg-verdict-aprobado .dni-tg-verdict-light {
    background: #4ade80;
    color: #4ade80;
    animation: dni-pulse-green 2s ease-in-out infinite;
}

.dni-tg-verdict-rechazado .dni-tg-verdict-light {
    background: #f87171;
    color: #f87171;
    animation: dni-pulse-red 2s ease-in-out infinite;
}

.dni-tg-verdict-desconocido .dni-tg-verdict-light {
    background: #fbbf24;
    color: #fbbf24;
}

@keyframes dni-pulse-green {
    0%, 100% { box-shadow: 0 0 8px rgba(74, 222, 128, 0.5); }
    50% { box-shadow: 0 0 18px rgba(74, 222, 128, 0.95); }
}

@keyframes dni-pulse-red {
    0%, 100% { box-shadow: 0 0 8px rgba(248, 113, 113, 0.5); }
    50% { box-shadow: 0 0 18px rgba(248, 113, 113, 0.95); }
}

.dni-tg-verdict-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.dni-tg-verdict-copy strong {
    font-size: 0.78rem;
    color: #f0f4f8;
}

.dni-tg-verdict-copy span {
    font-size: 0.72rem;
    color: #9aa8c8;
    line-height: 1.4;
}

.dni-tg-checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin: 0;
}

.dni-tg-check {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.dni-tg-check-ok {
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(34, 197, 94, 0.08);
}

.dni-tg-check-fail {
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(239, 68, 68, 0.08);
}

.dni-tg-check-unknown {
    border-color: rgba(251, 191, 36, 0.25);
    background: rgba(251, 191, 36, 0.06);
}

.dni-tg-check-icon {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}

.dni-tg-check-ok .dni-tg-check-icon {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.dni-tg-check-fail .dni-tg-check-icon {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.dni-tg-check-unknown .dni-tg-check-icon {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.dni-tg-check-title {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c7a9c;
}

.dni-tg-check-value {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.76rem;
    color: #e8edf7;
    font-weight: 600;
    line-height: 1.35;
}

.dni-telegram-resumen {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.35rem 1.1rem;
    margin: 0 0 0.5rem;
    padding: 0 0 0.45rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dni-telegram-resumen-item {
    min-width: 0;
}

.dni-telegram-resumen-item dt {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c7a9c;
    margin: 0;
}

.dni-telegram-resumen-item dd {
    margin: 0.08rem 0 0;
    font-size: 0.8rem;
    color: #f0f4f8;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 14rem;
}

.dni-telegram-resumen-wide {
    flex: 1 1 100%;
}

.dni-telegram-resumen-wide dd {
    white-space: normal;
    max-width: none;
}

.dni-telegram-body {
    display: grid;
    gap: 0.5rem 0.65rem;
    align-items: stretch;
}

.dni-telegram-body-con-foto {
    grid-template-columns: minmax(0, 1fr) 200px;
}

.dni-telegram-body-solo-texto {
    grid-template-columns: 1fr;
}

.dni-telegram-body-con-veredicto.dni-telegram-body-con-foto {
    grid-template-rows: auto auto;
}

.dni-telegram-text {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    align-self: start;
}

.dni-telegram-body-con-veredicto .dni-tg-verdict-panel {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    justify-self: start;
}

.dni-telegram-body-con-veredicto.dni-telegram-body-con-foto .dni-telegram-photo {
    grid-column: 2;
    grid-row: 1 / -1;
}

.dni-telegram-photo {
    grid-column: 2;
    grid-row: 1;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    align-self: center;
}

.dni-detail-grid-telegram {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dni-detail-field-wide {
    grid-column: 1 / -1;
}

.dni-detail-section-data {
    border-color: rgba(42, 171, 238, 0.2);
    background: rgba(6, 9, 19, 0.35);
}

.dni-detail-photo {
    display: block;
    width: 200px;
    max-width: 200px;
    min-height: 140px;
    max-height: 280px;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
}

.dni-label {
    display: block;
    font-size: 0.65rem;
    color: #6c7a9c;
    margin-bottom: 0.2rem;
}

.dni-toolbar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.dni-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.dni-btns .btn-sm {
    font-size: 0.72rem;
    padding: 0.28rem 0.55rem;
    white-space: nowrap;
}

.dni-errors {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    max-height: 3.2rem;
    overflow-y: auto;
}

.dni-errors span {
    font-size: 0.68rem;
    color: #fbbf24;
    line-height: 1.25;
}

.dni-toolbar-tg {
    background: rgba(22, 30, 49, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.4rem 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.dni-toolbar-tg.dni-tg-ok {
    border-color: rgba(42, 171, 238, 0.3);
}

.dni-tg-status {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    color: #c5d0e6;
    flex-wrap: wrap;
}

.dni-tg-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fbbf24;
    flex-shrink: 0;
}

.dni-tg-ok-line .dni-tg-dot { background: #22c55e; }

.dni-tg-connecting .dni-tg-dot {
    background: #38bdf8;
    animation: dni-tg-pulse 1.2s ease-in-out infinite;
}

.dni-tg-auth-needed .dni-tg-dot {
    background: #f59e0b;
}

@keyframes dni-tg-pulse {
    50% { opacity: 0.35; transform: scale(0.85); }
}

.dni-tg-bot {
    font-family: ui-monospace, Consolas, monospace;
    color: #7dd3fc;
    font-size: 0.65rem;
}

.dni-tg-mini {
    font-size: 0.65rem;
    color: #6c7a9c;
}

.dni-tg-auth {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.dni-tg-auth-panel {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.45rem 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.08);
}

.dni-tg-auth-hint {
    margin: 0;
    font-size: 0.65rem;
    color: #d4b87a;
    line-height: 1.35;
}

/* legacy cols — ya no usadas en layout principal */
.dni-body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.dni-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: rgba(22, 30, 49, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.dni-col-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0.6rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9aa8c8;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.dni-col-count {
    font-family: ui-monospace, Consolas, monospace;
    color: #6c7a9c;
}

.dni-col-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dni-col-empty {
    font-size: 0.75rem;
    color: #6c7a9c;
    text-align: center;
    padding: 1rem 0.5rem;
}

.dni-result-compact {
    border-radius: 8px;
    padding: 0.4rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-columns: auto auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.15rem 0.45rem;
    align-items: center;
}

.dni-result-compact .dni-result-dni {
    font-size: 0.88rem;
    grid-column: 1;
}

.dni-result-compact .dni-result-badge {
    font-size: 0.58rem;
    grid-column: 2;
}

.dni-result-compact .dni-result-time {
    font-size: 0.62rem;
    grid-column: 3;
    text-align: right;
    margin-left: 0;
}

.dni-result-compact .dni-result-msg,
.dni-result-compact .dni-tg-inline,
.dni-result-compact .dni-tg-raw {
    grid-column: 1 / -1;
}

.dni-tg-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.6rem;
    font-size: 0.72rem;
    color: #e2e8f0;
}

.dni-tg-inline span::after {
    content: "·";
    margin-left: 0.6rem;
    color: #6c7a9c;
}

.dni-tg-inline span:last-child::after {
    content: "";
    margin: 0;
}

@media (max-width: 1100px) {
    .dni-main {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "sidebar sidebar"
            "historial detail";
    }

    .dni-sidebar { grid-area: sidebar; }
    .dni-historial-panel { grid-area: historial; }
    .dni-detail-panel { grid-area: detail; }
}

@media (max-width: 900px) {
    .dni-main {
        grid-template-columns: 1fr;
        grid-template-areas:
            "sidebar"
            "historial"
            "detail";
    }

    .dni-page {
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }

    .dni-shell {
        height: auto;
        min-height: calc(100vh - 1rem);
    }

    .dni-results-scroll {
        max-height: 50vh;
    }

    .dni-telegram-body-con-foto {
        grid-template-columns: minmax(0, 1fr) 160px;
    }

    .dni-telegram-photo,
    .dni-detail-photo {
        width: 160px;
        max-width: 160px;
        max-height: 220px;
    }

    .dni-tg-checks {
        grid-template-columns: 1fr;
    }
}

.dni-link {
    color: #00f2fe;
    text-decoration: none;
}

.dni-link:hover {
    text-decoration: underline;
}

.dni-panel {
    background: rgba(22, 30, 49, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem;
}

.dni-panel-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.dni-panel-title {
    font-weight: 700;
    color: #fff;
}

.dni-panel-hint {
    font-size: 0.78rem;
    color: #6c7a9c;
}

.dni-input {
    background: rgba(6, 9, 19, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f0f4f8 !important;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.82rem;
    border-radius: 8px !important;
    resize: none;
    min-height: 2.6rem;
    padding: 0.35rem 0.5rem !important;
}

.dni-input:focus {
    border-color: rgba(0, 242, 254, 0.5) !important;
    box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.15) !important;
}

.dni-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.dni-progress {
    font-size: 0.82rem;
    color: #6c7a9c;
}

.dni-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    font-size: 0.82rem;
    color: #9aa8c8;
}

.dni-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dni-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dni-legend-ok .dni-legend-dot { background: #22c55e; }
.dni-legend-fail .dni-legend-dot { background: #ef4444; }
.dni-legend-wait .dni-legend-dot { background: #60a5fa; }

.dni-results {
    display: grid;
    gap: 0.75rem;
}

.dni-result-card {
    border-radius: 12px;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(22, 30, 49, 0.7);
}

.dni-result-ok {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.08);
}

.dni-result-fail {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
}

.dni-result-error {
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.08);
}

.dni-result-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.dni-result-dni {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.dni-result-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.dni-result-ok .dni-result-badge { color: #4ade80; }
.dni-result-fail .dni-result-badge { color: #f87171; }
.dni-result-error .dni-result-badge { color: #fbbf24; }

.dni-result-time {
    margin-left: auto;
    font-size: 0.75rem;
    color: #6c7a9c;
}

.dni-result-msg {
    margin: 0;
    font-size: 0.88rem;
    color: #c5d0e6;
    line-height: 1.45;
}

.dni-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #6c7a9c;
    font-size: 0.9rem;
}

.dni-actions-split {
    flex-wrap: wrap;
}

.dni-btn-telegram {
    background: linear-gradient(135deg, #2aabee, #229ed9) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
}

.dni-btn-both {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(0, 242, 254, 0.35) !important;
    color: #00f2fe !important;
}

.dni-filters-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.dni-filter-block {
    background: rgba(22, 30, 49, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dni-filter-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #00f2fe;
}

.dni-legend-tg .dni-legend-dot { background: #2aabee; }

.dni-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #9aa8c8;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dni-telegram-panel {
    background: rgba(42, 171, 238, 0.08);
    border: 1px solid rgba(42, 171, 238, 0.25);
    border-radius: 12px;
    padding: 1rem 1.15rem;
}

.dni-telegram-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    font-weight: 600;
    color: #e8f6fc;
}

.dni-telegram-user {
    font-size: 0.82rem;
    color: #7dd3fc;
}

.dni-telegram-hint {
    margin: 0.65rem 0 0;
    font-size: 0.82rem;
    color: #9aa8c8;
}

.dni-telegram-hint code {
    color: #7dd3fc;
}

.dni-telegram-auth {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.dni-auth-input {
    max-width: 220px;
    background: rgba(6, 9, 19, 0.9) !important;
    border: 1px solid rgba(42, 171, 238, 0.35) !important;
    color: #fff !important;
}

.blindar-calc-panel {
    border-color: rgba(125, 255, 182, 0.18) !important;
}

.blindar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 12px;
    align-items: start;
}

.blindar-main {
    min-width: 0;
}

.blindar-sidebar-guardados {
    position: sticky;
    top: 12px;
    background: rgba(15, 22, 38, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.blindar-estado-registro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-bottom: 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.blindar-estado-grupo {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.blindar-estado-grupo-corte {
    padding-left: 0.65rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.blindar-estado-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8fa3c4;
    white-space: nowrap;
}

.blindar-estado-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.blindar-estado-pill {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #9fb0d0;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s, color 0.12s;
}

.blindar-estado-pill:hover {
    border-color: rgba(0, 242, 254, 0.35);
    color: #c8f7ff;
}

.blindar-estado-pill.active {
    border-color: #00f2fe;
    background: rgba(0, 242, 254, 0.16);
    color: #fff;
}

.blindar-estado-pill-culminado.active {
    border-color: #7dffb6;
    background: rgba(125, 255, 182, 0.14);
    color: #d7ffe4;
}

.blindar-estado-pill-ticket.active {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.18);
    color: #ffe082;
}

.blindar-estado-pill-blindaje.active {
    border-color: #00e5ff;
    background: rgba(0, 229, 255, 0.16);
    color: #b2ebf2;
}

.blindar-rec-estado-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}

.blindar-rec-badge {
    font-size: 0.58rem;
    font-weight: 800;
    padding: 0.08rem 0.4rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.blindar-rec-badge-pendiente {
    background: rgba(255, 193, 7, 0.15);
    color: #ffd54f;
    border: 1px solid rgba(255, 193, 7, 0.35);
}

.blindar-rec-badge-culminado {
    background: rgba(125, 255, 182, 0.12);
    color: #7dffb6;
    border: 1px solid rgba(125, 255, 182, 0.35);
}

.blindar-rec-resultado {
    display: block;
    font-size: 0.64rem !important;
    color: #ffe082 !important;
    font-weight: 700;
}

.blindar-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blindar-sidebar-title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9fb0d0;
}

.blindar-sidebar-count {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(0, 242, 254, 0.15);
    color: #00f2fe;
}

.blindar-sidebar-empty {
    margin: 0;
    font-size: 0.75rem;
    color: #6c7a9c;
    line-height: 1.4;
}

.blindar-recordatorios-sidebar {
    max-height: none;
    margin: 0;
    padding: 0;
}

.blindar-recordatorios-sidebar .blindar-recordatorio-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.55rem 0.6rem;
}

.blindar-recordatorios-sidebar .blindar-recordatorio-item.is-active {
    border-color: rgba(0, 242, 254, 0.45);
    background: rgba(0, 242, 254, 0.08);
}

.blindar-recordatorios-sidebar .blindar-recordatorio-info span {
    display: block;
    font-size: 0.65rem;
}

.blindar-recordatorios-sidebar .blindar-recordatorio-btns {
    justify-content: flex-end;
}

.blindar-table-wrap-compact {
    overflow-x: auto;
}

.blindar-table-compact {
    table-layout: fixed;
    width: 100%;
    min-width: 820px;
    font-size: 0.72rem;
}

.blindar-table-compact th,
.blindar-table-compact td {
    padding: 0.22rem 0.28rem !important;
}

.blindar-table-compact th:nth-child(1) { width: 1.6rem; }
.blindar-table-compact th:nth-child(2) { width: 18%; }
.blindar-table-compact th:nth-child(3) { width: 8.5rem; }
.blindar-table-compact th:nth-child(4) { width: 4.2rem; }
.blindar-table-compact th:nth-child(5) { width: 7.5rem; }
.blindar-table-compact th:nth-child(6),
.blindar-table-compact th:nth-child(7),
.blindar-table-compact th:nth-child(8),
.blindar-table-compact th:nth-child(9),
.blindar-table-compact th:nth-child(10) { width: 4.2rem; }

.blindar-modo-pills {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.blindar-modo-pill {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.25);
    color: #9fb0d0;
    border-radius: 4px;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 0.14rem 0.22rem;
    line-height: 1.1;
    cursor: pointer;
}

.blindar-modo-pill:hover:not(:disabled) {
    border-color: rgba(0, 242, 254, 0.35);
    color: #c5f6ff;
}

.blindar-modo-pill.active {
    border-color: rgba(0, 242, 254, 0.55);
    background: rgba(0, 242, 254, 0.14);
    color: #8ee4ff;
}

.blindar-modo-pill:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.blindar-cuotas-dual {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.blindar-cuota-mini {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 0;
}

.blindar-cuota-mini > span {
    flex: 0 0 2rem;
    font-size: 0.58rem;
    font-weight: 700;
    color: #8ea3c8;
    text-transform: uppercase;
}

.blindar-td-cuotas .blindar-table-input-cuota {
    max-width: none;
    flex: 1;
    min-width: 0;
}

.blindar-ap-split {
    display: block;
    margin-top: 1px;
    font-size: 0.58rem;
    color: #8ea3c8;
    font-weight: 600;
}

.blindar-td-2x-registro {
    padding: 0.35rem 0.4rem !important;
    vertical-align: top;
}

.blindar-2x-registro {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 14.5rem;
}

.blindar-2x-p-acum {
    font-size: 0.62rem;
    color: #8ea3c8;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blindar-2x-p-acum strong {
    color: #c5cae9;
}

.blindar-2x-registro-head,
.blindar-2x-leg {
    display: grid;
    grid-template-columns: 4.2rem 4.4rem 4.4rem 4.4rem;
    gap: 4px;
    align-items: center;
}

.blindar-2x-registro-head {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6c7a9c;
    letter-spacing: 0.03em;
}

.blindar-2x-leg {
    font-size: 0.68rem;
    color: #c5cae9;
    padding: 2px 0;
}

.blindar-2x-leg-total {
    margin-top: 2px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
}

.blindar-2x-col-leg {
    color: #9fb0d0;
    font-weight: 700;
    white-space: nowrap;
}

.blindar-2x-col-ap,
.blindar-2x-col-cob,
.blindar-2x-col-gn {
    text-align: right;
    white-space: nowrap;
}

.blindar-2x-registro .blindar-num-strong {
    color: #ffe082;
}

.blindar-2x-registro .blindar-highlight {
    color: #7dffb6;
}

.blindar-table-compact th:nth-child(6),
.blindar-table-compact th:nth-child(7),
.blindar-table-compact th:nth-child(8),
.blindar-table-compact th:nth-child(9) {
    width: auto;
    min-width: 3.6rem;
}

.blindar-table-compact th:nth-child(10) { width: 4.2rem; }

.blindar-aux-split small {
    display: block;
    margin-top: 1px;
    font-size: 0.58rem;
    color: #8ea3c8;
}

.blindar-td-modo-label {
    font-size: 0.65rem;
    color: #9fb0d0;
    white-space: nowrap;
}

.blindar-table-compact .blindar-table-input {
    min-width: 0;
    font-size: 0.72rem !important;
    padding: 0.22rem 0.35rem !important;
}

.blindar-table-compact .blindar-table-input-cuota {
    max-width: 3.2rem;
    min-width: 0;
}

.blindar-table-compact .blindar-td-seguimiento {
    min-width: 0;
    padding: 0.2rem 0.25rem !important;
}

.blindar-table-compact .blindar-seg-check span {
    display: none;
}

.blindar-table-compact .blindar-seg-btn {
    font-size: 0.58rem;
    padding: 0.12rem 0.28rem;
}

.blindar-table-compact .blindar-num {
    font-size: 0.68rem;
    white-space: nowrap;
}

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

    .blindar-sidebar-guardados {
        position: static;
        max-height: none;
    }
}

.blindar-empty-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    color: #6c7a9c;
    font-size: 0.85rem;
    text-align: center;
    justify-content: center;
}

.blindar-aux-inline {
    margin-top: 0.85rem;
    margin-bottom: 0;
    background: transparent;
    border: none;
    padding: 0;
}

.blindar-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    background: rgba(22, 30, 49, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.blindar-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #5f6f8f;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.blindar-step-num {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.blindar-step-active .blindar-step-num {
    background: rgba(0, 242, 254, 0.15);
    border-color: rgba(0, 242, 254, 0.45);
    color: #00f2fe;
}

.blindar-step-done .blindar-step-num {
    background: rgba(125, 255, 182, 0.15);
    border-color: rgba(125, 255, 182, 0.4);
    color: #7dffb6;
}

.blindar-step-line {
    width: 2.5rem;
    height: 2px;
    margin: 0 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    transition: background 0.2s;
}

.blindar-step-line-done {
    background: rgba(125, 255, 182, 0.45);
}

.blindar-panel-step {
    margin-bottom: 1rem;
}

.blindar-step-header {
    margin-bottom: 1.15rem;
}

.blindar-step-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
}

.blindar-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    max-width: 640px;
}

.blindar-input-lg {
    font-size: 1.05rem !important;
    font-weight: 600;
    padding: 0.55rem 0.75rem !important;
}

.blindar-partidos-picker {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.blindar-picker-btn {
    width: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #c8d4ea;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.blindar-picker-btn:hover:not(:disabled) {
    background: rgba(0, 242, 254, 0.12);
    border-color: rgba(0, 242, 254, 0.35);
    color: #00f2fe;
}

.blindar-picker-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.blindar-partidos-input {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.blindar-preview-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.blindar-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #9fb0d0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.blindar-step-actions {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.blindar-step-actions-split {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: space-between;
}

.blindar-btn-primary {
    min-width: 200px;
    font-weight: 700;
}

.blindar-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #c8d4ea;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.15s, border-color 0.15s;
}

.blindar-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #e8edf8;
}

.blindar-btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
}

.blindar-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #00f2fe;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    white-space: nowrap;
}

.blindar-summary-sep {
    opacity: 0.5;
}

.blindar-partidos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.85rem;
}

.blindar-partido-card {
    background: rgba(6, 9, 19, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    transition: border-color 0.2s;
}

.blindar-partido-card:focus-within {
    border-color: rgba(255, 214, 0, 0.35);
}

.blindar-partido-card-calc {
    flex-direction: row;
    align-items: flex-end;
    gap: 0.75rem;
}

.blindar-field-cuota-only {
    flex: 1;
    min-width: 0;
}

.blindar-td-num {
    text-align: center;
    font-weight: 800;
    color: #00f2fe;
    width: 2.5rem;
}

.blindar-partido-card-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blindar-partido-badge {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #00f2fe;
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.blindar-partido-card-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #c8d4ea;
}

.blindar-cuota-input-lg {
    font-size: 1.1rem !important;
    font-weight: 700;
    text-align: center;
}

.blindar-result-hero {
    border-color: rgba(125, 255, 182, 0.25) !important;
    background: linear-gradient(135deg, rgba(22, 30, 49, 0.95), rgba(12, 40, 30, 0.35)) !important;
}

.blindar-edit-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    background: rgba(6, 9, 19, 0.55);
    border: 1px solid rgba(255, 214, 0, 0.2);
    border-radius: 12px;
}

.blindar-calc-panel .blindar-edit-bar {
    margin-bottom: 0.85rem;
}

.blindar-calc-panel .blindar-kpi-row {
    margin-bottom: 0.85rem;
}

.blindar-persist-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    margin-bottom: 0.85rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
}

.blindar-persist-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #6c7a9c;
}

.blindar-persist-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: flex-end;
    min-width: 240px;
}

.blindar-recordatorio-input {
    flex: 1;
    min-width: 180px;
    max-width: 320px !important;
    font-size: 0.82rem !important;
}

.blindar-recordatorios-details {
    margin-bottom: 0.85rem;
    padding: 0.65rem 0.85rem;
    background: rgba(6, 9, 19, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #9fb0d0;
    font-size: 0.82rem;
}

.blindar-recordatorios-details summary {
    cursor: pointer;
    font-weight: 700;
    color: #c8d4ea;
    user-select: none;
}

.blindar-recordatorios-list {
    list-style: none;
    margin: 0.65rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.blindar-recordatorio-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.blindar-recordatorio-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.blindar-recordatorio-info strong {
    color: #e8edf8;
    font-size: 0.85rem;
}

.blindar-recordatorio-info span {
    color: #6c7a9c;
    font-size: 0.72rem;
}

.blindar-recordatorio-btns {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}

.blindar-btn-danger {
    background: rgba(255, 61, 113, 0.12);
    border: 1px solid rgba(255, 61, 113, 0.35);
    color: #ffb4c8;
    border-radius: 10px;
    padding: 0.35rem 0.75rem;
    font-weight: 600;
    font-size: 0.78rem;
}

.blindar-btn-danger:hover {
    background: rgba(255, 61, 113, 0.22);
    color: #ffd0dc;
}

.blindar-edit-bar-compact {
    align-items: flex-end;
}

.blindar-persist-actions-inline {
    margin-left: auto;
    flex: 1;
    min-width: 280px;
    max-width: 420px;
}

.blindar-btn-guardar {
    font-weight: 700;
    white-space: nowrap;
    min-width: 110px;
}

.blindar-table-editable .blindar-td-input {
    padding: 0.3rem 0.4rem !important;
    vertical-align: middle;
}

.blindar-table-input {
    width: 100%;
    min-width: 5.5rem;
    font-size: 0.8rem !important;
    padding: 0.3rem 0.45rem !important;
    max-width: none !important;
}

.blindar-table-input-cuota {
    min-width: 4rem;
    max-width: 5.5rem;
    text-align: center;
    font-weight: 700;
}

.blindar-table-editable th:nth-child(2) {
    min-width: 120px;
}

.blindar-table-editable th:nth-child(4) {
    min-width: 72px;
}

.blindar-th-seguimiento {
    min-width: 168px;
}

.blindar-td-seguimiento {
    padding: 0.3rem 0.4rem !important;
    vertical-align: middle;
    min-width: 168px;
}

.blindar-seguimiento {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.blindar-seg-check {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    color: #8fa3c4;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.blindar-seg-check input {
    width: 0.95rem;
    height: 0.95rem;
    margin: 0;
    accent-color: #00ff47;
    cursor: pointer;
    flex-shrink: 0;
}

.blindar-seguimiento.is-apostado .blindar-seg-check {
    color: #b9f6ca;
}

.blindar-seg-outcome {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.blindar-seg-btn {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: #9fb0d0;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0.18rem 0.4rem;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.12s, background 0.12s, color 0.12s;
}

.blindar-seg-btn:hover {
    border-color: rgba(0, 242, 254, 0.4);
    color: #c8f7ff;
}

.blindar-seg-btn.active {
    border-color: #00f2fe;
    background: rgba(0, 242, 254, 0.18);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(0, 242, 254, 0.25);
}

.blindar-seg-btn-corto.active {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.2);
    color: #ffe082;
    box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.35);
}

.blindar-seguimiento.is-cortado {
    border-left: 2px solid #ffc107;
    padding-left: 0.25rem;
}

.blindar-seguimiento.is-continua .blindar-seg-check {
    color: #80deea;
}

.blindar-row-activa td {
    background: rgba(0, 242, 254, 0.04);
}

.blindar-row-apostado td {
    background: rgba(0, 255, 71, 0.04);
}

.blindar-row-continua td {
    background: rgba(0, 242, 254, 0.07);
}

.blindar-row-cortado td {
    background: rgba(255, 193, 7, 0.08);
}

.blindar-row-inactiva td {
    opacity: 0.45;
}

.blindar-row-inactiva .blindar-table-input:disabled {
    cursor: not-allowed;
}

.blindar-edit-monto {
    min-width: 130px;
    flex: 0 0 130px;
}

.blindar-edit-partidos {
    min-width: 140px;
    flex: 0 0 140px;
}

.blindar-partidos-picker-sm .blindar-picker-btn {
    width: 2rem;
    font-size: 1rem;
}

.blindar-partidos-picker-sm .blindar-partidos-input {
    font-size: 0.9rem !important;
    padding: 0.35rem 0.25rem !important;
}

.blindar-edit-cuotas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
    flex: 1;
    min-width: 200px;
}

.blindar-edit-cuota-item {
    min-width: 72px;
    flex: 0 0 72px;
}

.blindar-edit-cuota-item span {
    text-align: center;
}

.blindar-cuota-input-compact {
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem !important;
    padding: 0.35rem 0.4rem !important;
    max-width: none !important;
}

.blindar-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blindar-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.blindar-kpi {
    background: rgba(6, 9, 19, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.blindar-kpi-main {
    border-color: rgba(125, 255, 182, 0.3);
    background: rgba(125, 255, 182, 0.06);
}

.blindar-kpi-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c7a9c;
    font-weight: 700;
}

.blindar-kpi-value {
    font-size: 1.2rem;
    color: #e8edf8;
    font-variant-numeric: tabular-nums;
}

.blindar-kpi-main .blindar-kpi-value {
    font-size: 1.45rem;
}

.blindar-section-title {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #c8d4ea;
}

.blindar-td-nombre {
    font-weight: 600;
    color: #dce6f5;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blindar-num-strong {
    font-weight: 700;
    color: #ffd166 !important;
}

.blindar-aux-details {
    grid-column: 1 / -1;
    background: rgba(22, 30, 49, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #9fb0d0;
    font-size: 0.82rem;
}

.blindar-aux-details summary {
    cursor: pointer;
    font-weight: 700;
    color: #c8d4ea;
    padding: 0.25rem 0;
    user-select: none;
}

.blindar-aux-details[open] summary {
    margin-bottom: 0.75rem;
}

.blindar-notas-steps {
    margin: 0;
    padding-left: 1.2rem;
}

.blindar-notas-steps li + li {
    margin-top: 0.35rem;
}

.blindar-params {
    display: grid;
    gap: 0.85rem;
}

.blindar-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.blindar-field > span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c7a9c;
    font-weight: 700;
}

.blindar-field-edit input,
.blindar-partido-card input.form-control,
.blindar-page input.form-control {
    color: #f0f4f8 !important;
    caret-color: #00f2fe;
    -webkit-text-fill-color: #f0f4f8;
}

.blindar-field-edit input {
    background: rgba(255, 214, 0, 0.08) !important;
    border-color: rgba(255, 214, 0, 0.35) !important;
}

.blindar-field-edit input:focus,
.blindar-partido-card input.form-control:focus,
.blindar-page input.form-control:focus {
    color: #f0f4f8 !important;
    -webkit-text-fill-color: #f0f4f8;
}

.blindar-partido-card input.form-control::placeholder,
.blindar-page input.form-control::placeholder {
    color: #6c7a9c;
    opacity: 1;
}

.blindar-field-result strong {
    font-size: 1.15rem;
    color: #e8edf8;
}

.blindar-highlight {
    color: #7dffb6 !important;
}

.blindar-table th {
    font-size: 0.65rem;
    white-space: nowrap;
}

.blindar-result-table-wrap {
    width: fit-content;
    max-width: 100%;
}

.blindar-table-result {
    width: auto !important;
    table-layout: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.blindar-table-result th,
.blindar-table-result td {
    padding: 0.45rem 0.65rem !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.blindar-table-result th:last-child,
.blindar-table-result td:last-child {
    border-right: none;
}

.blindar-table-result thead th {
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blindar-table-result tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

.blindar-table-result tbody tr:hover td {
    background: rgba(0, 242, 254, 0.07);
}

.blindar-table-result .blindar-td-num {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

.blindar-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.blindar-cuota-input,
.blindar-partido-input {
    min-width: 5.5rem;
    font-size: 0.82rem !important;
}

.blindar-notas {
    grid-column: 1 / -1;
    background: rgba(22, 30, 49, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    color: #9fb0d0;
    font-size: 0.82rem;
}

.blindar-notas h3 {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: #c8d4ea;
}

.blindar-notas ul {
    margin: 0;
    padding-left: 1.1rem;
}

.blindar-notas li + li {
    margin-top: 0.35rem;
}

.blindar-calc-btn {
    width: 100%;
    margin-top: 0.5rem;
}

.blindar-paso-hint {
    margin-top: 0.75rem;
}

.blindar-info {
    font-size: 0.82rem;
    color: #ffd166;
    background: rgba(255, 209, 102, 0.1);
    border: 1px solid rgba(255, 209, 102, 0.3);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
}

.blindar-ok {
    font-size: 0.82rem;
    color: #7dffb6;
    background: rgba(125, 255, 182, 0.08);
    border: 1px solid rgba(125, 255, 182, 0.28);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
}

.blindar-resumen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.blindar-table-input td {
    vertical-align: middle;
}

@media (max-width: 640px) {
    .blindar-steps {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.35rem;
    }

    .blindar-step-line {
        display: none;
    }

    .blindar-step-label {
        display: none;
    }

    .blindar-step-actions-split .blindar-btn-primary,
    .blindar-step-actions-split .blindar-btn-secondary {
        flex: 1;
        min-width: 0;
    }
}

.dni-result-tg-ok {
    border-color: rgba(42, 171, 238, 0.35);
    background: rgba(42, 171, 238, 0.08);
}

.dni-result-tg-warn {
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.08);
}

.dni-result-tg-ok .dni-result-badge { color: #7dd3fc; }
.dni-result-tg-warn .dni-result-badge { color: #fbbf24; }

.dni-tg-datos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
}

.dni-tg-datos em {
    font-style: normal;
    color: #6c7a9c;
    margin-right: 0.35rem;
}

.dni-tg-raw {
    margin: 0;
    padding: 0.35rem 0.45rem;
    background: rgba(6, 9, 19, 0.7);
    border-radius: 6px;
    font-size: 0.65rem;
    color: #c5d0e6;
    white-space: pre-wrap;
    max-height: 5.5rem;
    overflow: auto;
    line-height: 1.3;
}

.dni-result-compact .dni-result-msg {
    margin: 0;
    font-size: 0.68rem;
    color: #9aa8c8;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dni-auth-input {
    max-width: 5.5rem;
    font-size: 0.72rem !important;
    padding: 0.25rem 0.4rem !important;
    min-height: auto !important;
}

/* ── Tarjetas de crédito ── */
.tarjetas-page {
    max-width: 1100px;
}

.tarjetas-resumen {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.tarjetas-resumen-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    min-width: 7.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.tarjetas-resumen-item span {
    font-size: 0.68rem;
    color: #8ea3c8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tarjetas-resumen-item strong {
    color: #fff;
    font-size: 1rem;
}

.tarjetas-resumen-item small {
    font-size: 0.72rem;
    color: #9fb0d0;
}

.tarjetas-resumen-vencido {
    border-color: rgba(255, 82, 82, 0.45);
    background: rgba(255, 82, 82, 0.08);
}

.tarjetas-resumen-vencido strong {
    color: #ff8a8a;
}

.tarjetas-resumen-urgente {
    border-color: rgba(255, 171, 64, 0.45);
    background: rgba(255, 171, 64, 0.08);
}

.tarjetas-resumen-urgente strong {
    color: #ffcc80;
}

.tarjetas-estado-vencido.tarjetas-resumen-item {
    border-color: rgba(255, 82, 82, 0.45);
}

.tarjetas-estado-urgente.tarjetas-resumen-item {
    border-color: rgba(255, 171, 64, 0.45);
}

.tarjetas-form-card {
    padding: 1rem 1.1rem;
}

.tarjetas-form-title {
    font-size: 0.95rem;
    color: #00f2fe;
    margin: 0 0 0.75rem;
}

.tarjetas-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 0.65rem;
}

.tarjetas-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.72rem;
    color: #8ea3c8;
}

.tarjetas-form-wide {
    grid-column: 1 / -1;
}

.tarjetas-vence-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.tarjetas-vence-row span {
    color: #6c7a9c;
}

.tarjetas-form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.tarjetas-form-error {
    color: #ff8a8a;
    font-size: 0.82rem;
    padding: 0.4rem 0.55rem;
    background: rgba(255, 82, 82, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 82, 82, 0.25);
}

.tarjetas-form-hint {
    font-size: 0.72rem;
    color: #6c7a9c;
}

.tarjetas-historial {
    margin-top: 0.35rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tarjetas-historial-list {
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.tarjetas-historial-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.7rem;
}

.tarjetas-historial-vence {
    color: #9fb0d0;
}

.tarjetas-historial-pagado {
    color: #69f0ae;
    font-weight: 600;
}

.tarjetas-historial-corte {
    color: #6c7a9c;
}

.tarjetas-historial-del {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #6c7a9c;
    font-size: 0.65rem;
    padding: 0 0.2rem;
    cursor: pointer;
    opacity: 0.6;
}

.tarjetas-historial-del:hover {
    color: #ff8a8a;
    opacity: 1;
}

.tarjetas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    gap: 0.85rem;
}

.tarjetas-card {
    background: linear-gradient(145deg, rgba(18, 28, 48, 0.95), rgba(10, 16, 28, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    border-left: 4px solid rgba(0, 242, 254, 0.5);
}

/* BBVA — azul corporativo #14549C */
.tarjetas-card.tarjetas-banco-bbva {
    border-left-color: #14549c;
    background: linear-gradient(145deg, rgba(20, 84, 156, 0.28), rgba(7, 33, 70, 0.92));
    box-shadow: inset 0 0 0 1px rgba(20, 84, 156, 0.22);
}

.tarjetas-card.tarjetas-banco-bbva .tarjetas-ghost-title {
    color: #b3d4f5;
}

.tarjetas-card.tarjetas-banco-bbva .tarjetas-ghost-banco {
    color: #7eb8e8;
}

/* CMR Falabella — verde corporativo #AAD63E */
.tarjetas-card.tarjetas-banco-cmr {
    border-left-color: #aad63e;
    background: linear-gradient(145deg, rgba(170, 214, 62, 0.22), rgba(18, 28, 20, 0.95));
    box-shadow: inset 0 0 0 1px rgba(170, 214, 62, 0.2);
}

.tarjetas-card.tarjetas-banco-cmr .tarjetas-ghost-title {
    color: #e8f5c4;
}

.tarjetas-card.tarjetas-banco-cmr .tarjetas-ghost-banco {
    color: #c5e86c;
}

.tarjetas-card.tarjetas-estado-vencido:not(.tarjetas-banco-bbva):not(.tarjetas-banco-cmr) {
    border-left-color: #ff5252;
}

.tarjetas-card.tarjetas-estado-urgente:not(.tarjetas-banco-bbva):not(.tarjetas-banco-cmr) {
    border-left-color: #ffab40;
}

.tarjetas-card.tarjetas-estado-pagado:not(.tarjetas-banco-bbva):not(.tarjetas-banco-cmr) {
    border-left-color: #69f0ae;
}

.tarjetas-card.tarjetas-estado-vencido {
    box-shadow: 0 0 0 1px rgba(255, 82, 82, 0.28);
}

.tarjetas-card.tarjetas-estado-urgente {
    box-shadow: 0 0 0 1px rgba(255, 171, 64, 0.28);
}

.tarjetas-card.tarjetas-banco-bbva.tarjetas-estado-vencido,
.tarjetas-card.tarjetas-banco-cmr.tarjetas-estado-vencido {
    box-shadow: 0 0 0 1px rgba(255, 82, 82, 0.35), inset 0 0 0 1px rgba(255, 82, 82, 0.12);
}

.tarjetas-card.tarjetas-banco-bbva.tarjetas-estado-urgente,
.tarjetas-card.tarjetas-banco-cmr.tarjetas-estado-urgente {
    box-shadow: 0 0 0 1px rgba(255, 171, 64, 0.35), inset 0 0 0 1px rgba(255, 171, 64, 0.12);
}

.tarjetas-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.tarjetas-card-ident {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    min-width: 0;
    flex: 1;
}

.tarjetas-card-nombres {
    min-width: 0;
    flex: 1;
}

.tarjetas-banco-chip {
    flex-shrink: 0;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tarjetas-banco-chip img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tarjetas-chip-bbva {
    background: #14549c;
    padding: 0.3rem;
}

.tarjetas-chip-cmr {
    background: #aad63e;
    padding: 0.2rem;
}

.tarjetas-ghost-banco {
    display: block;
    width: 100%;
    font-size: 0.72rem;
    color: #6c7a9c;
    margin-top: 0.1rem;
}

.tarjetas-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    white-space: nowrap;
}

.tarjetas-badge.tarjetas-estado-vencido {
    background: rgba(255, 82, 82, 0.18);
    color: #ff8a8a;
}

.tarjetas-badge.tarjetas-estado-urgente {
    background: rgba(255, 171, 64, 0.18);
    color: #ffcc80;
}

.tarjetas-badge.tarjetas-estado-pagado {
    background: rgba(105, 240, 174, 0.15);
    color: #69f0ae;
}

.tarjetas-badge.tarjetas-estado-pendiente {
    background: rgba(0, 242, 254, 0.12);
    color: #00f2fe;
}

.tarjetas-numero {
    font-family: ui-monospace, monospace;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    color: #d8e4ff;
}

.tarjetas-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.tarjetas-meta-label {
    display: block;
    font-size: 0.62rem;
    color: #6c7a9c;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tarjetas-pago-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 8px;
}

.tarjetas-fecha-pago {
    color: #fff;
    font-size: 1.05rem;
}

.tarjetas-dias {
    font-size: 0.75rem;
    font-weight: 600;
}

.tarjetas-dias.tarjetas-estado-vencido { color: #ff8a8a; }
.tarjetas-dias.tarjetas-estado-urgente { color: #ffcc80; }
.tarjetas-dias.tarjetas-estado-pagado { color: #69f0ae; }
.tarjetas-dias.tarjetas-estado-pendiente { color: #9fb0d0; }

.tarjetas-ultimo-pago {
    font-size: 0.68rem;
    color: #6c7a9c;
}

.tarjetas-card-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.15rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tarjetas-ghost {
    background: transparent;
    border: none;
    border-bottom: 1px solid transparent;
    color: inherit;
    padding: 0 0.12rem;
    font: inherit;
}

.tarjetas-ghost:hover {
    border-bottom-color: rgba(255, 255, 255, 0.18);
}

.tarjetas-ghost:focus {
    outline: none;
    border-bottom-color: rgba(0, 242, 254, 0.45);
}

.tarjetas-ghost-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    width: 100%;
}

.tarjetas-ghost-dia {
    width: 2.5rem;
    text-align: center;
    color: #fff;
    font-weight: 600;
}

.tarjetas-ghost-digitos {
    width: 4.5rem;
    font-family: ui-monospace, monospace;
    color: #c5d4f5;
}

.tarjetas-ghost-vence {
    width: 2.2rem;
    text-align: center;
    color: #c5d4f5;
}

.tarjetas-vence-sep {
    color: #6c7a9c;
    font-size: 0.8rem;
}

.tarjetas-btn-pagado {
    margin-left: auto;
    background: rgba(105, 240, 174, 0.12) !important;
    border: 1px solid rgba(105, 240, 174, 0.35) !important;
    color: #69f0ae !important;
}

.tarjetas-btn-pagado:disabled {
    opacity: 0.55;
}

.tarjetas-btn-del {
    background: transparent !important;
    border: none !important;
    color: #6c7a9c !important;
    padding: 0.15rem 0.35rem !important;
}

.tarjetas-btn-del:hover {
    color: #ff8a8a !important;
}

/* ── Servicios casa ─────────────────────────────────────────────── */
.servicios-casa-page {
    max-width: 1200px;
    margin: 0 auto;
}

.sc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sc-subtitle {
    margin: 0.35rem 0 0;
    color: #8ea3c8;
    font-size: 0.88rem;
}

.sc-header-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sc-alert {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #b8e8ff;
}

.sc-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.sc-year {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0;
}

.sc-year span {
    font-size: 0.68rem;
    color: #8ea3c8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sc-year-select {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    padding: 0.4rem 0.65rem;
    font-size: 0.9rem;
    min-width: 6rem;
}

.sc-proveedores {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.sc-proveedor-badge {
    font-size: 0.72rem;
    color: #9fb0d0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
}

.sc-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.sc-kpi {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sc-kpi span {
    font-size: 0.68rem;
    color: #8ea3c8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sc-kpi strong {
    font-size: 1.15rem;
    color: #fff;
    font-weight: 700;
}

.sc-kpi small {
    font-size: 0.72rem;
    color: #6c7a9c;
}

.sc-kpi-total {
    border-color: rgba(0, 242, 254, 0.3);
    background: rgba(0, 242, 254, 0.06);
}

.sc-kpi-total strong { color: #8ee4ff; }

.sc-kpi-luz { border-left: 3px solid #ffeb3b; }
.sc-kpi-agua { border-left: 3px solid #4fc3f7; }
.sc-kpi-gas { border-left: 3px solid #ff9800; }
.sc-kpi-internet { border-left: 3px solid #ab47bc; }

.sc-empty {
    text-align: center;
    color: #8ea3c8;
    padding: 2.5rem 1rem;
    background: rgba(22, 30, 49, 0.5);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.sc-section {
    margin-bottom: 1.25rem;
}

.sc-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin-bottom: 1rem;
}

.sc-section-head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.sc-section-meta {
    font-size: 0.75rem;
    color: #6c7a9c;
}

.sc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    color: #e8edf5;
}

.sc-table thead tr {
    border-bottom: none;
}

.sc-table-colored th {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.6rem 0.65rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.sc-table-colored td {
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-variant-numeric: tabular-nums;
}

.sc-col-mes {
    background: rgba(255, 255, 255, 0.03);
    color: #c5d0e0;
    min-width: 6.5rem;
}

.sc-col-gas {
    background: rgba(255, 152, 0, 0.12);
    color: #ffb74d;
}

.sc-col-internet {
    background: rgba(171, 71, 188, 0.12);
    color: #ce93d8;
}

.sc-col-agua {
    background: rgba(79, 195, 247, 0.12);
    color: #81d4fa;
}

.sc-col-luz {
    background: rgba(255, 235, 59, 0.1);
    color: #fff59d;
}

.sc-col-kwh {
    background: rgba(255, 235, 59, 0.05);
    color: #fff9c4;
}

.sc-col-m3 {
    background: rgba(255, 152, 0, 0.06);
    color: #ffcc80;
}

.sc-col-total {
    background: rgba(0, 242, 254, 0.1);
    color: #8ee4ff;
    font-weight: 700;
}

.sc-col-actions {
    background: rgba(255, 255, 255, 0.02);
    width: 5.5rem;
    text-align: center;
}

.sc-table-colored thead th.sc-col-mes { color: #9fb0d0; }
.sc-table-colored thead th.sc-col-gas { color: #ffb74d; }
.sc-table-colored thead th.sc-col-internet { color: #ce93d8; }
.sc-table-colored thead th.sc-col-agua { color: #81d4fa; }
.sc-table-colored thead th.sc-col-luz { color: #fff59d; }
.sc-table-colored thead th.sc-col-kwh { color: #fff9c4; }
.sc-table-colored thead th.sc-col-m3 { color: #ffcc80; }
.sc-table-colored thead th.sc-col-total { color: #8ee4ff; }

.sc-val { font-weight: 600; }
.sc-val-sub { font-weight: 500; font-size: 0.8rem; opacity: 0.85; }
.sc-val-total { font-size: 0.9rem; }

.sc-table-colored tbody tr:hover td {
    filter: brightness(1.08);
}

.sc-row-active td {
    outline: 1px solid rgba(0, 242, 254, 0.35);
    outline-offset: -1px;
}

.sc-table-colored tfoot td {
    font-weight: 700;
    border-top: 2px solid rgba(255, 255, 255, 0.12);
}

.sc-act {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.2rem 0.35rem;
    font-size: 0.82rem;
    border-radius: 4px;
    opacity: 0.7;
}

.sc-act:hover { opacity: 1; }
.sc-act-edit { color: #8ee4ff; }
.sc-act-edit:hover { background: rgba(0, 242, 254, 0.12); }
.sc-act-add { color: #ce93d8; }
.sc-act-add:hover { background: rgba(171, 71, 188, 0.15); }
.sc-act-del { color: #ff8a8a; }
.sc-act-del:hover { background: rgba(255, 82, 82, 0.12); }

/* Editor panel */
.sc-editor {
    background: rgba(22, 30, 49, 0.9);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
}

.sc-editor-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.sc-editor-head h2 {
    margin: 0;
    font-size: 0.95rem;
    color: #fff;
    font-weight: 700;
}

.sc-editor-actions {
    display: flex;
    gap: 0.4rem;
}

.sc-editor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    gap: 0.65rem;
    align-items: end;
}

.sc-editor-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
}

.sc-editor-field span {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sc-editor-input {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    padding: 0.4rem 0.55rem;
    font-size: 0.9rem;
    width: 100%;
}

.sc-editor-input:focus {
    outline: none;
    border-color: rgba(0, 242, 254, 0.45);
}

.sc-editor-mes { background: rgba(255, 255, 255, 0.04); }
.sc-editor-mes span { color: #9fb0d0; }

.sc-editor-gas { background: rgba(255, 152, 0, 0.14); }
.sc-editor-gas span { color: #ffb74d; }
.sc-editor-gas .sc-editor-input { border-color: rgba(255, 152, 0, 0.35); color: #ffe0b2; }

.sc-editor-internet { background: rgba(171, 71, 188, 0.14); }
.sc-editor-internet span { color: #ce93d8; }
.sc-editor-internet .sc-editor-input { border-color: rgba(171, 71, 188, 0.35); color: #e1bee7; }

.sc-editor-agua { background: rgba(79, 195, 247, 0.14); }
.sc-editor-agua span { color: #81d4fa; }
.sc-editor-agua .sc-editor-input { border-color: rgba(79, 195, 247, 0.35); color: #b3e5fc; }

.sc-editor-luz { background: rgba(255, 235, 59, 0.12); }
.sc-editor-luz span { color: #fff59d; }
.sc-editor-luz .sc-editor-input { border-color: rgba(255, 235, 59, 0.35); color: #fff9c4; }

.sc-editor-kwh { background: rgba(255, 235, 59, 0.06); }
.sc-editor-kwh span { color: #fff9c4; }

.sc-editor-m3 { background: rgba(255, 152, 0, 0.08); }
.sc-editor-m3 span { color: #ffcc80; }

.sc-editor-total {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sc-editor-total span {
    font-size: 0.68rem;
    color: #8ea3c8;
    text-transform: uppercase;
}

.sc-editor-total strong {
    font-size: 1.2rem;
    color: #8ee4ff;
}

.sc-tips-p {
    margin: 0.5rem 0 0.65rem;
    font-size: 0.78rem;
    color: #8ea3c8;
}

.sc-reparto-section {
    margin-bottom: 1.25rem;
}

.sc-mes {
    font-weight: 600;
    color: #fff;
    text-transform: capitalize;
}

.sc-recibo {
    margin-left: 0.35rem;
    font-size: 0.68rem;
    color: #6c7a9c;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
}

.sc-reparto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 0.85rem;
}

.sc-persona-card {
    background: rgba(22, 30, 49, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1rem 1.1rem;
}

.sc-persona-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.sc-persona-top h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    text-transform: capitalize;
}

.sc-persona-total {
    font-size: 1.25rem;
    color: #8ee4ff;
    font-weight: 800;
}

.sc-persona-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.sc-persona-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    border-radius: 999px;
}

.sc-persona-pct {
    display: block;
    font-size: 0.68rem;
    color: #6c7a9c;
    margin-bottom: 0.65rem;
}

.sc-persona-breakdown {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sc-persona-breakdown li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: #9fb0d0;
}

.sc-persona-breakdown strong {
    margin-left: auto;
    color: #e8edf5;
    font-weight: 600;
}

.sc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sc-dot-luz { background: #ffeb3b; }
.sc-dot-agua { background: #4fc3f7; }
.sc-dot-gas { background: #ff9800; }
.sc-dot-internet { background: #ab47bc; }

.sc-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 0.85rem;
}

.sc-config-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
}

.sc-config-card h3 {
    margin: 0 0 0.55rem;
    font-size: 0.88rem;
    color: #8ee4ff;
}

.sc-config-empty {
    margin: 0;
    font-size: 0.78rem;
    color: #6c7a9c;
}

.sc-config-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.76rem;
}

.sc-config-table th {
    color: #6c7a9c;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.62rem;
    padding: 0.25rem 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sc-config-table td {
    padding: 0.3rem 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #c5d0e0;
}

.sc-tips {
    margin-top: 0.5rem;
    background: rgba(22, 30, 49, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    font-size: 0.8rem;
    color: #9fb0d0;
}

.sc-tips summary {
    cursor: pointer;
    color: #8ea3c8;
    font-weight: 600;
    user-select: none;
}

.sc-tips ul {
    margin: 0.65rem 0 0;
    padding-left: 1.1rem;
    line-height: 1.5;
}

.sc-tips li + li { margin-top: 0.3rem; }

@media (max-width: 768px) {
    .sc-table { font-size: 0.76rem; }
    .sc-table th, .sc-table td { padding: 0.4rem 0.35rem; }
    .page-title { font-size: 1.5rem; }
}

/* ── Moto FZ25 ── */
.moto-page { display: flex; flex-direction: column; gap: 1.25rem; }

.moto-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.moto-subtitle {
    margin: 0.35rem 0 0;
    color: #9fb0d0;
    font-size: 0.88rem;
}

.moto-subtitle a { color: #00f2fe; }

.moto-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.moto-kpi {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.moto-kpi span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9fb0d0;
}

.moto-kpi strong {
    font-size: 1.35rem;
    color: #f0f4f8;
    font-variant-numeric: tabular-nums;
}

.moto-kpi small { color: #7a8aa8; font-size: 0.78rem; }

.moto-kpi-km { border-left: 3px solid #ffeb3b; }
.moto-kpi-km strong { color: #ffeb3b; }

.moto-kpi-gasto { border-left: 3px solid #00f2fe; }
.moto-kpi-gasto strong { color: #8ee4ff; }

.moto-kpi-alerta { border-left: 3px solid #66bb6a; }
.moto-kpi-alerta-activa {
    border-left-color: #ff416c;
    background: rgba(255, 65, 108, 0.08);
}
.moto-kpi-alerta-activa strong { color: #ff6b8a; }

.moto-section { display: flex; flex-direction: column; gap: 0.75rem; }

.moto-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.moto-section-head h2 {
    margin: 0;
    font-size: 1.05rem;
    color: #00f2fe;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.moto-section-meta { color: #7a8aa8; font-size: 0.8rem; }

.moto-mant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
}

.moto-mant-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.moto-mant-vencido {
    border-color: rgba(255, 65, 108, 0.45);
    background: rgba(255, 65, 108, 0.08);
}

.moto-mant-pronto {
    border-color: rgba(255, 193, 7, 0.4);
    background: rgba(255, 193, 7, 0.06);
}

.moto-mant-ok { border-color: rgba(102, 187, 106, 0.25); }

.moto-mant-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.6rem;
    align-items: start;
}

.moto-mant-icon { font-size: 1.4rem; line-height: 1; }

.moto-mant-top h3 {
    margin: 0;
    font-size: 0.95rem;
    color: #f0f4f8;
}

.moto-mant-desc {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    color: #9fb0d0;
}

.moto-mant-badge {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    white-space: nowrap;
}

.moto-mant-vencido .moto-mant-badge {
    background: rgba(255, 65, 108, 0.25);
    color: #ff8fa3;
}

.moto-mant-pronto .moto-mant-badge {
    background: rgba(255, 193, 7, 0.2);
    color: #ffd54f;
}

.moto-mant-ok .moto-mant-badge {
    background: rgba(102, 187, 106, 0.2);
    color: #a5d6a7;
}

.moto-mant-detalle {
    margin: 0;
    font-size: 0.82rem;
    color: #c5d0e6;
}

.moto-mant-btn {
    align-self: flex-start;
    border-color: rgba(0, 242, 254, 0.4);
    color: #00f2fe;
}

.moto-mant-btn:hover {
    background: rgba(0, 242, 254, 0.12);
    color: #8ee4ff;
}

.moto-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.55rem;
}

.moto-spec {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.moto-spec-destacada {
    border-color: rgba(0, 242, 254, 0.35);
    background: rgba(0, 242, 254, 0.06);
}

.moto-spec-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9fb0d0;
}

.moto-spec-valor {
    font-size: 0.95rem;
    color: #f0f4f8;
}

.moto-spec small { color: #7a8aa8; font-size: 0.75rem; }

.moto-grid {
    width: 100%;
    font-size: 0.85rem;
    color: #f0f4f8;
    border-collapse: collapse;
}

.moto-grid thead tr {
    color: #00f2fe;
    text-transform: uppercase;
    font-size: 0.72rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.12);
}

.moto-grid th,
.moto-grid td {
    padding: 0.45rem 0.5rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.moto-grid tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

.moto-grid tfoot tr { border-top: 2px solid rgba(255, 255, 255, 0.15); }

.moto-input {
    width: 100%;
    min-width: 70px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid transparent;
    border-radius: 4px;
    color: #f0f4f8;
    font-size: 0.82rem;
    padding: 4px 8px;
    outline: none;
}

.moto-input:focus {
    border-color: #00f2fe;
    background: rgba(0, 242, 254, 0.08);
}

.moto-input-fecha {
    min-width: 130px;
    color-scheme: dark;
}

.moto-input-km {
    min-width: 90px;
    background: rgba(255, 235, 59, 0.15);
    border-color: rgba(255, 235, 59, 0.3);
    color: #ffeb3b;
    font-weight: 700;
}

.moto-input-km:focus {
    border-color: #ffeb3b;
    background: rgba(255, 235, 59, 0.22);
}

.moto-km-recorrido {
    display: inline-block;
    min-width: 70px;
    padding: 4px 8px;
    background: rgba(255, 235, 59, 0.12);
    border-radius: 4px;
    color: #ffeb3b;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.moto-col-km { min-width: 100px; }

.moto-btn-del {
    background: none;
    border: none;
    color: #ff416c;
    font-size: 0.75rem;
    opacity: 0.6;
    cursor: pointer;
    padding: 0 4px;
}

.moto-btn-del:hover { opacity: 1; }

@media (max-width: 768px) {
    .moto-mant-grid { grid-template-columns: 1fr; }
    .moto-specs { grid-template-columns: 1fr 1fr; }
}

/* ── Pendientes ── */
.nav-link-pendientes {
    position: relative;
}

.nav-badge {
    margin-left: auto;
    min-width: 1.25rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: #ff416c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.3;
}

.pendientes-page {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pendientes-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pendientes-subtitle {
    margin: 0.25rem 0 0;
    color: #9fb0d0;
    font-size: 0.85rem;
}

.pendientes-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pendientes-kpi {
    flex: 1;
    min-width: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.pendientes-kpi span {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9fb0d0;
}

.pendientes-kpi strong {
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
}

.pendientes-kpi-critico { border-left: 3px solid #ff416c; }
.pendientes-kpi-critico strong { color: #ff8fab; }
.pendientes-kpi-pronto { border-left: 3px solid #ffd166; }
.pendientes-kpi-pronto strong { color: #ffd166; }
.pendientes-kpi-total { border-left: 3px solid #00f2fe; }
.pendientes-kpi-total strong { color: #8ee4ff; }

.pendientes-section { display: flex; flex-direction: column; gap: 0.45rem; }

.pendientes-section-title {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.pendientes-grupo-critico { color: #ff8fab; }
.pendientes-grupo-pronto { color: #ffd166; }
.pendientes-grupo-info { color: #9fb0d0; }

.pendientes-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pendientes-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: rgba(22, 30, 49, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, background 0.15s;
}

.pendientes-row:hover {
    border-color: rgba(0, 242, 254, 0.35);
    background: rgba(0, 242, 254, 0.06);
}

.pendientes-row-critico { border-left: 3px solid #ff416c; }
.pendientes-row-pronto { border-left: 3px solid #ffd166; }
.pendientes-row-info { border-left: 3px solid rgba(255, 255, 255, 0.2); }

.pendientes-row-icon { font-size: 1.25rem; line-height: 1; }

.pendientes-row-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.pendientes-row-cat {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #00f2fe;
    font-weight: 700;
}

.pendientes-row-title {
    font-size: 0.9rem;
    color: #f0f4f8;
    font-weight: 700;
}

.pendientes-row-detalle {
    font-size: 0.78rem;
    color: #9fb0d0;
}

.pendientes-row-arrow {
    color: #6c7a9c;
    font-size: 1rem;
}

.pendientes-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #9fb0d0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.pendientes-empty-ok {
    border-color: rgba(125, 255, 182, 0.25);
    background: rgba(0, 230, 118, 0.05);
}

.pendientes-empty-icon {
    display: block;
    font-size: 1.5rem;
    color: #7dffb6;
    margin-bottom: 0.35rem;
}

/* ==========================================================================
   REVISIÓN DE GASTOS
   ========================================================================== */
.rev-gastos-page {
    max-width: 100%;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: clip;
}

.rev-gastos-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.rev-gastos-main {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
    isolation: isolate;
}

.rev-gastos-panel-categorias,
.rev-gastos-panel-serie {
    position: relative;
    z-index: 0;
}

.rev-gastos-panel-movimientos {
    position: sticky;
    top: 0.75rem;
    max-height: calc(100vh - 5.5rem);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rev-gastos-panel-movimientos .rev-gastos-mov-table-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.rev-gastos-panel-serie {
    overflow: hidden;
    min-width: 0;
}

.rev-gastos-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    min-height: 7.5rem;
    padding-top: 0.2rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.rev-gastos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 0;
}

.rev-gastos-header .page-title {
    font-size: 1.15rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rev-gastos-btn-registrar {
    flex-shrink: 0;
    margin: 0;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    white-space: nowrap;
}

.rev-gastos-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.45rem;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    background: rgba(22, 30, 49, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rev-gastos-toolbar-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.65rem;
}

.rev-gastos-toolbar-meta {
    display: none;
}

.rev-gastos-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.65rem;
}

.rev-gastos-kpi {
    background: rgba(22, 30, 49, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.6rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.rev-gastos-kpi span {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7a8aa8;
}

.rev-gastos-kpi strong {
    font-size: 1.12rem;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.rev-gastos-kpi small {
    font-size: 0.7rem;
    color: #8fa3c4;
}

.rev-gastos-kpi-total {
    border-left: 3px solid #ff416c;
}

.rev-gastos-kpi-total strong {
    color: #ff8fab;
}

.rev-gastos-kpi-subio strong { color: #ff8fab; }
.rev-gastos-kpi-bajo strong { color: #7dffb6; }

.rev-gastos-cobertura-bar {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-top: 0.15rem;
}

.rev-gastos-cobertura-fill {
    height: 100%;
    background: linear-gradient(90deg, #00f2fe, #38ef7d);
    border-radius: 999px;
}

.rev-gastos-filtros {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rev-gastos-periodos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0;
}

.rev-gastos-periodo-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #9fb0d0;
    border-radius: 999px;
    padding: 0.28rem 0.72rem;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s, color 0.12s;
}

.rev-gastos-periodo-btn:hover {
    border-color: rgba(0, 242, 254, 0.35);
    color: #e8f7ff;
}

.rev-gastos-periodo-btn.active {
    border-color: #00f2fe;
    background: rgba(0, 242, 254, 0.14);
    color: #fff;
}

.rev-gastos-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    flex: 1;
    min-width: 12rem;
}

.rev-gastos-nav-btn {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #c8d4ea;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.rev-gastos-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.rev-gastos-nav-center {
    flex: 1;
    min-width: 0;
    text-align: left;
    line-height: 1.2;
}

.rev-gastos-nav-titulo {
    display: inline;
    font-size: 0.78rem;
    color: #fff;
    text-transform: capitalize;
    margin-right: 0.35rem;
}

.rev-gastos-nav-rango {
    display: inline;
    font-size: 0.62rem;
    color: #7a8aa8;
}

.rev-gastos-hoy-btn {
    border: 1px solid rgba(0, 242, 254, 0.3);
    background: rgba(0, 242, 254, 0.08);
    color: #8ee4ff;
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.rev-gastos-chip {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #9fb0d0;
    border-radius: 999px;
    padding: 0.22rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
}

.rev-gastos-chip.active {
    border-color: #00f2fe;
    background: rgba(0, 242, 254, 0.12);
    color: #fff;
}

.rev-gastos-panel {
    background: rgba(22, 30, 49, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    min-width: 0;
    height: 100%;
}

.rev-gastos-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rev-gastos-panel-head h2 {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #dce6f8;
}

.rev-gastos-panel-meta {
    font-size: 0.7rem;
    color: #8fa3c4;
    white-space: nowrap;
}

.rev-gastos-panel-empty,
.rev-gastos-empty {
    text-align: center;
    padding: 1.5rem 0.75rem;
    color: #8fa3c4;
    font-size: 0.85rem;
}

.rev-gastos-cat-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.rev-gastos-cat-row {
    display: grid;
    grid-template-columns: 1.6rem 1fr;
    gap: 0.45rem 0.55rem;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.18);
    padding: 0.5rem 0.55rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
}

.rev-gastos-cat-row:hover,
.rev-gastos-cat-row.is-active {
    border-color: rgba(0, 242, 254, 0.3);
    background: rgba(0, 242, 254, 0.07);
}

.rev-gastos-cat-icon {
    font-size: 1.15rem;
    line-height: 1;
    align-self: start;
    padding-top: 0.1rem;
}

.rev-gastos-cat-body {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 0.28rem 0.75rem;
    min-width: 0;
    width: 100%;
}

.rev-gastos-cat-nombre {
    grid-column: 1;
    grid-row: 1;
    font-size: 0.84rem;
    font-weight: 700;
    color: #f0f4f8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rev-gastos-cat-monto {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    font-size: 0.86rem;
    font-weight: 800;
    color: #ff8fab;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-align: right;
    padding-top: 0.05rem;
}

.rev-gastos-cat-bar-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin: 0;
}

.rev-gastos-cat-bar {
    height: 100%;
    border-radius: 999px;
    min-width: 2px;
}

.rev-gastos-cat-bar-0 { background: #00f2fe; }
.rev-gastos-cat-bar-1 { background: #ff416c; }
.rev-gastos-cat-bar-2 { background: #ffc107; }
.rev-gastos-cat-bar-3 { background: #7dffb6; }
.rev-gastos-cat-bar-4 { background: #b388ff; }
.rev-gastos-cat-bar-5 { background: #ff8fab; }

.rev-gastos-cat-meta {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.74rem;
    color: #b8c8e0;
    font-weight: 700;
}

.rev-gastos-cat-pct {
    color: #d0dcf0;
    font-variant-numeric: tabular-nums;
}

.rev-gastos-cat-count {
    color: #9aadc8;
    white-space: nowrap;
}

.rev-gastos-chart-col {
    flex: 1 0 2.4rem;
    min-width: 2.4rem;
    max-width: 3.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.rev-gastos-chart-bar-wrap {
    width: 100%;
    height: 5.5rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.rev-gastos-chart-bar {
    width: 72%;
    max-width: 2.2rem;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, #ff8fab, #ff416c);
    min-height: 0;
    transition: height 0.2s ease;
}

.rev-gastos-chart-val {
    font-size: 0.6rem;
    font-weight: 800;
    color: #ff8fab;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.rev-gastos-chart-label {
    font-size: 0.58rem;
    color: #7a8aa8;
    text-align: center;
    line-height: 1.15;
    word-break: break-word;
}

.rev-gastos-mov-table-wrap {
    overflow-x: auto;
    overflow-y: auto;
    min-width: 0;
}

.rev-gastos-mov-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.35rem;
    table-layout: fixed;
    font-size: 0.78rem;
}

.rev-gastos-mov-table .col-fecha { width: 18%; }
.rev-gastos-mov-table .col-detalle { width: 50%; }
.rev-gastos-mov-table .col-monto { width: 32%; }

.rev-gastos-mov-table th {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8fa3c4;
    padding: 0.15rem 0.4rem 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.rev-gastos-mov-table th:last-child {
    text-align: right;
}

.rev-gastos-mov-table td {
    padding: 0.5rem 0.4rem;
    color: #e8edf8;
    vertical-align: middle;
    background: rgba(0, 0, 0, 0.14);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rev-gastos-mov-table tbody tr td:first-child {
    border-radius: 8px 0 0 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.rev-gastos-mov-table tbody tr td:last-child {
    border-radius: 0 8px 8px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.rev-gastos-mov-table tbody tr:hover td {
    background: rgba(0, 242, 254, 0.07);
    border-color: rgba(0, 242, 254, 0.14);
}

.rev-gastos-mov-table tfoot td {
    background: transparent;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.55rem;
    color: #fff;
    font-size: 0.76rem;
}

.rev-gastos-mov-fecha {
    white-space: nowrap;
    color: #9fb0d0;
    font-variant-numeric: tabular-nums;
    font-size: 0.74rem;
    font-weight: 700;
}

.rev-gastos-mov-detalle {
    min-width: 0;
    line-height: 1.25;
}

.rev-gastos-mov-line {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    margin-bottom: 0.2rem;
}

.rev-gastos-mov-icon {
    flex-shrink: 0;
    font-size: 0.9rem;
}

.rev-gastos-mov-desc {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    color: #f0f4f8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rev-gastos-mov-cat-badge {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.68rem;
    font-weight: 700;
    color: #b8c6e0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rev-gastos-mov-monto-cell {
    text-align: right;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
}

.rev-gastos-mov-monto {
    font-weight: 800;
    color: #ffb4c8;
    font-variant-numeric: tabular-nums;
    font-size: 0.82rem;
}

.rev-gastos-mov-link {
    color: #00f2fe;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    opacity: 0.75;
}

.rev-gastos-mov-row:hover .rev-gastos-mov-link {
    opacity: 1;
}

.rev-gastos-mov-link:hover {
    color: #8ee4ff;
}

@media (max-width: 960px) {
    .rev-gastos-grid {
        grid-template-columns: 1fr;
    }

    .rev-gastos-panel-movimientos {
        position: static;
        max-height: none;
    }
}

/* ==========================================================================
   MI TECNOLOGÍA
   ========================================================================== */
.tech-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 1400px;
    margin: 0 auto;
}

.tech-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.tech-subtitle {
    margin: 0.35rem 0 0;
    color: #9fb0d0;
    font-size: 0.92rem;
}

.tech-header-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-btn-import {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(79, 172, 254, 0.12));
    border: 1px solid rgba(0, 242, 254, 0.35);
    color: #8ee4ff;
    font-weight: 700;
}

.tech-btn-import:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.25), rgba(79, 172, 254, 0.2));
    color: #fff;
}

.tech-alert {
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    color: #c8f6ff;
    font-size: 0.88rem;
}

.tech-alert-ok {
    background: rgba(125, 255, 179, 0.08);
    border-color: rgba(125, 255, 179, 0.28);
    color: #b8ffd8;
}

.tech-alert-error {
    background: rgba(255, 120, 120, 0.08);
    border-color: rgba(255, 120, 120, 0.28);
    color: #ffc8c8;
}

.tech-kpis {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0.65rem;
    background: rgba(22, 30, 49, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.tech-kpi {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1 1 12rem;
    min-width: 0;
    padding: 0.35rem 0.75rem;
    background: none;
    border: none;
    border-radius: 0;
}

.tech-kpi + .tech-kpi {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-kpi-main {
    background: none;
}

.tech-kpi-icon {
    flex-shrink: 0;
    font-size: 0.95rem;
    color: rgba(159, 176, 208, 0.85);
}

.tech-kpi-main .tech-kpi-icon { color: #00f2fe; }
.tech-kpi-valor .tech-kpi-icon { color: #7dffb3; }
.tech-kpi-ok .tech-kpi-icon { color: #8ee4ff; }

.tech-kpi-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.tech-kpi-line {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.tech-kpi-valor .tech-kpi-value {
    color: #7dffb3;
}

.tech-kpi-ok .tech-kpi-value {
    color: #8ee4ff;
}

.tech-kpi-label {
    font-size: 0.72rem;
    text-transform: lowercase;
    letter-spacing: 0.02em;
    color: #9fb0d0;
    font-weight: 600;
}

.tech-kpi-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.tech-kpi-meta {
    color: #7a8ca8;
    font-size: 0.68rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tech-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(4, 8, 18, 0.82);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.tech-modal {
    width: min(1120px, 96vw);
    max-height: min(92vh, 920px);
    display: flex;
    flex-direction: column;
    background: rgba(14, 20, 34, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), 0 0 48px rgba(0, 242, 254, 0.08);
    overflow: hidden;
}

.tech-accent-floy.tech-modal { border-top: 3px solid #00f2fe; }
.tech-accent-thiago.tech-modal { border-top: 3px solid #a78bfa; }
.tech-accent-yasmin.tech-modal { border-top: 3px solid #f472b6; }
.tech-accent-general.tech-modal { border-top: 3px solid #64748b; }

.tech-modal-compact {
    width: min(420px, 94vw);
    max-height: none;
}

.tech-modal-body-compact {
    padding: 1rem 1.15rem;
}

.tech-modal-title-static {
    margin: 0.25rem 0 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}

.tech-header-actions .bi {
    margin-right: 0.2rem;
}

.tech-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.18);
}

.tech-modal-head-main {
    flex: 1;
    min-width: 0;
}

.tech-modal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9fb0d0;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.tech-modal-title-input {
    width: 100%;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.15;
    padding: 0;
    margin: 0 0 0.45rem;
}

.tech-modal-title-input:focus {
    outline: none;
}

.tech-modal-title-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.tech-modal-head-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
}

.tech-modal-head-total {
    font-size: 0.88rem;
    font-weight: 800;
    color: #7dffb3;
}

.tech-modal-close {
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #c5d4ef;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 10px;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.tech-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.tech-modal-alert {
    margin: 0.75rem 1.15rem 0;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    font-size: 0.82rem;
}

.tech-modal-alert-ok {
    background: rgba(125, 255, 179, 0.08);
    border: 1px solid rgba(125, 255, 179, 0.28);
    color: #b8ffd8;
}

.tech-modal-alert-error {
    background: rgba(255, 120, 120, 0.08);
    border: 1px solid rgba(255, 120, 120, 0.28);
    color: #ffc8c8;
}

.tech-modal-body {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
    gap: 0;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.tech-modal-main {
    overflow-y: auto;
    padding: 1rem 1.15rem 1.1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.tech-modal-aside {
    overflow-y: auto;
    padding: 1rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.12);
}

.tech-modal-section + .tech-modal-section {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tech-modal-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.tech-modal-section-title {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8ee4ff;
    font-weight: 800;
}

.tech-modal-section-head .tech-modal-section-title {
    margin-bottom: 0;
}

.tech-modal-section-hint {
    font-size: 0.78rem;
    font-weight: 700;
    color: #7dffb3;
}

.tech-modal-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 0.75rem;
}

.tech-modal-fields-laptop {
    margin-top: 0.75rem;
}

.tech-modal-field-wide {
    grid-column: 1 / -1;
}

.tech-modal-fields label,
.tech-modal-comp-fields label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tech-modal-comp-fields label {
    gap: 0.12rem;
}

.tech-modal-fields label span,
.tech-modal-comp-fields label span {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #7a8ca8;
    font-weight: 700;
}

.tech-modal-comps {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.tech-modal-comp {
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.4rem 0.5rem 0.45rem;
}

.tech-modal-comp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.3rem;
    min-height: 1.35rem;
}

.tech-modal-comp-title {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #e8eef8;
    font-size: 0.76rem;
    line-height: 1.1;
}

.tech-modal-comp-title .bi {
    color: #00f2fe;
    font-size: 0.82rem;
}

.tech-modal-comp-title strong {
    font-weight: 700;
}

.tech-modal-comp-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.3rem 0.45rem;
}

.tech-modal-comp-fields label span {
    font-size: 0.6rem;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.tech-modal-comp-fields .tech-input-comp {
    padding: 0.22rem 0.42rem;
    font-size: 0.78rem;
    border-radius: 6px;
    min-height: 1.65rem;
}

.tech-modal-comp-fields select.tech-input-comp {
    padding-right: 1.4rem;
}

.tech-modal-comp-fields .tech-modal-field-url {
    margin-top: 0.05rem;
}

.tech-modal-comp-fields .tech-modal-field-url span {
    color: #64748b;
}

.tech-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    padding: 0.85rem 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.tech-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tech-filter-chip {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: #c8d4ea;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tech-filter-chip:hover {
    border-color: rgba(0, 242, 254, 0.35);
    color: #fff;
}

.tech-filter-chip.is-active {
    background: rgba(0, 242, 254, 0.15);
    border-color: rgba(0, 242, 254, 0.45);
    color: #fff;
}

.tech-filter-floy.is-active { background: rgba(0, 242, 254, 0.18); border-color: rgba(0, 242, 254, 0.5); }
.tech-filter-thiago.is-active { background: rgba(167, 139, 250, 0.18); border-color: rgba(167, 139, 250, 0.5); }
.tech-filter-yasmin.is-active { background: rgba(244, 114, 182, 0.18); border-color: rgba(244, 114, 182, 0.5); }

.tech-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #9fb0d0;
    background: rgba(22, 30, 49, 0.6);
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
}

.tech-drag-hint {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: #8ee4ff;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.tech-drag-hint-muted {
    color: #7a8ca8;
}

.tech-grid {
    align-items: start;
}

.tech-grid-keep {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.tech-grid-keep .tech-card-drop-tail {
    grid-column: 1 / -1;
}

.tech-grid-editing {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.tech-grid-editing .tech-card.is-expanded {
    grid-column: auto;
}

.tech-card {
    position: relative;
    background: rgba(16, 22, 36, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.1rem 1.15rem 1rem;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.tech-card-drag-handle {
    position: absolute;
    top: 0.45rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 1.1rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.04);
    cursor: grab;
    opacity: 0;
    transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.tech-card:hover .tech-card-drag-handle,
.tech-card.is-dragging .tech-card-drag-handle {
    opacity: 1;
}

.tech-card-drag-handle:hover {
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.08);
}

.tech-card-drag-handle:active {
    cursor: grabbing;
}

.tech-card:has(.tech-card-drag-handle) {
    padding-top: 1.55rem;
}

.tech-card.is-dragging {
    opacity: 0.78;
    transform: rotate(-1.5deg) scale(1.015);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
    z-index: 4;
    border-color: rgba(0, 242, 254, 0.35);
    cursor: grabbing;
}

.tech-card.is-drop-target {
    border-color: rgba(125, 255, 179, 0.55);
    box-shadow: inset 4px 0 0 rgba(125, 255, 179, 0.75), 0 0 0 2px rgba(125, 255, 179, 0.16);
}

.tech-card-drop-tail {
    width: 100%;
    min-height: 3.2rem;
    border: 1px dashed rgba(125, 255, 179, 0.35);
    border-radius: 14px;
    color: #7a8ca8;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(125, 255, 179, 0.04);
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.tech-card-drop-tail.is-active {
    border-color: rgba(125, 255, 179, 0.75);
    background: rgba(125, 255, 179, 0.1);
    color: #bdf5d4;
}

.tech-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.tech-card.is-expanded {
    border-color: rgba(0, 242, 254, 0.28);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.tech-card-glow {
    position: absolute;
    top: -40%;
    right: -20%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.18;
    pointer-events: none;
}

.tech-accent-floy .tech-card-glow { background: #00f2fe; }
.tech-accent-thiago .tech-card-glow { background: #a78bfa; }
.tech-accent-yasmin .tech-card-glow { background: #f472b6; }
.tech-accent-general .tech-card-glow { background: #64748b; }

.tech-accent-floy { border-top: 3px solid #00f2fe; }
.tech-accent-thiago { border-top: 3px solid #a78bfa; }
.tech-accent-yasmin { border-top: 3px solid #f472b6; }
.tech-accent-general { border-top: 3px solid #64748b; }

.tech-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.tech-card-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.tech-gama-badge {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.tech-gama-alta {
    background: rgba(125, 255, 179, 0.12);
    border-color: rgba(125, 255, 179, 0.35);
    color: #7dffb3;
}

.tech-gama-media {
    background: rgba(255, 200, 100, 0.12);
    border-color: rgba(255, 200, 100, 0.35);
    color: #ffd28a;
}

.tech-gama-baja {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.35);
    color: #cbd5e1;
}

.tech-gama-bar-alta { background: linear-gradient(90deg, #34d399, #7dffb3); }
.tech-gama-bar-media { background: linear-gradient(90deg, #f59e0b, #ffd28a); }
.tech-gama-bar-baja { background: linear-gradient(90deg, #64748b, #94a3b8); }

.tech-card-scorebar {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.tech-card-scorebar-fill {
    height: 100%;
    border-radius: inherit;
    transition: width 0.25s ease;
}

.tech-card-edit-hint {
    font-size: 0.72rem;
    color: #7a8ca8;
    font-weight: 600;
}

.tech-card-type {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9fb0d0;
}

.tech-card-owner {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
}

.tech-card-name {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
}

.tech-card-highlights {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 13.5rem;
}

.tech-card-highlight-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.tech-card-highlight-divider {
    height: 1px;
    margin: 0.55rem 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.tech-highlight {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: #c8d4ea;
    line-height: 1.35;
}

.tech-highlight .bi {
    color: #00f2fe;
    flex-shrink: 0;
}

.tech-highlight-draggable .tech-highlight-icon {
    color: #00f2fe;
}

.tech-highlight-draggable {
    cursor: grab;
    border-radius: 8px;
    padding: 0.35rem 0.4rem;
    margin: -0.15rem -0.25rem;
    width: calc(100% + 0.5rem);
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.tech-highlight-draggable > * {
    pointer-events: none;
}

.tech-highlight-draggable:hover {
    background: rgba(0, 242, 254, 0.08);
}

.tech-highlight-draggable:active {
    cursor: grabbing;
}

.tech-highlight-text {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tech-highlight-costo {
    flex-shrink: 0;
    width: 4.25rem;
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #7dffb3;
    white-space: nowrap;
    text-align: right;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.tech-highlight-costo.is-empty {
    color: #5a6a85;
    font-weight: 600;
}

.tech-highlight-icon {
    flex-shrink: 0;
}

.tech-highlight-grip {
    color: rgba(255, 255, 255, 0.28) !important;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.tech-highlight.is-comp-dragging {
    opacity: 0.45;
}

.tech-card.is-comp-drop-target {
    border-color: rgba(0, 242, 254, 0.55);
    box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.2), inset 0 0 0 1px rgba(0, 242, 254, 0.15);
}

.tech-comp-drag-active .tech-card {
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.tech-accent-thiago .tech-highlight .bi { color: #c4b5fd; }
.tech-accent-yasmin .tech-highlight .bi { color: #f9a8d4; }

.tech-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.tech-card-valor span {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7a8ca8;
    font-weight: 700;
}

.tech-card-valor strong {
    font-size: 1.25rem;
    font-weight: 800;
    color: #7dffb3;
}

.tech-card-badge-ok {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #7dffb3;
    background: rgba(125, 255, 179, 0.1);
    border: 1px solid rgba(125, 255, 179, 0.25);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.tech-card-detail {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-detail-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tech-detail-toolbar h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
}

.tech-detail-actions {
    display: flex;
    gap: 0.45rem;
}

.tech-btn-save {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.22), rgba(79, 172, 254, 0.18));
    border: 1px solid rgba(0, 242, 254, 0.45);
    color: #fff;
    font-weight: 800;
}

.tech-detail-split {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: 1rem;
    align-items: start;
}

.tech-detail-left {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
}

.tech-detail-right {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: sticky;
    top: 0.5rem;
}

.tech-form-equipo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.tech-form-wide {
    grid-column: 1 / -1;
}

.tech-form-equipo label,
.tech-form-comp label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.tech-form-equipo label span,
.tech-form-comp label span {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #7a8ca8;
    font-weight: 700;
}

.tech-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #eef3fb;
    padding: 0.45rem 0.6rem;
    font-size: 0.86rem;
    outline: none;
}

.tech-input:focus {
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.08);
}

.tech-input-monto {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #7dffb3;
}

.tech-form-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: rgba(125, 255, 179, 0.08);
    border: 1px solid rgba(125, 255, 179, 0.2);
}

.tech-form-total span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9fb0d0;
    font-weight: 700;
}

.tech-form-total strong {
    font-size: 1.2rem;
    color: #7dffb3;
}

.tech-form-laptop-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.18);
}

.tech-laptop-hint {
    margin: 0;
    font-size: 0.78rem;
    color: #7a8ca8;
    line-height: 1.4;
}

.tech-form-components {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.tech-comp-item {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.tech-comp-item.is-editing {
    border-color: rgba(0, 242, 254, 0.28);
    background: rgba(0, 242, 254, 0.04);
}

.tech-comp-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    flex-wrap: wrap;
}

.tech-comp-summary-main {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
}

.tech-comp-summary-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 242, 254, 0.1);
    color: #00f2fe;
    flex-shrink: 0;
    font-size: 1rem;
}

.tech-comp-summary-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.tech-comp-summary-text strong {
    font-size: 0.82rem;
    color: #fff;
}

.tech-comp-summary-text span {
    font-size: 0.78rem;
    color: #9fb0d0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tech-comp-empty-label {
    font-style: italic;
    opacity: 0.65;
}

.tech-comp-summary-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.tech-comp-monto {
    font-size: 0.8rem;
    font-weight: 800;
    color: #7dffb3;
    font-variant-numeric: tabular-nums;
}

.tech-comp-estado-pill {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #c8d4ea;
}

.tech-comp-estado-pill.is-ok {
    background: rgba(125, 255, 179, 0.12);
    color: #7dffb3;
}

.tech-comp-edit-btn {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #c8d4ea;
    background: rgba(255, 255, 255, 0.04);
}

.tech-comp-edit-btn:hover {
    border-color: rgba(0, 242, 254, 0.35);
    color: #fff;
}

.tech-comp-edit-btn.is-active {
    background: rgba(0, 242, 254, 0.12);
    border-color: rgba(0, 242, 254, 0.4);
    color: #8ee4ff;
}

.tech-comp-add-btn {
    align-self: flex-start;
    margin: 0 0 0.25rem 0.25rem;
    padding: 0.12rem 0.45rem;
    font-size: 0.65rem;
    color: #7dd3fc;
    border: 1px dashed rgba(125, 211, 252, 0.35);
    background: rgba(56, 189, 248, 0.06);
}

.tech-comp-add-btn:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(125, 211, 252, 0.55);
}

.tech-comp-remove-btn {
    min-width: 1.35rem;
    width: 1.35rem;
    height: 1.35rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    line-height: 1;
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(248, 113, 113, 0.08);
}

.tech-comp-remove-btn:hover {
    background: rgba(248, 113, 113, 0.16);
}

.tech-form-comp {
    padding: 0 0.75rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 0;
    background: transparent;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.tech-form-comp-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #00f2fe;
    font-size: 0.82rem;
}

.tech-form-comp-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.tech-analysis-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
}

.tech-analysis-card h4 {
    margin: 0 0 0.55rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.tech-analysis-gama {
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 0.65rem;
}

.tech-gama-panel-alta { background: rgba(125, 255, 179, 0.08); border: 1px solid rgba(125, 255, 179, 0.2); }
.tech-gama-panel-media { background: rgba(255, 200, 100, 0.08); border: 1px solid rgba(255, 200, 100, 0.2); }
.tech-gama-panel-baja { background: rgba(148, 163, 184, 0.08); border: 1px solid rgba(148, 163, 184, 0.2); }

.tech-analysis-gama-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9fb0d0;
    font-weight: 700;
}

.tech-analysis-score {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin: 0.15rem 0 0.45rem;
}

.tech-analysis-scorebar {
    height: 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.tech-analysis-scorebar-fill {
    height: 100%;
    border-radius: inherit;
}

.tech-analysis-resumen {
    margin: 0;
    font-size: 0.84rem;
    color: #c8d4ea;
    line-height: 1.45;
}

.tech-analysis-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.tech-breakdown-row {
    display: grid;
    grid-template-columns: 88px 1fr 28px;
    gap: 0.45rem;
    align-items: center;
    font-size: 0.74rem;
    color: #9fb0d0;
}

.tech-breakdown-bar-wrap {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.tech-breakdown-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    max-width: 100%;
}

.tech-breakdown-row strong {
    text-align: right;
    color: #fff;
    font-size: 0.76rem;
}

.tech-analysis-list {
    margin: 0;
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.tech-analysis-list li {
    font-size: 0.82rem;
    color: #c8d4ea;
    line-height: 1.4;
}

.tech-analysis-mejoras .tech-analysis-list li {
    color: #b8ffd8;
}

.tech-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tech-detail-head h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
}

.tech-detail-head span {
    font-size: 0.78rem;
    color: #7a8ca8;
}

.tech-components {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.65rem;
}

.tech-component {
    display: flex;
    gap: 0.7rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.tech-component-empty {
    opacity: 0.55;
}

.tech-component-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 242, 254, 0.1);
    color: #00f2fe;
    flex-shrink: 0;
}

.tech-accent-thiago .tech-component-icon { background: rgba(167, 139, 250, 0.12); color: #c4b5fd; }
.tech-accent-yasmin .tech-component-icon { background: rgba(244, 114, 182, 0.12); color: #f9a8d4; }

.tech-component-body {
    min-width: 0;
    flex: 1;
}

.tech-component-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
}

.tech-component-top strong {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9fb0d0;
}

.tech-comp-estado {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #c8d4ea;
}

.tech-comp-estado.is-ok {
    background: rgba(125, 255, 179, 0.12);
    color: #7dffb3;
}

.tech-component-desc {
    margin: 0 0 0.35rem;
    font-size: 0.88rem;
    color: #eef3fb;
    line-height: 1.35;
    word-break: break-word;
}

.tech-component-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    font-size: 0.74rem;
    color: #7a8ca8;
}

.tech-component-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.35rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: #00f2fe;
    text-decoration: none;
}

.tech-component-link:hover {
    color: #8ee4ff;
}

@media (max-width: 900px) {
    .tech-kpis {
        flex-direction: column;
        padding: 0.45rem 0.55rem;
    }

    .tech-kpi {
        padding: 0.4rem 0.35rem;
    }

    .tech-kpi + .tech-kpi {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 0.45rem;
    }

    .tech-kpi-meta {
        white-space: normal;
    }

    .tech-modal-backdrop {
        padding: 0.5rem;
        align-items: flex-end;
    }

    .tech-modal {
        width: 100%;
        max-height: 94vh;
        border-radius: 16px 16px 0 0;
    }

    .tech-modal-body {
        grid-template-columns: 1fr;
    }

    .tech-modal-main {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .tech-modal-fields {
        grid-template-columns: 1fr;
    }

    .tech-modal-comp-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tech-modal-field-wide {
        grid-column: auto;
    }

    .tech-card.is-expanded {
        grid-column: auto;
    }

    .tech-detail-split {
        grid-template-columns: 1fr;
    }

    .tech-detail-right {
        position: static;
    }

    .tech-form-equipo,
    .tech-form-comp-row,
    .tech-form-laptop-meta {
        grid-template-columns: 1fr;
    }

    .tech-components {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   LOGIN + ADMIN USUARIOS
   ========================================================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(0, 242, 254, 0.08), transparent 40%), #060913;
    padding: 1.5rem;
}

.login-card {
    width: min(420px, 100%);
    background: #0f1520;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.login-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-brand .bi {
    font-size: 2rem;
    color: #00f2fe;
}

.login-brand h1 {
    margin: 0.75rem 0 0.25rem;
    color: #f0f4f8;
    font-size: 1.5rem;
}

.login-brand p {
    margin: 0;
    color: #8b9ab8;
    font-size: 0.9rem;
}

.login-error {
    background: rgba(255, 65, 108, 0.12);
    border: 1px solid rgba(255, 65, 108, 0.35);
    color: #ffb4c4;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
}

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

.login-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.login-field > span {
    font-size: 0.82rem;
    color: #8b9ab8;
    font-weight: 600;
}

.login-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    background: #0a0f1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f0f4f8;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-input:focus {
    outline: none;
    border-color: rgba(0, 242, 254, 0.55);
    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.12);
}

.login-input::placeholder {
    color: #4d5a76;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.85rem 1rem;
    margin-top: 0.25rem;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(0, 114, 255, 0.35), rgba(0, 242, 254, 0.28));
    border: 1px solid rgba(0, 242, 254, 0.35);
    color: #f0f4f8;
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
}

.login-btn:hover {
    color: #fff;
    border-color: rgba(0, 242, 254, 0.6);
}

.login-btn:active {
    transform: translateY(1px);
}

.login-alt {
    margin: 1.25rem 0 0;
    text-align: center;
    color: #8b9ab8;
    font-size: 0.88rem;
}

.login-alt a {
    color: #00f2fe;
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.25rem;
}

.login-alt a:hover {
    text-decoration: underline;
}

.login-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(0, 114, 255, 0.25), rgba(0, 242, 254, 0.18));
    border: 1px solid rgba(0, 242, 254, 0.35);
    color: #f0f4f8;
    text-decoration: none;
    font-weight: 700;
}

.login-google-btn:hover {
    color: #fff;
    border-color: rgba(0, 242, 254, 0.55);
}

.login-hint {
    margin: 1rem 0 0;
    text-align: center;
    color: #6c7a9c;
    font-size: 0.8rem;
}

.nav-logout-btn {
    border-color: rgba(255, 255, 255, 0.18) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #c8d4ea !important;
}

.admin-users-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-users-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.admin-users-sub {
    margin: 0.35rem 0 0;
    color: #9fb0d0;
}

.admin-users-alert {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.25);
    color: #b8f4ff;
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.admin-users-form-card,
.admin-users-list {
    background: #0f1520;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.25rem;
}

.admin-users-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.admin-users-form-grid label,
.admin-users-perms-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: #9fb0d0;
    font-size: 0.82rem;
}

.admin-users-input {
    background: #1a2333;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #f0f4f8;
    padding: 0.55rem 0.75rem;
}

.admin-users-perms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.admin-users-perm-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #dce6f5;
    font-size: 0.88rem;
}

.admin-users-note,
.admin-users-empty {
    color: #8b9ab8;
    font-size: 0.88rem;
}

.admin-users-form-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-users-table-wrap {
    overflow-x: auto;
}

.admin-users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.admin-users-table th,
.admin-users-table td {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
}

.admin-users-table th {
    color: #8b9ab8;
    font-weight: 700;
    text-align: left;
}

.admin-users-table tr.is-inactive {
    opacity: 0.55;
}

.admin-users-email-sub {
    color: #6c7a9c;
    font-size: 0.78rem;
}

.admin-users-actions {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

/* Te Apuesto — registros BD */
.ta-reg-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.25rem 2rem;
}

.ta-reg-header {
    margin-bottom: 1rem;
}

.ta-reg-toolbar-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.ta-reg-subtitle {
    margin: 0.25rem 0 0;
    color: #8b9ab8;
    font-size: 0.85rem;
}

.ta-reg-flash {
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.ta-reg-flash-error {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

.ta-reg-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

.ta-reg-kpi {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ta-reg-kpi span {
    font-size: 0.68rem;
    color: #8b9ab8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ta-reg-kpi strong {
    font-size: 1.15rem;
    color: #e2e8f0;
}

.ta-reg-kpi-val strong { color: #86efac; }
.ta-reg-kpi-inv strong { color: #fca5a5; }
.ta-reg-kpi-pend strong { color: #fcd34d; }

.ta-reg-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: flex-end;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 0.85rem;
}

.ta-reg-filter {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 110px;
}

.ta-reg-filter-wide {
    flex: 1;
    min-width: 160px;
}

.ta-reg-filter span {
    font-size: 0.65rem;
    color: #8b9ab8;
    text-transform: uppercase;
}

.ta-reg-btn-apply {
    align-self: flex-end;
}

.ta-reg-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.ta-reg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.ta-reg-table th,
.ta-reg-table td {
    padding: 0.45rem 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
    vertical-align: middle;
}

.ta-reg-table th {
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.68rem;
    text-transform: uppercase;
}

.ta-reg-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.ta-reg-row-val { background: rgba(34, 197, 94, 0.04); }
.ta-reg-row-inv { background: rgba(239, 68, 68, 0.05); }

.ta-reg-cell-nombre,
.ta-reg-cell-email {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ta-reg-pill {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
}

.ta-reg-pill-clave {
    background: rgba(147, 197, 253, 0.15);
    color: #93c5fd;
}

.ta-reg-pill-val { background: rgba(34, 197, 94, 0.18); color: #86efac; }
.ta-reg-pill-inv { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }
.ta-reg-pill-pend { background: rgba(251, 191, 36, 0.15); color: #fcd34d; }

.ta-reg-actions {
    display: flex;
    gap: 0.25rem;
    white-space: nowrap;
}

.ta-reg-empty {
    padding: 2rem;
    text-align: center;
    color: #8b9ab8;
}

.ta-reg-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.85rem;
    font-size: 0.78rem;
    color: #94a3b8;
}

.ta-reg-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1040;
}

.ta-reg-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    width: min(560px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
    background: #1a2332;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.ta-reg-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.ta-reg-modal-head h2 {
    margin: 0;
    font-size: 1rem;
    color: #e2e8f0;
}

.ta-reg-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.ta-reg-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.72rem;
    color: #94a3b8;
}

.ta-reg-form-span2 {
    grid-column: 1 / -1;
}

.ta-reg-modal-foot {
    margin-top: 0.85rem;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .ta-reg-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ta-reg-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Mundial — carrusel / ticker de partidos de hoy (Surebets Mundial)
   ========================================================================== */
.mundial-ticker {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 2.35rem;
    background: linear-gradient(90deg, rgba(8, 14, 28, 0.98) 0%, rgba(12, 20, 38, 0.98) 50%, rgba(8, 14, 28, 0.98) 100%);
    border-top: 1px solid rgba(56, 189, 248, 0.22);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.35);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    overflow: hidden;
}

@media (min-width: 641px) {
    .mundial-ticker {
        left: 250px;
    }
}

.mundial-ticker-brand {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    padding: 0 0.85rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(56, 189, 248, 0.2));
    border-right: 1px solid rgba(139, 92, 246, 0.35);
}

.mundial-ticker-anchor {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    max-width: min(42vw, 520px);
    padding: 0 0.85rem;
    background: linear-gradient(90deg, rgba(255, 77, 109, 0.18), rgba(255, 77, 109, 0.06));
    border-right: 1px solid rgba(255, 77, 109, 0.28);
    font-size: 0.72rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
}

.mundial-ticker-anchor-pending,
.mundial-ticker-anchor-error {
    background: rgba(255, 255, 255, 0.04);
    border-right-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.55);
}

.mundial-ticker-anchor-badge {
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ff8fab;
    padding: 0.12rem 0.35rem;
    border-radius: 999px;
    background: rgba(255, 77, 109, 0.22);
    flex-shrink: 0;
}

.mundial-ticker-anchor-time {
    font-size: 0.68rem;
    font-weight: 800;
    color: #7dd3fc;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.mundial-ticker-anchor-match {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
    overflow: hidden;
}

.mundial-ticker-anchor-match .cuotas-equipo-nombre {
    max-width: 5.5rem;
}

.mundial-ticker-anchor-score {
    font-size: 0.82rem;
    font-weight: 900;
    color: #fff;
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.28);
    flex-shrink: 0;
}

.mundial-ticker-anchor-src {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 220, 0, 0.85);
    flex-shrink: 0;
}

.mundial-ticker-live {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #ff4d6d;
    box-shadow: 0 0 8px rgba(255, 77, 109, 0.85);
    animation: mundial-ticker-pulse 1.4s ease-in-out infinite;
}

@keyframes mundial-ticker-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}

.mundial-ticker-label {
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: #c4b5fd;
    text-transform: uppercase;
}

.mundial-ticker-fecha {
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-transform: capitalize;
    white-space: nowrap;
}

.mundial-ticker-track {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0, #000 1.5rem, #000 calc(100% - 1.5rem), transparent 100%);
}

.mundial-ticker-empty {
    margin: 0;
    padding: 0 1rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
}

.mundial-ticker-scroll {
    display: flex;
    width: max-content;
    animation: mundial-ticker-scroll 55s linear infinite;
}

.mundial-ticker-scroll:hover {
    animation-play-state: paused;
}

.mundial-ticker-scroll-static {
    animation: none;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.mundial-ticker-scroll-static::-webkit-scrollbar {
    display: none;
}

@keyframes mundial-ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.mundial-ticker-content {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.mundial-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.95rem;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: #fff;
    font-size: 0.74rem;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.mundial-ticker-item:hover {
    background: rgba(56, 189, 248, 0.08);
}

.mundial-ticker-item-surebet {
    background: rgba(0, 230, 118, 0.04);
}

.mundial-ticker-item-surebet:hover {
    background: rgba(0, 230, 118, 0.1);
}

.mundial-ticker-item-urgente {
    background: rgba(255, 77, 109, 0.08);
}

.mundial-ticker-time {
    font-size: 0.68rem;
    font-weight: 700;
    color: #7dd3fc;
    font-variant-numeric: tabular-nums;
    min-width: 2.4rem;
}

.mundial-ticker-item .cuotas-equipo {
    font-weight: 700;
    max-width: 7.5rem;
}

.mundial-ticker-item .cuotas-equipo-nombre {
    max-width: 6rem;
}

.mundial-ticker-item .cuotas-vs {
    font-size: 0.62rem;
    opacity: 0.55;
}

.mundial-ticker-margen {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
    margin-left: 0.15rem;
}

.mundial-ticker-urgente {
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ff8fab;
    padding: 0.08rem 0.3rem;
    border-radius: 4px;
    background: rgba(255, 77, 109, 0.15);
}

.mundial-ticker-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.12);
    border-left: 1px solid rgba(139, 92, 246, 0.3);
    transition: background 0.15s ease, color 0.15s ease;
}

.mundial-ticker-link:hover {
    background: rgba(139, 92, 246, 0.22);
    color: #ddd6fe;
}

@media (max-width: 640px) {
    .mundial-ticker-fecha {
        display: none;
    }

    .mundial-ticker-item .cuotas-equipo-nombre {
        max-width: 4.5rem;
    }

    .mundial-ticker-link {
        padding: 0 0.55rem;
        font-size: 0.58rem;
    }
}

/* ── Revisión jugada ── */
.rj-page {
    padding: 1.25rem 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.rj-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rj-subtitle {
    margin: 0.35rem 0 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.rj-flash {
    padding: 0.65rem 0.9rem;
    border-radius: 0.5rem;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
    margin-bottom: 1rem;
    font-size: 0.88rem;
}

.rj-flash-error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fecaca;
}

.rj-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.rj-kpis-inline {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.rj-kpi {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 0.55rem;
    padding: 0.55rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.rj-kpi span {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.rj-kpi strong {
    font-size: 0.95rem;
    color: #e2e8f0;
}

.rj-kpi-win strong { color: #86efac; }
.rj-kpi.positivo strong, .positivo { color: #86efac; }
.rj-kpi.negativo strong, .negativo { color: #fca5a5; }

.rj-layout {
    display: grid;
    grid-template-columns: minmax(240px, 300px) 1fr;
    gap: 1rem;
    align-items: start;
}

.rj-sidebar {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 0.65rem;
    padding: 0.85rem;
    max-height: calc(100vh - 220px);
    overflow: auto;
    position: sticky;
    top: 1rem;
}

.rj-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.rj-sidebar-head h2 {
    margin: 0;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.rj-sidebar-empty,
.rj-empty-main {
    color: #94a3b8;
    font-size: 0.88rem;
    padding: 1rem 0.25rem;
}

.rj-historial-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.rj-historial-item {
    text-align: left;
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 0.5rem;
    padding: 0.55rem 0.65rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.rj-historial-item:hover,
.rj-historial-item.activo {
    border-color: rgba(139, 92, 246, 0.45);
    background: rgba(139, 92, 246, 0.12);
}

.rj-historial-fecha {
    display: block;
    font-size: 0.68rem;
    color: #94a3b8;
    margin-bottom: 0.15rem;
}

.rj-historial-titulo {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #f1f5f9;
}

.rj-historial-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.25rem;
    font-size: 0.72rem;
    color: #94a3b8;
}

.rj-main {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.rj-panel {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 0.65rem;
    padding: 1rem;
}

.rj-panel h2 {
    margin: 0;
    font-size: 1rem;
    color: #f1f5f9;
}

.rj-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.rj-panel-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.rj-fecha-detalle {
    font-size: 0.78rem;
    color: #94a3b8;
}

.rj-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.rj-tag {
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.18);
    color: #ddd6fe;
    border: 1px solid rgba(139, 92, 246, 0.35);
}

.rj-tag-ia {
    background: rgba(56, 189, 248, 0.18);
    color: #7dd3fc;
    border-color: rgba(56, 189, 248, 0.35);
}

.rj-ia-hint {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

.rj-ia-hint-warn {
    color: #fcd34d;
}

.rj-upload-zone {
    border: 1px dashed rgba(148, 163, 184, 0.35);
    border-radius: 0.55rem;
    padding: 1rem;
    margin: 0.75rem 0;
    background: rgba(30, 41, 59, 0.35);
}

.rj-upload-hint {
    margin: 0.45rem 0 0;
    font-size: 0.78rem;
    color: #94a3b8;
}

.rj-upload-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.35rem;
}

.rj-upload-secondary {
    opacity: 0.92;
}

.rj-excel-nombre {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: #86efac;
}

.rj-preview-wrap {
    margin: 0.75rem 0;
    border-radius: 0.55rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.15);
    background: #0f172a;
}

.rj-preview-img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.rj-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.rj-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.78rem;
    color: #94a3b8;
}

.rj-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.rj-analizando {
    font-size: 0.82rem;
    color: #fcd34d;
}

.rj-alertas {
    margin: 0 0 0.75rem;
    padding-left: 1.1rem;
    color: #fcd34d;
    font-size: 0.82rem;
}

.rj-table-wrap {
    overflow-x: auto;
    border-radius: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.rj-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.rj-table th,
.rj-table td {
    padding: 0.5rem 0.65rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    text-align: left;
}

.rj-table th {
    color: #94a3b8;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(30, 41, 59, 0.5);
}

.rj-table td { color: #e2e8f0; }

.rj-estado {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
}

.rj-estado.ganada { background: rgba(34, 197, 94, 0.18); color: #86efac; }
.rj-estado.perdida { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }
.rj-estado.pendiente { background: rgba(234, 179, 8, 0.18); color: #fcd34d; }
.rj-estado.anulada { background: rgba(148, 163, 184, 0.18); color: #cbd5e1; }
.rj-estado.cashout { background: rgba(56, 189, 248, 0.18); color: #7dd3fc; }
.rj-estado.desconocido { background: rgba(100, 116, 139, 0.18); color: #94a3b8; }

.rj-ocr {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: #94a3b8;
}

.rj-ocr pre {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 0.45rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 240px;
    overflow: auto;
    font-size: 0.75rem;
}

.rj-notas {
    margin: 0 0 0.75rem;
    color: #cbd5e1;
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .rj-layout {
        grid-template-columns: 1fr;
    }

    .rj-sidebar {
        position: static;
        max-height: none;
    }

    .rj-form-row {
        grid-template-columns: 1fr;
    }
}

/* Mapa de Capital — evolución patrimonio */
.pat-evolucion-chart {
    width: 100%;
}

.pat-evolucion-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.pat-evolucion-meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.pat-evolucion-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8899bb;
}

.pat-evolucion-valor {
    font-size: 1.15rem;
    font-weight: 800;
    color: #e2e8f0;
}

.pat-evolucion-var {
    font-size: 0.82rem;
    font-weight: 700;
}

.pat-evolucion-var.positivo { color: #34a853; }
.pat-evolucion-var.negativo { color: #ea4335; }

.pat-evolucion-tabs {
    display: flex;
    gap: 2px;
    background: rgba(0, 0, 0, 0.25);
    padding: 3px;
    border-radius: 999px;
}

.pat-evolucion-tab {
    border: none;
    background: transparent;
    color: #8899bb;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.pat-evolucion-tab:hover {
    color: #cbd5e1;
}

.pat-evolucion-tab.activo {
    background: rgba(52, 168, 83, 0.18);
    color: #86efac;
}

.pat-evolucion-wrap {
    width: 100%;
    min-height: 200px;
}

.pat-evolucion-svg {
    width: 100%;
    height: auto;
    display: block;
}

.pat-evolucion-grid {
    stroke: rgba(148, 163, 184, 0.12);
    stroke-width: 1;
}

.pat-evolucion-axis,
.pat-evolucion-fecha {
    fill: #8899bb;
    font-size: 10px;
    font-family: 'Segoe UI', sans-serif;
}

.pat-evolucion-point {
    cursor: pointer;
}

.pat-evolucion-crosshair {
    stroke: rgba(148, 163, 184, 0.35);
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.pat-evolucion-tooltip-bg {
    fill: #fff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.pat-evolucion-tooltip-val {
    fill: #202124;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Segoe UI', sans-serif;
}

.pat-evolucion-tooltip-fecha {
    fill: #5f6368;
    font-size: 10px;
    font-family: 'Segoe UI', sans-serif;
}

.pat-evolucion-empty {
    fill: #6c7a9c;
    font-size: 12px;
    font-family: 'Segoe UI', sans-serif;
}

/* ── Loterías La Tinka ── */
.loterias-page {
    --loteria-accent: #00d4ff;
    --loteria-accent-rgb: 0, 212, 255;
    --loteria-accent-soft: rgba(0, 212, 255, 0.14);
    --loteria-accent-border: rgba(0, 212, 255, 0.38);
    --loteria-bg-1: #0a1220;
    --loteria-bg-2: #060913;
    --loteria-bg-3: #04060c;
    --loteria-panel: rgba(22, 30, 49, 0.88);
    --loteria-panel-border: rgba(255, 255, 255, 0.08);
    --loteria-glow: rgba(0, 212, 255, 0.12);
    --loteria-text-muted: #8fa3c4;
    --loteria-pozo: #ffd166;

    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
    position: relative;
    isolation: isolate;
    transition: color 0.35s ease;
}

.loterias-page.page-dark {
    background: transparent;
    min-height: auto;
}

.loterias-page.page-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 12px;
    background:
        radial-gradient(ellipse 90% 55% at 50% -5%, var(--loteria-glow), transparent 62%),
        linear-gradient(168deg, var(--loteria-bg-1) 0%, var(--loteria-bg-2) 48%, var(--loteria-bg-3) 100%);
    transition: background 0.55s ease;
}

/* Tema por juego — colores oficiales La Tinka */
.loterias-juego-tinka {
    --loteria-accent: #f5c518;
    --loteria-accent-rgb: 245, 197, 24;
    --loteria-accent-soft: rgba(245, 197, 24, 0.16);
    --loteria-accent-border: rgba(245, 197, 24, 0.52);
    --loteria-bg-1: #2a2208;
    --loteria-bg-2: #161004;
    --loteria-bg-3: #060913;
    --loteria-panel: rgba(32, 26, 8, 0.92);
    --loteria-panel-border: rgba(245, 197, 24, 0.22);
    --loteria-glow: rgba(245, 197, 24, 0.18);
    --loteria-text-muted: #d4c892;
    --loteria-pozo: #ffe566;
}

.loterias-juego-kabala {
    --loteria-accent: #f39200;
    --loteria-accent-rgb: 243, 146, 0;
    --loteria-accent-soft: rgba(243, 146, 0, 0.18);
    --loteria-accent-border: rgba(243, 146, 0, 0.55);
    --loteria-bg-1: #2a1806;
    --loteria-bg-2: #160e04;
    --loteria-bg-3: #060913;
    --loteria-panel: rgba(34, 22, 8, 0.92);
    --loteria-panel-border: rgba(243, 146, 0, 0.22);
    --loteria-glow: rgba(243, 146, 0, 0.2);
    --loteria-text-muted: #d4b892;
    --loteria-pozo: #ffc56d;
}

.loterias-juego-ganadiario {
    --loteria-accent: #29b6f6;
    --loteria-accent-rgb: 41, 182, 246;
    --loteria-accent-soft: rgba(41, 182, 246, 0.16);
    --loteria-accent-border: rgba(41, 182, 246, 0.52);
    --loteria-bg-1: #0a1e2a;
    --loteria-bg-2: #051018;
    --loteria-bg-3: #060913;
    --loteria-panel: rgba(10, 28, 42, 0.92);
    --loteria-panel-border: rgba(41, 182, 246, 0.22);
    --loteria-glow: rgba(41, 182, 246, 0.2);
    --loteria-text-muted: #94b8d4;
    --loteria-pozo: #80d8ff;
}

.loterias-juego-ganagol {
    --loteria-accent: #00a651;
    --loteria-accent-rgb: 0, 166, 81;
    --loteria-accent-soft: rgba(0, 166, 81, 0.16);
    --loteria-accent-border: rgba(0, 166, 81, 0.52);
    --loteria-bg-1: #062a14;
    --loteria-bg-2: #041808;
    --loteria-bg-3: #060913;
    --loteria-panel: rgba(8, 32, 18, 0.92);
    --loteria-panel-border: rgba(0, 166, 81, 0.22);
    --loteria-glow: rgba(0, 166, 81, 0.2);
    --loteria-text-muted: #94c4a8;
    --loteria-pozo: #7dffb0;
}

.loterias-juego-kinelo {
    --loteria-accent: #9c27b0;
    --loteria-accent-rgb: 156, 39, 176;
    --loteria-accent-soft: rgba(156, 39, 176, 0.18);
    --loteria-accent-border: rgba(156, 39, 176, 0.52);
    --loteria-bg-1: #1a0822;
    --loteria-bg-2: #0e0514;
    --loteria-bg-3: #060913;
    --loteria-panel: rgba(26, 10, 34, 0.92);
    --loteria-panel-border: rgba(156, 39, 176, 0.22);
    --loteria-glow: rgba(156, 39, 176, 0.22);
    --loteria-text-muted: #c4a0d4;
    --loteria-pozo: #e1a8f0;
}

.loterias-page .page-eyebrow {
    color: var(--loteria-accent);
    transition: color 0.35s ease;
}

.loterias-page .page-title {
    transition: text-shadow 0.35s ease;
    text-shadow: 0 0 40px rgba(var(--loteria-accent-rgb), 0.15);
}

.loterias-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.loterias-subtitle {
    color: var(--loteria-text-muted);
    font-size: 0.9rem;
    margin: 0.35rem 0 0;
    transition: color 0.35s ease;
}

.loterias-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.loterias-sync-time {
    color: #7d8fad;
    font-size: 0.8rem;
}

.loterias-flash {
    background: var(--loteria-accent-soft);
    border: 1px solid var(--loteria-accent-border);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    color: color-mix(in srgb, var(--loteria-accent) 55%, white);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.loterias-alert {
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    color: #ffb4b4;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.loterias-tabs-strip {
    width: 100%;
    margin-bottom: 1rem;
}

.loterias-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(0.25rem, 0.8vw, 0.5rem);
    width: 100%;
}

.loterias-tab {
    --tab-accent: var(--loteria-accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    min-height: 4.85rem;
    padding: 0.45rem 0.35rem;
    border: 1px solid color-mix(in srgb, var(--tab-accent) 35%, transparent);
    background: rgba(0, 0, 0, 0.28);
    color: color-mix(in srgb, var(--tab-accent) 70%, white);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    line-height: 1.2;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.loterias-tab-rank {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    opacity: 0.85;
    text-transform: uppercase;
}

.loterias-tab-name {
    font-size: clamp(0.68rem, 1.4vw, 0.82rem);
    font-weight: 700;
    line-height: 1.15;
}

.loterias-tab-prob {
    font-size: clamp(0.6rem, 1.1vw, 0.72rem);
    font-weight: 600;
    color: var(--loteria-text-muted);
    opacity: 0.95;
    white-space: nowrap;
}

.loterias-tab-pozo {
    font-size: clamp(0.58rem, 1vw, 0.68rem);
    font-weight: 700;
    color: var(--loteria-pozo);
    line-height: 1.15;
    white-space: nowrap;
}

.loterias-tab:hover {
    background: color-mix(in srgb, var(--tab-accent) 12%, transparent);
    border-color: color-mix(in srgb, var(--tab-accent) 55%, transparent);
}

.loterias-tab.is-active {
    background: color-mix(in srgb, var(--tab-accent) 28%, transparent);
    border-color: var(--tab-accent);
    color: #fff;
    box-shadow: 0 0 20px color-mix(in srgb, var(--tab-accent) 35%, transparent);
}

.loterias-tab.is-active .loterias-tab-prob {
    color: color-mix(in srgb, white 85%, var(--tab-accent));
    opacity: 1;
}

.loterias-tab.is-active .loterias-tab-pozo {
    color: color-mix(in srgb, var(--loteria-pozo) 90%, white);
}

.loterias-tab-tinka { --tab-accent: #f5c518; color: color-mix(in srgb, #f5c518 80%, white); }
.loterias-tab-tinka.is-active { color: #1a1400; background: #f5c518; border-color: #ffe566; box-shadow: 0 0 20px rgba(245, 197, 24, 0.35); }
.loterias-tab-tinka.is-active .loterias-tab-prob { color: #3d3200; }
.loterias-tab-kabala { --tab-accent: #f39200; }
.loterias-tab-ganadiario { --tab-accent: #29b6f6; }
.loterias-tab-ganagol { --tab-accent: #00a651; }
.loterias-tab-kinelo { --tab-accent: #9c27b0; }

@media (max-width: 720px) {
    .loterias-tab {
        min-height: 3.75rem;
        padding: 0.35rem 0.2rem;
    }

    .loterias-tab-name {
        font-size: 0.62rem;
    }

    .loterias-tab-prob {
        font-size: 0.58rem;
    }
}

@media (max-width: 420px) {
    .loterias-tab-name {
        font-size: 0.55rem;
    }
}

.loterias-panel-resumen {
    margin-bottom: 1rem;
}

.loterias-resumen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

@media (max-width: 900px) {
    .loterias-resumen-grid { grid-template-columns: 1fr; }
}

.loterias-resumen-card {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid color-mix(in srgb, var(--loteria-accent) 25%, transparent);
    border-radius: 12px;
    padding: 0.85rem 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 100%;
}

.loterias-resumen-card-jugada {
    border-color: color-mix(in srgb, var(--loteria-accent) 45%, transparent);
}

.loterias-resumen-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--loteria-text-muted);
    font-weight: 600;
}

.loterias-resumen-valor {
    font-size: 1.15rem;
    color: var(--loteria-pozo);
    line-height: 1.25;
}

.loterias-resumen-hint {
    font-size: 0.75rem;
    color: #8fa3c4;
    line-height: 1.35;
}

.loterias-balls-resumen {
    margin: 0.15rem 0;
}

.loterias-resumen-ganagol {
    margin: 0.1rem 0;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    line-height: 1.5;
}

.loterias-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .loterias-grid { grid-template-columns: 1fr; }
}

.loterias-panel {
    background: var(--loteria-panel);
    border: 1px solid var(--loteria-panel-border);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    transition: background 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.loterias-panel-title {
    font-size: 0.95rem;
    color: #e8eef8;
    margin: 0 0 0.75rem;
    font-weight: 700;
    border-left: 3px solid var(--loteria-accent);
    padding-left: 0.55rem;
}

.loterias-pozo { color: var(--loteria-pozo); font-size: 0.9rem; margin: 0 0 0.35rem; }
.loterias-cierre { color: var(--loteria-text-muted); font-size: 0.8rem; margin: 0 0 0.75rem; }

.loterias-ultimo-label,
.loterias-hotcold-label,
.loterias-sugerencia-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7d8fad;
    margin-bottom: 0.35rem;
}

.loterias-ultimo-fecha { color: #c5d4ef; font-size: 0.85rem; margin-right: 0.5rem; }
.loterias-ultimo-dia { color: #9db0d4; font-size: 0.8rem; margin-right: 0.5rem; }
.loterias-ultimo-sorteo { color: #7d8fad; font-size: 0.8rem; }
.loterias-ultimo-meta {
    display: block;
    margin-top: 0.55rem;
    font-size: 0.72rem;
    color: #7d8fad;
}

.loterias-balls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.5rem 0;
}

.loterias-balls-sm .loterias-ball { width: 2rem; height: 2rem; font-size: 0.75rem; }

.loterias-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
    border: 1px solid var(--loteria-accent-border);
    color: color-mix(in srgb, var(--loteria-accent) 40%, white);
    font-weight: 700;
    font-size: 0.82rem;
    box-shadow: 0 0 12px rgba(var(--loteria-accent-rgb), 0.15);
}

.loterias-ball-extra { border-color: rgba(255, 209, 102, 0.5); color: #ffe6a0; }
.loterias-ball-hot { border-color: rgba(255, 107, 107, 0.5); color: #ffc2c2; }
.loterias-ball-cold { border-color: rgba(100, 181, 246, 0.4); color: #b3ddff; }
.loterias-ball-sug { border-color: rgba(129, 199, 132, 0.55); color: #c8f5ca; background: rgba(46, 125, 50, 0.15); }

.loterias-extra { margin-top: 0.5rem; }
.loterias-extra-label { font-size: 0.72rem; color: #7d8fad; margin-right: 0.35rem; }
.loterias-detalle { font-size: 0.78rem; color: #8fa3c4; margin: 0.35rem 0 0; }
.loterias-disclaimer { font-size: 0.75rem; color: #6d7f9c; margin: 0 0 0.75rem; }

.loterias-sugerencia {
    background: var(--loteria-accent-soft);
    border: 1px dashed var(--loteria-accent-border);
    border-radius: 10px;
    padding: 0.65rem;
    margin-bottom: 0.85rem;
}

.loterias-freq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 600px) {
    .loterias-freq-grid { grid-template-columns: 1fr; }
}

.loterias-freq-title {
    font-size: 0.78rem;
    color: #9fb0d0;
    margin: 0 0 0.45rem;
}

.loterias-freq-row {
    display: grid;
    grid-template-columns: 2rem 1fr auto;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
}

.loterias-freq-num { font-weight: 700; color: #e8eef8; font-size: 0.82rem; }
.loterias-freq-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
}

.loterias-freq-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--loteria-accent), color-mix(in srgb, var(--loteria-accent) 55%, #7c4dff));
    border-radius: 999px;
}

.loterias-freq-bar-cold span {
    background: linear-gradient(90deg, #64b5f6, #5c6bc0);
}

.loterias-freq-count { font-size: 0.72rem; color: #7d8fad; min-width: 3rem; text-align: right; }

.loterias-table-wrap { overflow-x: auto; }
.loterias-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.loterias-table th,
.loterias-table td {
    padding: 0.45rem 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
    vertical-align: top;
}

.loterias-table th { color: #7d8fad; font-weight: 600; font-size: 0.72rem; text-transform: uppercase; }
.loterias-table td { color: #c5d4ef; }
.loterias-fuente { color: #6d7f9c; font-size: 0.72rem; }

.loterias-max-ganador {
    font-size: 0.72rem;
    line-height: 1.35;
    color: var(--loteria-pozo);
    white-space: nowrap;
    max-width: 12rem;
}

.loterias-max-ganador:empty::before {
    content: "—";
    color: #7d8fad;
}
.loterias-ganagol-texto,
.loterias-ganagol-cell {
    font-family: ui-monospace, monospace;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.loterias-panel-ganagol-programa {
    grid-column: 1 / -1;
}

/* Ganagol: panel compacto izquierda + partidos derecha */
.loterias-ganagol-dashboard {
    display: grid;
    grid-template-columns: minmax(250px, 38%) minmax(0, 1fr);
    gap: 0.85rem;
    align-items: stretch;
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
}

.loterias-ganagol-dashboard-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
}

.loterias-ganagol-dashboard-partidos {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
}

.loterias-ganagol-dashboard-title {
    margin-bottom: 0.25rem;
    font-size: 0.88rem;
}

.loterias-ganagol-dashboard-disclaimer {
    margin: 0;
    font-size: 0.72rem;
    color: #8fa3c4;
    line-height: 1.35;
}

.loterias-ganagol-mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.loterias-ganagol-mini-stat {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid color-mix(in srgb, var(--loteria-accent) 22%, transparent);
    border-radius: 8px;
    padding: 0.45rem 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.loterias-ganagol-mini-stat strong {
    font-size: 0.82rem;
    color: var(--loteria-pozo);
    line-height: 1.2;
}

.loterias-ganagol-mini-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7d8fad;
    font-weight: 600;
}

.loterias-ganagol-jugada-block {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid color-mix(in srgb, var(--loteria-accent) 35%, transparent);
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.loterias-ganagol-jugada-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.22rem;
}

.loterias-ganagol-jugada-texto {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.4;
}

.loterias-ganagol-jugada-nota {
    font-size: 0.68rem;
    color: #7d8fad;
    line-height: 1.3;
}

.loterias-ganagol-ia-hint {
    margin: 0;
    font-size: 0.72rem;
    color: #9db0d4;
    line-height: 1.35;
}

.loterias-ganagol-ia-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
    align-items: center;
    margin-top: 0.35rem;
}

.loterias-ganagol-ia-link {
    font-size: 0.72rem;
    color: var(--loteria-accent);
}

.loterias-ganagol-ia-paste {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.loterias-ganagol-ia-paste-label {
    font-size: 0.68rem;
    color: #9db0d4;
}

.loterias-ganagol-ia-textarea {
    width: 100%;
    min-height: 2.6rem;
    padding: 0.4rem 0.55rem;
    font-size: 0.72rem;
    font-family: inherit;
    color: #e8eef8;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    resize: vertical;
}

.loterias-ganagol-ia-textarea:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--loteria-accent) 55%, transparent);
}

.loterias-ganagol-ia-apply,
.loterias-ganagol-ia-clear {
    align-self: flex-start;
}

.loterias-ganagol-programa-ia {
    text-align: center;
    white-space: nowrap;
}

.loterias-ganagol-vivo-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    font-size: 0.72rem;
    color: #9db0d4;
}

.loterias-ganagol-vivo-inline strong {
    color: var(--loteria-pozo);
}

.loterias-ganagol-ultima-compact {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.5rem 0.65rem;
    margin-top: auto;
}

.loterias-ganagol-ultima-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    font-size: 0.75rem;
    color: #c5d4ef;
    margin-bottom: 0.25rem;
}

.loterias-ganagol-ultima-resultado {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.45;
    letter-spacing: 0.05em;
}

.loterias-ganagol-ultima-extra {
    display: block;
    font-size: 0.68rem;
    color: #7d8fad;
    margin-top: 0.2rem;
}

.loterias-ganagol-partidos-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.loterias-ganagol-partidos-link {
    font-size: 0.72rem;
    color: var(--loteria-accent);
    white-space: nowrap;
}

.loterias-ganagol-programa-table-wrap-compact {
    flex: 1;
    min-height: 0;
    max-height: 26rem;
    overflow: auto;
}

.loterias-ganagol-programa-table-compact th,
.loterias-ganagol-programa-table-compact td {
    padding: 0.28rem 0.4rem;
}

.loterias-ganagol-programa-table-compact {
    font-size: 0.72rem;
}

.loterias-ganagol-programa-table-compact th {
    font-size: 0.62rem;
    padding: 0.35rem 0.4rem;
}

.loterias-ganagol-programa-stats-compact {
    font-size: 0.68rem;
    white-space: nowrap;
}

.loterias-ganagol-rec-sm {
    width: 1.4rem;
    height: 1.4rem;
    font-size: 0.7rem;
    border-width: 1.5px;
}

.loterias-ganagol-programa-link-compact {
    margin: 0.35rem 0 0;
    text-align: right;
}

.loterias-empty-compact {
    padding: 0.75rem;
    font-size: 0.8rem;
}

@media (max-width: 960px) {
    .loterias-ganagol-dashboard {
        grid-template-columns: 1fr;
    }

    .loterias-ganagol-ultima-compact {
        margin-top: 0;
    }
}

@media (max-width: 520px) {
    .loterias-ganagol-mini-stats {
        grid-template-columns: 1fr;
    }
}

.loterias-ganagol-programa-num {
    color: var(--loteria-accent);
    font-weight: 600;
}

.loterias-ganagol-programa-hint {
    font-size: 0.78rem;
    color: #8fa3c4;
    margin: -0.35rem 0 0.75rem;
}

.loterias-ganagol-programa-hint-warn {
    color: #ffd59a;
}

.loterias-ganagol-programa-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(0, 166, 81, 0.25);
}

.loterias-ganagol-programa-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.loterias-ganagol-programa-table thead {
    background: linear-gradient(180deg, #00843d, #006b32);
    color: #fff;
}

.loterias-ganagol-programa-table th {
    padding: 0.55rem 0.65rem;
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.loterias-ganagol-programa-table td {
    padding: 0.5rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.loterias-ganagol-programa-table tbody tr:nth-child(even) {
    background: rgba(0, 166, 81, 0.06);
}

.loterias-ganagol-programa-table tbody tr:hover {
    background: rgba(0, 166, 81, 0.12);
}

.loterias-ganagol-programa-n {
    width: 2.5rem;
    text-align: center;
    font-weight: 700;
    color: var(--loteria-accent);
}

.loterias-ganagol-programa-equipo {
    font-weight: 600;
    color: #e8eef8;
    white-space: nowrap;
}

.loterias-ganagol-programa-vs {
    width: 2.5rem;
    text-align: center;
    color: var(--loteria-accent);
    font-size: 0.72rem;
    font-weight: 600;
}

.loterias-ganagol-programa-stats {
    font-size: 0.75rem;
    color: #9db0d4;
    min-width: 8rem;
}

.loterias-ganagol-programa-torneo {
    display: block;
    font-size: 0.68rem;
    color: #6d7f9c;
    margin-top: 0.15rem;
}

.loterias-ganagol-rec {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.85rem;
    background: rgba(0, 166, 81, 0.2);
    border: 2px solid var(--loteria-accent);
    color: #b8f5c8;
}

.loterias-ganagol-rec-L { border-color: #4caf50; color: #c8f5ca; }
.loterias-ganagol-rec-E { border-color: #ffb74d; color: #ffe0b2; background: rgba(255, 183, 77, 0.15); }
.loterias-ganagol-rec-V { border-color: #64b5f6; color: #bbdefb; background: rgba(100, 181, 246, 0.15); }

.loterias-ganagol-programa-link {
    margin: 0.65rem 0 0;
    font-size: 0.72rem;
    color: #7d8fad;
}

.loterias-ganagol-programa-link a {
    color: var(--loteria-accent);
}

.loterias-ganagol-programa-loading {
    font-size: 0.8rem;
    color: #8fa3c4;
    text-align: center;
    padding: 0.5rem;
}

.loterias-ganagol-programa-error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: #ffb4b4;
}

.loterias-ganagol-recargar {
    display: block;
    margin: 0.75rem auto 0;
}

.loterias-loading,
.loterias-empty-inline {
    color: #8fa3c4;
    text-align: center;
    padding: 2rem;
}

.loterias-detalle-cell { font-size: 0.75rem; color: #8fa3c4; }

.loterias-historial-hint {
    font-size: 0.75rem;
    color: #6d7f9c;
    margin: -0.25rem 0 0.75rem;
}

.loterias-dia {
    color: #9eb4d8;
    font-size: 0.82rem;
    white-space: nowrap;
}

.loterias-row-clickable {
    cursor: pointer;
    transition: background 0.15s ease;
}

.loterias-row-clickable:hover td {
    background: rgba(var(--loteria-accent-rgb), 0.08);
}

.loterias-page .cuotas-btn-refresh {
    border-color: var(--loteria-accent-border);
    background: var(--loteria-accent-soft);
    color: color-mix(in srgb, var(--loteria-accent) 50%, white);
}

.loterias-page .cuotas-btn-refresh:hover:not(:disabled) {
    background: color-mix(in srgb, var(--loteria-accent) 32%, transparent);
    border-color: var(--loteria-accent);
    color: #fff;
}

.loterias-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.loterias-modal {
    width: min(720px, 100%);
    max-height: min(88vh, 820px);
    overflow-y: auto;
    background: var(--loteria-panel);
    border: 1px solid var(--loteria-panel-border);
    border-radius: 14px;
    padding: 1.25rem 1.35rem 1.35rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(var(--loteria-accent-rgb), 0.12);
}

.loterias-modal-ganagol {
    width: min(1120px, 96vw);
    max-height: min(92vh, 920px);
}

.loterias-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.loterias-modal-eyebrow {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--loteria-accent);
    margin-bottom: 0.25rem;
}

.loterias-modal-title {
    margin: 0;
    font-size: 1.15rem;
    color: #eef3ff;
}

.loterias-modal-sub {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: #8fa3c4;
    text-transform: capitalize;
}

.loterias-modal-close {
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #c5d4ef;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.loterias-modal-loading {
    padding: 1.5rem 0;
    text-align: center;
    color: #8fa3c4;
}

.loterias-modal-balls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.loterias-modal-balls-extra {
    margin-bottom: 1rem;
}

.loterias-detalle-list {
    margin: 0 0 1rem;
    display: grid;
    gap: 0.55rem;
}

.loterias-detalle-item {
    display: grid;
    grid-template-columns: minmax(7rem, 38%) 1fr;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.loterias-detalle-item dt {
    margin: 0;
    font-size: 0.78rem;
    color: #7d8fad;
    font-weight: 600;
}

.loterias-detalle-item dd {
    margin: 0;
    font-size: 0.86rem;
    color: #dbe6fb;
}

.loterias-detalle-premios {
    margin-bottom: 0.85rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: var(--loteria-accent-soft);
    border: 1px solid var(--loteria-accent-border);
}

.loterias-detalle-premios h3 {
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    color: var(--loteria-pozo);
}

.loterias-detalle-premios p {
    margin: 0.2rem 0;
    font-size: 0.82rem;
    color: #e8eef8;
}

.loterias-detalle-notas {
    font-size: 0.78rem;
    color: #8fa3c4;
    margin-bottom: 0.75rem;
}

.loterias-modal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.loterias-modal-links a {
    font-size: 0.8rem;
    color: var(--loteria-accent);
    text-decoration: none;
}

.loterias-modal-links a:hover {
    text-decoration: underline;
}

.loterias-gg-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.loterias-gg-pozo,
.loterias-gg-golazo {
    font-size: 0.82rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    background: var(--loteria-accent-soft);
    border: 1px solid var(--loteria-accent-border);
    color: #e8eef8;
}

.loterias-gg-section-title {
    font-size: 0.88rem;
    color: var(--loteria-accent);
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.loterias-gg-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 1rem;
    align-items: start;
}

.loterias-gg-col {
    min-width: 0;
}

.loterias-gg-col-ganadores {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 1rem;
}

.loterias-gg-empty {
    font-size: 0.78rem;
    color: var(--loteria-text-muted);
    margin: 0.25rem 0 0;
}

@media (max-width: 860px) {
    .loterias-gg-columns {
        grid-template-columns: 1fr;
    }

    .loterias-gg-col-ganadores {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 1rem;
    }

    .loterias-gg-col-ganadores .loterias-gg-section-title {
        margin-top: 0;
    }
}

.loterias-gg-columns ~ .loterias-gg-section-title {
    margin-top: 1rem;
}

.loterias-gg-table-wrap {
    overflow-x: auto;
    margin-bottom: 0.5rem;
}

.loterias-gg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.loterias-gg-table th,
.loterias-gg-table td {
    padding: 0.4rem 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    vertical-align: middle;
}

.loterias-gg-table th {
    background: rgba(0, 0, 0, 0.25);
    color: #ffd966;
    font-size: 0.72rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.loterias-gg-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.loterias-gg-res {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.75rem;
}

.loterias-gg-res-l { background: #fef7d3; color: #1a1a1a; }
.loterias-gg-res-e { background: #fef7d3; color: #1a1a1a; }
.loterias-gg-res-v { background: #fef7d3; color: #1a1a1a; }

.loterias-gg-marcador {
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
}

.loterias-gg-torneo {
    font-size: 0.72rem;
    color: var(--loteria-text-muted);
}

.loterias-gg-table-premios td:first-child {
    font-size: 0.75rem;
}

.loterias-gg-nota {
    font-size: 0.72rem;
    color: var(--loteria-text-muted);
    margin: 0.35rem 0 0;
    font-style: italic;
}

.loterias-gg-programas {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.35rem;
}

.loterias-gg-programas li {
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #c5d4ef;
}

.loterias-gg-programas li.is-current {
    border-color: var(--loteria-accent);
    background: var(--loteria-accent-soft);
    color: #fff;
    font-weight: 600;
}

/* ============================================================
   CAPA RESPONSIVE GLOBAL (móvil) — añadida para optimizar celular
   Se coloca al final para tener prioridad sobre reglas anteriores.
   ============================================================ */
@media (max-width: 640px) {
    /* --- Contenedor principal: sin desbordes laterales --- */
    main {
        overflow-x: hidden;
    }

    .content {
        padding-left: 12px !important;
        padding-right: 12px !important;
        padding-top: 12px;
        min-width: 0;
    }

    /* --- Nada se sale del ancho de la pantalla --- */
    img,
    video,
    canvas,
    svg,
    iframe {
        max-width: 100%;
        height: auto;
    }

    /* --- Tablas: scroll horizontal propio en vez de romper la página --- */
    table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* --- Layouts de varios paneles -> una sola columna --- */
    [class$="-layout"],
    [class$="-split"],
    [class$="-columns"],
    [class$="-calc-row"],
    [class$="-master-layout"],
    [class$="-grid"],
    [class$="-list"] {
        grid-template-columns: 1fr !important;
    }

    /* --- KPIs / mini-stats: 2 columnas (más compacto que 1) --- */
    [class$="-kpis"],
    [class$="-stats"],
    [class$="-mini-stats"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    /* --- Formularios cómodos y sin zoom automático en iOS --- */
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea {
        max-width: 100%;
        font-size: 16px;
    }

    /* --- Títulos un poco más pequeños --- */
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }
}
