﻿:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-blue: #38bdf8;
    --accent-purple: #818cf8;
    --accent-green: #4ade80;
    --accent-yellow: #facc15;
    --accent-red: #f87171;
    --border-color: #334155;
    --sidebar-width: 260px;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

/* Lucide Icons - Tamaño consistente */
.lucide {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

/* Iconos pequeños */
.pos-search-box .lucide,
.pos-cart-empty .lucide {
    width: 48px;
    height: 48px;
    stroke-width: 1;
    color: var(--text-secondary);
    opacity: 0.5;
}

.pos-category-btn .lucide {
    width: 16px;
    height: 16px;
}

.pos-payment-btn .lucide {
    width: 24px;
    height: 24px;
}

.pos-cart-header h3 .lucide {
    width: 20px;
    height: 20px;
    color: var(--accent-blue);
}

.pos-checkout-btn .lucide {
    width: 22px;
    height: 22px;
}

.pos-load-more-btn .lucide {
    width: 16px;
    height: 16px;
}

.top-bar h2 .lucide {
    width: 24px;
    height: 24px;
    color: var(--accent-blue);
}

/* POS específicos */
.pos-products .lucide {
    color: var(--text-secondary);
}

.pos-cart-header .lucide {
    color: var(--accent-blue);
}

.pos-checkout-btn .lucide {
    color: white;
}

.pos-empty-state .lucide {
    color: var(--text-secondary);
    opacity: 0.3;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    margin-bottom: 1rem;
}

.sidebar nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.sidebar nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.sidebar nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar nav a {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
}

.sidebar nav a:hover,
.sidebar nav li.active a {
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--accent-blue);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 2rem;
    max-width: 1600px;
}

/* View Switching Logic */
.view-section {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.actions {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: var(--bg-dark);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: filter 0.2s;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid rgba(56, 189, 248, 0.2);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn-primary:active,
.btn-secondary:active {
    transform: scale(0.98);
}

/* ============================
   SETTINGS VIEW (Refactor v6.0)
   ============================ */
.settings-tabs {
    display: flex;
    gap: 8px;
    padding: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.95);
    position: sticky;
    top: 0;
    z-index: 90;
    width: 100%;
}

.settings-tab {
    flex: 1;
    white-space: nowrap;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 0.8rem 0.5rem;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.settings-tab i {
    font-size: 1.1rem;
}

.settings-tab.active {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.settings-container-scrollable {
    padding: 1rem;
    padding-bottom: 100px;
    /* Space for sticky footer */
}

.settings-footer-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    /* Adjust for sidebar if needed, but mobile first */
    width: 100%;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .settings-footer-sticky {
        left: 250px;
        /* Sidebar width */
        width: calc(100% - 250px);
    }
}

.full-width-pulse {
    width: 100%;
    max-width: 600px;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
    }

    50% {
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.7);
    }

    100% {
        box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
    }
}

.payment-config-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.setting-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    background: rgba(56, 189, 248, 0.1);
    padding: 0.5rem;
    border-radius: 4px;
    border-left: 3px solid var(--accent-blue);
}

.variables-pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 1rem;
}

.var-pill {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.var-pill.highlight {
    background: rgba(56, 189, 248, 0.2);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    font-weight: bold;
}

.search-box {
    background-color: var(--bg-card);
    border: 2px solid rgba(56, 189, 248, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Micro Stats Row */
.micro-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mini-stat-card {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.6);
    /* Slightly darker/transparent */
}

.mini-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.mini-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-card {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid rgba(56, 189, 248, 0.2);
}

.icon-bg {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.icon-bg.blue {
    background-color: rgba(56, 189, 248, 0.2);
    color: var(--accent-blue);
}

.icon-bg.yellow {
    background-color: rgba(250, 204, 21, 0.2);
    color: var(--accent-yellow);
}

.icon-bg.green {
    background-color: rgba(74, 222, 128, 0.2);
    color: var(--accent-green);
}

.icon-bg.purple {
    background-color: rgba(129, 140, 248, 0.2);
    color: var(--accent-purple);
}

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-info .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Recent Repairs Table */
.recent-repairs,
.table-container {
    background-color: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 2px solid rgba(56, 189, 248, 0.2);
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.view-all {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.9rem;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

td {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-badge.recibido {
    background-color: rgba(56, 189, 248, 0.2);
    color: var(--accent-blue);
}

.status-badge.en-proceso {
    background-color: rgba(250, 204, 21, 0.2);
    color: var(--accent-yellow);
}

.status-badge.reparado {
    background-color: rgba(74, 222, 128, 0.2);
    color: var(--accent-green);
}

.status-badge.entregado {
    background-color: rgba(129, 140, 248, 0.2);
    color: var(--accent-purple);
}

.status-badge.en-diagnóstico {
    background-color: rgba(250, 204, 21, 0.2);
    color: var(--accent-yellow);
}

.status-badge.esperando-repuesto {
    background-color: rgba(249, 115, 22, 0.2);
    color: #f97316;
}

.status-badge.en-reparación {
    background-color: rgba(56, 189, 248, 0.2);
    color: var(--accent-blue);
}

.status-badge.listo-para-retirar {
    background-color: rgba(74, 222, 128, 0.2);
    color: var(--accent-green);
}

.status-badge.cancelado {
    background-color: rgba(248, 113, 113, 0.2);
    color: var(--accent-red);
}

.action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
    margin-right: 0.5rem;
}

.action-btn:hover {
    color: var(--accent-blue);
}

.action-btn.whatsapp:hover {
    color: #25D366;
}

.action-btn.delete:hover {
    color: var(--accent-red);
}

/* modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background-color: var(--bg-card);
    width: 100%;
    max-width: 650px;
    border-radius: 1rem;
    border: 2px solid rgba(56, 189, 248, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.section-title {
    font-size: 0.95rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-top: 1rem;
}

.section-title:first-of-type {
    margin-top: 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row.three-col .form-group {
    flex: 1;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

input,
select,
textarea {
    width: 100%;
    background-color: var(--bg-dark);
    border: 2px solid rgba(56, 189, 248, 0.2);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.2s;
}

input.readonly-input {
    background-color: #1a1a2e;
    cursor: not-allowed;
    color: var(--accent-yellow);
    font-weight: bold;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-blue);
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 20000;
}

.toast {
    background-color: var(--bg-card);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--accent-blue);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease-out forwards;
    min-width: 300px;
}

.toast.success {
    border-left-color: var(--accent-green);
}

.toast.error {
    border-left-color: var(--accent-red);
}

.toast.info {
    border-left-color: var(--accent-blue);
}

.toast i {
    font-size: 1.25rem;
}

.toast.success i {
    color: var(--accent-green);
}

.toast.error i {
    color: var(--accent-red);
}

.toast.info i {
    color: var(--accent-blue);
}

/* High-Impact Demo Alert */
.toast.demo-impact {
    background: #fbbf24 !important;
    /* Bright Gold */
    color: #000000 !important;
    /* Pure Black */
    font-weight: 800;
    font-size: 1rem;
    border: 2px solid #000;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: demo-shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
    max-width: 400px;
    line-height: 1.4;
}

.btn-impact-upgrade {
    background: #000 !important;
    color: #fbbf24 !important;
    border: 1px solid #000;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.2s;
}

.btn-impact-upgrade:hover {
    transform: scale(1.05);
}

@keyframes demo-shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Settings Page */
.settings-container {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.setting-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid rgba(56, 189, 248, 0.2);
}

.setting-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.setting-card.danger-zone {
    border-color: rgba(248, 113, 113, 0.3);
}

.setting-card.danger-zone h3 {
    color: var(--accent-red);
}

/* Print Styles */
.receipt-hidden {
    display: none;
}

@media print {

    .app-container,
    .modal-overlay,
    .toast-container {
        display: none !important;
    }

    .receipt-hidden {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
        padding: 10px;
        background: white;
        color: black;
    }

    @media print {
        @page {
            margin: 1cm;
        }

        body * {
            visibility: hidden;
        }

        #receipt-container,
        #receipt-container * {
            visibility: visible;
        }

        #receipt-container {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            color: #000;
            background: #fff;
            padding: 0;
            font-family: 'Inter', sans-serif;
        }

        .receipt-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 2px solid #000;
            margin-bottom: 20px;
            padding-bottom: 10px;
        }

        .receipt-title-group {
            text-align: right;
        }

        .receipt-title {
            font-size: 24pt;
            font-weight: 800;
            margin: 0;
        }

        .receipt-subtitle {
            font-size: 10pt;
            color: #555;
        }

        .receipt-logo {
            max-height: 60pt;
            max-width: 150pt;
        }

        .receipt-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0;
            margin-bottom: 20px;
        }

        .receipt-section {
            border: 1px solid #ddd;
            padding: 10px;
            border-radius: 4px;
        }

        .receipt-section h3 {
            font-size: 10pt;
            text-transform: uppercase;
            margin: 0 0 8px 0;
            border-bottom: 1px solid #eee;
            padding-bottom: 4px;
        }

        .receipt-section p {
            margin: 4px 0;
            font-size: 10pt;
        }

        .receipt-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
        }

        .receipt-table th {
            background: #f9f9f9;
            text-align: left;
            padding: 8px;
            font-size: 9pt;
            border-bottom: 2px solid #000;
        }

        .receipt-table td {
            padding: 8px;
            font-size: 10pt;
            border-bottom: 1px solid #eee;
        }

        .receipt-summary {
            margin-left: auto;
            width: 40%;
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            padding: 4px 0;
            font-size: 10pt;
        }

        .summary-row.total {
            border-top: 2px solid #000;
            margin-top: 8px;
            padding-top: 8px;
            font-weight: 800;
            font-size: 12pt;
        }

        .receipt-footer {
            margin-top: 40px;
            font-size: 8pt;
            color: #666;
            text-align: center;
        }

        .signature-area {
            margin-top: 60px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 100px;
            text-align: center;
        }

        .sig-line {
            border-top: 1px solid #000;
            padding-top: 5px;
            font-size: 9pt;
        }

        .pattern-preview-receipt {
            margin: 20px auto;
            border: 1px dashed #ccc;
            width: 120px;
            height: 120px;
            position: relative;
        }
    }
}

/* Pattern Lock Styles */
/* Pattern Lock Wrapper & Box (v3.0) */
.pattern-lock-wrapper {
    width: 220px;
    height: 220px;
    margin: 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    flex-shrink: 0;
}

.pattern-lock-container {
    width: 220px !important;
    height: 220px !important;
    max-width: 220px !important;
    max-height: 220px !important;
    aspect-ratio: 1 / 1 !important;
    background: rgba(15, 23, 42, 0.5);
    border: 2px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    position: relative;
    user-select: none !important;
    touch-action: none !important;
    -webkit-user-select: none;
    overflow: hidden;
    backdrop-filter: blur(8px);
    display: block !important;
}

.pattern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    width: 100%;
    height: 100%;
    padding: 10px;
    gap: 0;
}

.dot {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    z-index: 3;
}

.dot::after {
    content: '';
    width: 14px;
    height: 14px;
    background-color: rgba(148, 163, 184, 0.5);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 0 4px transparent;
}

.dot.active::after {
    background-color: var(--accent-blue);
    transform: scale(1.4);
    box-shadow: 0 0 15px var(--accent-blue), 0 0 0 8px rgba(56, 189, 248, 0.2);
}

.dot:hover::after {
    background-color: rgba(56, 189, 248, 0.3);
    transform: scale(1.2);
}

.pattern-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.pattern-lines line {
    animation: patternLineGrow 0.3s ease-out forwards;
}

@keyframes patternLineGrow {
    from {
        opacity: 0;
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
    }

    to {
        opacity: 1;
        stroke-dasharray: 100;
        stroke-dashoffset: 0;
    }
}

#pattern-tracking-line {
    animation: none !important;
    opacity: 0.6;
}

.pattern-lines line {
    stroke: var(--accent-blue);
    stroke-width: 3;
    stroke-linecap: round;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Login Screen */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.login-overlay.hidden {
    display: none !important;
}

.login-card {
    background: rgba(15, 23, 42, 0.4);
    padding: 2rem;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 2px solid rgba(56, 189, 248, 0.2);
}

.login-logo {
    font-size: 3rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.login-card h2 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.login-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.login-card .btn-primary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.login-card .btn-primary[style*="accent-purple"]:hover {
    box-shadow: 0 4px 12px rgba(129, 140, 248, 0.3);
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Toasts */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 9999;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    animation: toast-in 0.3s ease-out;
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast.success {
    border-left: 4px solid var(--accent-green);
}

.toast.error {
    border-left: 4px solid var(--accent-red);
}

@keyframes toast-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* --- SaaS Landing Styles v5.0 --- */
.landing-page {
    min-height: 100vh;
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    color: var(--text-primary);
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

.landing-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 100;
}

.hero-section {
    padding: 6rem 2rem 4rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #38bdf8, #818cf8, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -3px;
    animation: fadeInDown 1s ease-out;
}

.hero-section p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 4rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* dashboard Grid Adjustment */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Urgent Repairs Widget */
.urgent-repairs-widget {
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(248, 113, 113, 0.3);
    /* Reddish border */
    background: linear-gradient(to bottom right, rgba(248, 113, 113, 0.05), rgba(30, 41, 59, 0.4));
}

.urgent-list {
    list-style: none;
    max-height: 250px;
    overflow-y: auto;
}

.urgent-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.urgent-item:last-child {
    border-bottom: none;
}

.urgent-info h4 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.urgent-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.urgent-days {
    background: rgba(248, 113, 113, 0.2);
    color: var(--accent-red);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.urgent-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 1rem 0;
    font-style: italic;
}

.feature-tile {
    padding: 3rem 2rem;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.feature-tile:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: #38bdf8;
}

.feature-tile h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.feature-tile p {
    color: #94a3b8;
    line-height: 1.7;
    font-size: 0.95rem;
}

.landing-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 20px 40px -10px rgba(56, 189, 248, 0.5);
    transition: all 0.3s;
}

.landing-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(56, 189, 248, 0.7);
}

.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background:
        radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.1) 0, transparent 40%),
        radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.1) 0, transparent 40%),
        radial-gradient(at 50% 100%, rgba(99, 102, 241, 0.1) 0, transparent 40%);
    pointer-events: none;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-footer {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

/* =======================
   MODAL SYSTEM
   ======================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background-color: var(--bg-card);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(56, 189, 248, 0.2);
}

.modal.large-modal {
    max-width: 900px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.modal-header button,
.close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.modal-header button:hover,
.close-modal:hover {
    color: var(--accent-red);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg-dark);
    border: 2px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.section-title {
    color: var(--accent-blue);
    font-size: 1.1rem;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.readonly-input {
    background-color: rgba(56, 189, 248, 0.05) !important;
    cursor: not-allowed;
}

/* dashboard REORGANIZATION */

/* =========================================
   dashboard REORGANIZATION (v6.1 - No Chart)
   ========================================= */

/* Use 2 Columns: Main Content (Table) vs Sidebar */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: stretch;
    /* Stretch to fill height */
}

/* Responsive: Stack on mobile */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Main Content Panel (Holds Table) */
.main-dashboard-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 450px;
}

/* Remove default table container styling when inside panel */
.table-container.header-less {
    margin-top: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Adjust header inside panel */
.main-dashboard-content .card-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* =======================
   PRINT STYLES (v6.0)
   Optimized for A4 / Thermal / Laser
   ======================= */
@media print {

    /* Hide everything by default */
    body * {
        visibility: hidden;
    }

    /* Show only the receipt container */
    #receipt-container,
    #receipt-container * {
        visibility: visible;
    }

    #receipt-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        background: white !important;
        color: black !important;
        font-family: 'Inter', 'Roboto', sans-serif;
    }

    /* Reset background colors for printing */
    * {
        print-color-adjust: exact !important;
        -webkit-print-color-adjust: exact !important;
    }

    .invoice-container {
        max-width: 210mm;
        /* A4 Width */
        margin: 0 auto;
        padding: 10mm;
        background: white;
    }

    /* Header Section */
    .invoice-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 2px solid #334155;
    }

    .header-left {
        display: flex;
        gap: 15px;
        align-items: center;
    }

    .receipt-logo {
        max-width: 150px;
        max-height: 80px;
        object-fit: contain;
    }

    .receipt-logo-icon {
        font-size: 32pt;
        color: #2563eb;
    }

    .shop-info h1 {
        font-size: 20pt;
        margin: 0;
        line-height: 1.1;
    }

    /* ... (unchanged) ... */

    /* Tracking (QR) */
    .tracking-section {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
    }

    .qr-box {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .qr-code {
        width: 100px;
        /* Increased for better scanning */
        height: 100px;
        padding: 5px;
        border: 1px solid #e2e8f0;
    }

    /* ... */

    /* Terms */
    .terms-section {
        font-size: 8px;
        /* User requested 8px */
        color: #64748b;
        margin-bottom: 40px;
        padding-top: 10px;
        border-top: 1px dotted #cbd5e1;
        text-align: justify;
        line-height: 1.2;
    }

    .terms-section p {
        margin-bottom: 4px;
    }

    .terms-section ul {
        margin-top: 2px;
        padding-left: 15px;
    }

    /* Signature Area */
    .signature-section {
        display: flex;
        justify-content: space-around;
        gap: 40px;
    }

    .sig-box {
        flex: 1;
        text-align: center;
    }

    .sig-line {
        border-top: 1px solid #334155;
        margin-bottom: 5px;
    }

    .sig-box p {
        font-size: 9pt;
        color: #475569;
        font-weight: 600;
    }
}

/* Plan Badge Styles */
.plan-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    width: 100%;
    margin-top: 10px;
}

.plan-badge.premium {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, rgba(74, 222, 128, 0.0) 100%);
    border-color: rgba(74, 222, 128, 0.3);
    color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.plan-badge.free {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.05) 0%, rgba(56, 189, 248, 0.0) 100%);
}

.plan-badge.limit-reached {
    border-color: rgba(248, 113, 113, 0.3);
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.05) 0%, rgba(248, 113, 113, 0.0) 100%);
}

.plan-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.75rem;
}

.plan-name {
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.plan-usage {
    color: var(--text-primary);
    font-weight: 700;
}

.plan-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.plan-progress-bar {
    height: 100%;
    background: var(--accent-blue);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.limit-reached .plan-progress-bar {
    background: var(--accent-red);
}

.plan-status-text {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: right;
}

.limit-reached .plan-status-text {
    color: var(--accent-red);
}

/* TG Manager Pro Logo Styles - Replaced by SVG */
.app-logo {
    display: block;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.app-logo:hover {
    transform: scale(1.05);
}

/* --- PRO dashboard STYLES --- */

/* Glass Panel Effect */
.glass-panel {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* Enhanced Stats Grid (Overrides) */
.stat-card.glass-panel {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
}

.stat-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stat-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.2;
}

.stat-icon-wrapper.blue {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
}

.stat-icon-wrapper.blue::after {
    background: currentColor;
}

.stat-icon-wrapper.yellow {
    background: rgba(250, 204, 21, 0.1);
    color: #facc15;
}

.stat-icon-wrapper.yellow::after {
    background: currentColor;
}

.stat-icon-wrapper.green {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

.stat-icon-wrapper.green::after {
    background: currentColor;
}

.stat-icon-wrapper.purple {
    background: rgba(192, 132, 252, 0.1);
    color: #c084fc;
}

.stat-icon-wrapper.purple::after {
    background: currentColor;
}

.stat-content {
    min-width: 0;
    flex: 1;
}

.stat-content h3 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-content .stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-trend {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-trend.positive {
    color: var(--accent-green);
}

.stat-trend.neutral {
    color: var(--text-secondary);
}

/* dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Charts */
.chart-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 350px;
}

.chart-container.mini {
    min-height: 250px;
}

.card-header {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.canvas-wrapper {
    flex: 1;
    position: relative;
    width: 100%;
}

.canvas-wrapper.doughnut {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Activity Feed */
.Activity-feed {
    flex: 1;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.Activity-list {
    list-style: none;
    overflow-y: auto;
    max-height: 300px;
    padding-right: 5px;
}

/* Custom Scrollbar for feed */
.Activity-list::-webkit-scrollbar {
    width: 6px;
}

.Activity-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.Activity-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.Activity-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.Activity-item:last-child {
    border-bottom: none;
}

.Activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.Activity-icon.info {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
}

.Activity-icon.success {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

.Activity-icon.warning {
    background: rgba(250, 204, 21, 0.1);
    color: #facc15;
}

.Activity-details h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.Activity-details p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.Activity-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-left: auto;
    white-space: nowrap;
}

/* --- PRO dashboard STYLES --- */

/* Glass Panel Effect */
.glass-panel {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* Enhanced Stats Grid (Overrides) */
.stat-card.glass-panel {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
}

.stat-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stat-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.2;
}

.stat-icon-wrapper.blue {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
}

.stat-icon-wrapper.blue::after {
    background: currentColor;
}

.stat-icon-wrapper.yellow {
    background: rgba(250, 204, 21, 0.1);
    color: #facc15;
}

.stat-icon-wrapper.yellow::after {
    background: currentColor;
}

.stat-icon-wrapper.green {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

.stat-icon-wrapper.green::after {
    background: currentColor;
}

.stat-icon-wrapper.purple {
    background: rgba(192, 132, 252, 0.1);
    color: #c084fc;
}

.stat-icon-wrapper.purple::after {
    background: currentColor;
}

.stat-content h3 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-content .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.stat-trend {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-trend.positive {
    color: var(--accent-green);
}

.stat-trend.neutral {
    color: var(--text-secondary);
}

/* dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Charts */
.chart-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 350px;
}

.chart-container.mini {
    min-height: 250px;
}

.card-header {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.canvas-wrapper {
    flex: 1;
    position: relative;
    width: 100%;
}

.canvas-wrapper.doughnut {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Activity Feed */
.Activity-feed {
    flex: 1;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.Activity-list {
    list-style: none;
    overflow-y: auto;
    max-height: 300px;
    padding-right: 5px;
}

/* Custom Scrollbar for feed */
.Activity-list::-webkit-scrollbar {
    width: 6px;
}

.Activity-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.Activity-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.Activity-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.Activity-item:last-child {
    border-bottom: none;
}

.Activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.Activity-icon.info {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
}

.Activity-icon.success {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

.Activity-icon.warning {
    background: rgba(250, 204, 21, 0.1);
    color: #facc15;
}

.Activity-details h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.Activity-details p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.Activity-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-left: auto;
    white-space: nowrap;
}

/* ======================
   FINANCE MODULE STYLES
   ====================== */
#view-finance .tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

#view-finance .tab-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

#view-finance .tab-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

#view-finance .tab-link.active {
    color: var(--accent-color);
    background: rgba(56, 189, 248, 0.1);
    font-weight: 600;
}

#view-finance .tab-content,
#view-billing .tab-content {
    display: none;
}

#view-finance .tab-content.active,
#view-billing .tab-content.active {
    display: block;
}

/* Billing Tabs consistency */
#view-billing .tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

#view-billing .tab-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#view-billing .tab-link i {
    font-size: 1.1rem;
}

#view-billing .tab-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

#view-billing .tab-link.active {
    color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.1);
    font-weight: 600;
}

/* Pending Billing Items */
.pending-billing-item {
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pending-billing-item:hover {
    background: rgba(56, 189, 248, 0.08) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    transform: translateX(4px);
}

.pending-billing-item.selected {
    background: rgba(56, 189, 248, 0.15) !important;
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

/* AFIP simulation indicators */
.status-badge.simulada {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.sim-warning-banner {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #d8b4fe;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    animation: sim-pulse 2s infinite ease-in-out;
}

@keyframes sim-pulse {
    0% { border-color: rgba(168, 85, 247, 0.3); box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
    50% { border-color: rgba(168, 85, 247, 0.6); box-shadow: 0 0 10px 0 rgba(168, 85, 247, 0.2); }
    100% { border-color: rgba(168, 85, 247, 0.3); box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

/* ============================================
   MODULE DE FINANZAS v2.0
   Sistema de caja diaria profesional
   ============================================ */

/* Estado de Caja */
.cash-status-box {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.cash-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cash-status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cash-status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-red);
    animation: none;
}

.cash-status-box.open .cash-status-dot {
    background: var(--accent-green);
    animation: cashPulse 2s infinite;
}

@keyframes cashPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}

.cash-status-indicator span {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.cash-status-box p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Botones de caja */
.cash-actions {
    display: flex;
    gap: 10px;
}

.cash-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.btn-success {
    background: var(--accent-green);
    color: #0d1218;
}

.btn-success:hover {
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--accent-red);
    color: #fff;
}

.btn-danger:hover {
    box-shadow: 0 0 15px rgba(248, 113, 113, 0.4);
    transform: translateY(-2px);
}

/* Resumen de Caja Diaria */
.cash-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .cash-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cash-summary-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s;
}

.cash-summary-card:hover {
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
}

.cash-summary-card.income {
    border-left: 3px solid var(--accent-green);
}

.cash-summary-card.expense {
    border-left: 3px solid var(--accent-red);
}

.cash-summary-card.total {
    border-left: 3px solid var(--accent-blue);
}

.cash-summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-secondary);
}

.cash-summary-card.income .cash-summary-icon {
    background: rgba(74, 222, 128, 0.15);
    color: var(--accent-green);
}

.cash-summary-card.expense .cash-summary-icon {
    background: rgba(248, 113, 113, 0.15);
    color: var(--accent-red);
}

.cash-summary-card.total .cash-summary-icon {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
}

.cash-summary-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cash-summary-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cash-summary-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.cash-summary-card.income .cash-summary-value {
    color: var(--accent-green);
}

.cash-summary-card.expense .cash-summary-value {
    color: var(--accent-red);
}

.cash-summary-card.total .cash-summary-value {
    color: var(--accent-blue);
}

/* Tabla de Movimientos */
.cash-movements-count {
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
}

#cash-table-container {
    position: relative;
    min-height: 200px;
}

/* Estado vacío */
.cash-empty-state {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.cash-empty-state i {
    font-size: 48px;
    color: var(--text-secondary);
    opacity: 0.3;
    margin-bottom: 16px;
}

.cash-empty-state p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 4px 0;
}

.cash-empty-state span {
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Estado de carga */
.cash-loading-state {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 16px;
}

.cash-loading-state i {
    font-size: 32px;
    color: var(--accent-blue);
}

.cash-loading-state span {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Estilos antiguos - Deprecados */
/* 
.cash-status-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-red);
}

.cash-status-box.open {
    border-left-color: var(--accent-green);
}

.btn-success {
    background: var(--accent-green);
    color: #0d1218;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger {
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
*/

/* modal specific tweaks */
.modal-body select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
}

.modal-body select:focus {
    border-color: var(--accent-color);
}

/* Indicador de tipo de transacción */
.transaction-type-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.transaction-type-indicator.income {
    background: rgba(74, 222, 128, 0.15);
    color: var(--accent-green);
}

.transaction-type-indicator.expense {
    background: rgba(248, 113, 113, 0.15);
    color: var(--accent-red);
}

/* Inputs mejorados */
.modal-body input[type="number"] {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    padding: 16px;
}

.modal-body input[type="number"]::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Activity Feed */
.Activity-feed {
    max-height: 400px;
    overflow-y: auto;
}

.Activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.Activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.Activity-item:last-child {
    border-bottom: none;
}

.Activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.Activity-icon.blue {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-blue);
}

.Activity-icon.green {
    background: rgba(74, 222, 128, 0.1);
    color: var(--accent-green);
}

.Activity-icon.yellow {
    background: rgba(250, 204, 21, 0.1);
    color: var(--accent-yellow);
}

.Activity-icon.red {
    background: rgba(248, 113, 113, 0.1);
    color: var(--accent-red);
}

.Activity-icon.purple {
    background: rgba(129, 140, 248, 0.1);
    color: var(--accent-purple);
}

.Activity-info {
    flex: 1;
}

.Activity-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.Activity-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.Activity-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

/* =============================
   LANDING PAGE v8.0 STYLES
   ============================= */
.landing-nav {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

.nav-content {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: none;
    /* Hidden on mobile by default */
}

@media (min-width: 768px) {
    .nav-links a {
        display: block;
    }
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.btn-login-nav {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-login-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Section New */
.hero-section-new {
    padding-top: 120px;
    padding-bottom: 80px;
    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.badge-new {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-blue);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: inline-block;
    border: 1px solid rgba(56, 189, 248, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn-primary-lg {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    color: white !important;
    border: none;
    padding: 1.25rem 2.75rem;
    font-size: 1.15rem;
    font-weight: 900;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.8), 0 0 80px rgba(56, 189, 248, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-primary-lg:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 50px rgba(56, 189, 248, 1), 0 0 100px rgba(56, 189, 248, 0.6);
    filter: brightness(1.2);
}

.btn-primary-lg::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: button-shimmer 3s infinite;
}

.btn-primary-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
}

.pulsate {
    animation: pulse-btn 2s infinite;
}

@keyframes pulse-btn {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(56, 189, 248, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

@keyframes button-shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.btn-whatsapp-lg {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-whatsapp-lg:hover {
    border-color: #25D366;
    color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

.btn-secondary-lg {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary-lg:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-oro {
    width: 100%;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: white;
    border: none;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-oro:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.hero-disclaimer {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Mockup */


.nav-logo img {
    height: 60px !important;
    /* Increased from 40px */
    transition: transform 0.3s;
}

.nav-logo:hover img {
    transform: scale(1.1);
}

/* ... */





.floating-badge {
    position: absolute;
    background: rgba(15, 23, 42, 0.4);
    border: 2px solid rgba(56, 189, 248, 0.2);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    animation: float 4s ease-in-out infinite;
}

.badge-1 {
    top: 20%;
    right: -20px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 20%;
    left: -20px;
    animation-delay: 2s;
}

.badge-1 i {
    color: var(--accent-green);
}

.badge-2 i {
    color: var(--accent-yellow);
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Social Proof */
.social-proof {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.social-proof p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    color: var(--text-primary);
    font-weight: 600;
    opacity: 0.8;
}

/* Benefits */
.benefits-section {
    padding: 6rem 0;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: rgba(15, 23, 42, 0.4);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid rgba(56, 189, 248, 0.2);
    transition: transform 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.icon-box.blue {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-blue);
}

.icon-box.green {
    background: rgba(74, 222, 128, 0.1);
    color: var(--accent-green);
}

.icon-box.purple {
    background: rgba(129, 140, 248, 0.1);
    color: var(--accent-purple);
}

.icon-box.yellow {
    background: rgba(250, 204, 21, 0.1);
    color: var(--accent-yellow);
}

.benefit-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Story Section */
.story-section {
    padding: 6rem 2rem;
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('https://images.unsplash.com/photo-1591196153041-34d49a609d13?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-text h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.story-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #cbd5e1;
}

/* Steps Section */
.steps-section {
    padding: 6rem 0;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.steps-section h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.step-item {
    position: relative;
    padding: 2rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--accent-blue);
    color: var(--bg-dark);
    font-weight: 800;
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.step-item h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.step-item p {
    color: var(--text-secondary);
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 10rem 2rem;
    /* Increased padding for more "air" */
    text-align: center;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Absolute centering of children */
    gap: 2.5rem;
}

.final-cta h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.final-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    max-width: 700px;
}

/* Large Buttons - High Impact */
.btn-primary-lg {
    background: var(--accent-blue);
    color: var(--bg-dark);
    border: none;
    padding: 1.25rem 3.5rem;
    border-radius: 14px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
    /* Blue Glow */
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-primary-lg:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.8);
    filter: brightness(1.1);
}

.btn-secondary-lg {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.25rem 3.5rem;
    border-radius: 14px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-secondary-lg:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
    transform: translateY(-4px);
}

.final-cta .small-text {
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.final-cta a {
    color: var(--accent-blue);
    text-decoration: none;
}

.landing-footer-new {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1,
.hero-content p,
.hero-buttons,
.hero-disclaimer {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-content h1 {
    animation-delay: 0.1s;
}

.hero-content .hero-sub {
    animation-delay: 0.3s;
}

.hero-buttons {
    animation-delay: 0.5s;
}

.hero-disclaimer {
    animation-delay: 0.7s;
}

.benefit-card {
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.1);
}

/* Pricing Section */
.pricing-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
    align-items: center;
    /* Align cards vertically */
}

.pricing-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.pricing-card.popular {
    background: rgba(56, 189, 248, 0.05);
    /* Very subtle tint */
    border: 2px solid var(--accent-blue);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-blue);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.4);
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-card .plan-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
}

.features-list li {
    margin-bottom: 0.8rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.features-list li i {
    color: var(--accent-blue);
    font-size: 1rem;
}

.full-width {
    width: 100%;
}

/* Login/Register modal Extensions */
.login-card {
    transition: all 0.3s ease;
    overflow-y: auto;
    max-height: 90vh;
}

.input-group {
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    padding: 0 0.8rem;
    transition: border-color 0.2s;
}

.input-group:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.input-group input {
    border: none !important;
    background: transparent !important;
    padding-left: 0 !important;
    box-shadow: none !important;
    height: 48px;
}

.input-group input:focus {
    box-shadow: none !important;
}

.full-width {
    width: 100%;
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem !important;
        width: 95% !important;
    }
}

/* Contact Section */
.contact-section {
    padding: 6rem 1rem;
    background: linear-gradient(0deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.contact-container {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 4rem 2rem;
    max-width: 800px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out forwards;
    /* Simple enter animation */
}

/* Decorative glow behind */
.contact-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    color: #fff;
}

.contact-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.whatsapp-badge {
    width: 80px;
    height: 80px;
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.2);
    animation: float 3s ease-in-out infinite;
}

.contact-content span {
    color: #e2e8f0;
    font-size: 1.2rem;
    font-weight: 500;
}

.btn-whatsapp-glow {
    background: #25D366;
    color: #fff;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-whatsapp-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(37, 211, 102, 0.8);
    background: #22c35e;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .landing-nav {
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.8rem 0;
        /* Compact nav */
    }

    .nav-logo img {
        height: 36px !important;
        /* Smaller logo */
    }

    /* HERO MOBILE OPTIMIZATIONS (CRITICAL COMPACT MODE) */
    .hero-section-new {
        display: flex;
        flex-direction: column !important;
        padding-top: 60px !important;
        /* Minimal top padding to clear nav */
        padding-bottom: 12px !important;
        /* Reduced to 12px */
        padding-left: 12px !important;
        padding-right: 12px !important;
        gap: 0.5rem;
        /* Minimal gap */
        text-align: center;
        overflow: visible !important;
        min-height: auto !important;
        height: auto !important;
    }

    .hero-content {
        width: 100%;
        padding-right: 0;
        margin-bottom: 6px;
        /* Reduced to 6px */
    }

    .hero-content h1 {
        font-size: 28px !important;
        /* Requested 28px */
        line-height: 1.2;
        margin-bottom: 8px;
    }

    .hero-content .hero-sub {
        font-size: 14px !important;
        /* Requested 14px */
        margin-bottom: 12px;
        line-height: 1.4;
        padding: 0 5px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
        justify-content: center;
        align-items: center;
        margin-bottom: 6px;
        /* Reduced to 6px */
    }

    .btn-primary-lg,
    .btn-whatsapp-lg {
        width: 100% !important;
        justify-content: center;
        text-align: center;
        padding: 12px !important;
        /* Compact padding */
        font-size: 1rem;
        height: auto;
    }

    /* HERO IMAGE FIXES FOR MOBILE */
    .hero-image {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: -8px;
        /* Negative margin to pull image up */
        overflow: visible !important;
    }

    .mockup-container {
        width: 100%;
        max-width: 100% !important;
        margin: 0 auto;
        transform: none !important;
        display: flex;
        justify-content: center;
        overflow: visible !important;
    }

    .dashboard-preview {
        width: 100% !important;
        max-width: 300px !important;
        /* Requested 300px */
        height: auto !important;
        transform: none !important;
        object-fit: contain;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    }

    .mockup-container:hover .dashboard-preview {
        transform: none !important;
    }

    .badge-1,
    .badge-2 {
        display: none;
    }

    .benefits-section,
    .steps-section,
    .story-section {
        padding: 2.5rem 1rem;
        /* Reduced grouping padding */
    }

    .benefits-grid,
    .steps-grid,
    .pricing-grid {
        gap: 1.5rem;
    }

    /* PRICING MOBILE */
    .pricing-section {
        padding: 3rem 1rem;
    }

    .pricing-card.popular {
        transform: none !important;
        /* Reset desktop scale */
        margin: 1rem 0;
    }

    .pricing-card.popular:hover {
        transform: none !important;
    }
}

/* FIX HERO IMAGE REAL - VISUAL IMPACT */

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
    overflow: visible !important;
}

.mockup-container {
    position: relative;
    width: 100%;
    max-width: 900px !important;
    display: flex;
    justify-content: flex-start;
    /* Kept flex-start */
    align-items: center;
    margin-left: auto;
    transform: none !important;
    overflow: visible !important;
}

.dashboard-preview {
    width: 115% !important;
    /* Visual Impact: 115% width */
    max-width: 700px;
    /* Constrained max-width */
    height: auto !important;
    object-fit: contain;

    border-radius: 20px;
    display: block;

    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1);

    background: #000;

    transform: translateX(40px);
    /* Shift for balance */
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mockup-container:hover .dashboard-preview {
    transform: translateX(35px) scale(1.02);
    /* Subtle interaction */
}

/* DESKTOP GRID LAYOUT OVERRIDE */
@media (min-width: 992px) {
    .hero-section-new {
        display: grid;
        grid-template-columns: 1.1fr 1fr;
        /* Kept balanced grid */
        align-items: center;
        gap: 60px;
        padding-right: 80px;
        /* Kept padding */
        overflow: visible;
        position: relative;
    }

    .hero-content {
        min-width: 0;
        padding-right: 0;
        position: relative;
        z-index: 10;
    }

    .hero-image {
        justify-content: flex-start;
    }
}

/* Auth modal Redesign */
.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.auth-grid .form-group {
    margin-bottom: 0;
}

/* Compact Inputs for Register Form */
#register-form .form-input {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 12px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

#register-form .form-input:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2);
}

#register-form label {
    font-size: 0.8rem;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

/* Ensure Button is clear of grid */
#btn-register-submit {
    margin-top: 1.5rem !important;
}

/* modal Content Adjustments for Register */
.login-card:has(#auth-view-register:not(.hidden)) {
    max-width: 550px !important;
}

/* Fallback if :has not supported or for general slightly wider modal if needed when register is active? 
   Actually, the user said "compacto". 450px is fine for 2 cols of small inputs. 

/* JS Fallback for modal Width */
.login-card.register-mode {
    max-width: 550px !important;
}


/* Sidebar Footer Redesign Refined */
.sidebar-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.2rem 1.5rem;
    background: rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-info-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.user-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.plan-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    width: fit-content;
}

.footer-actions {
    margin-top: 5px;
}


/* Gold Gradient Button with High Conversion Glow */
.btn-pro-gold {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #D4AF37, #F9D71C);
    color: #000;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    /* Glow Effect */
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.btn-pro-gold:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
}

/* Auto- Shake Animation for Free Plan */
@keyframes subtle-shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-2px);
    }

    50% {
        transform: translateX(2px);
    }

    75% {
        transform: translateX(-2px);
    }

    100% {
        transform: translateX(0);
    }
}

.shake-animation {
    animation: subtle-shake 0.4s ease-in-out infinite;
    animation-delay: 5s;
    /* Wait before shaking */
    animation-iteration-count: 2;
    /* Shake twice then wait */
    /* Note: Infinite iteration with pause requires complex keyframes or JS. 
       Let's stick to a repeating shake with a long pause built into the keyframe or just standíard infinite.
       Actually, `animation-delay` only applies to the start. 
       Better to use a keyframe with a long pause at the end. */
}

@keyframes intermittent-shake {

    0%,
    80% {
        transform: translateX(0);
    }

    /* Long pause */
    82% {
        transform: translateX(-2px);
    }

    84% {
        transform: translateX(2px);
    }

    86% {
        transform: translateX(-2px);
    }

    88% {
        transform: translateX(2px);
    }

    90% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(0);
    }
}

.shake-animation {
    animation: intermittent-shake 4s infinite;
}

/* Mini Logout Button */
.btn-logout-mini {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}


.btn-logout-mini:hover {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
}

/* =========================================
   SUPER-ADMIN THEME & dashboard
   ========================================= */
body.admin-mode {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    /* Deep Slate */
    color: #f8fafc;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Admin Header */
.admin-header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Admin KPIs */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--kpi-color, #3b82f6);
}

.kpi-title {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: #f8fafc;
}

/* Plan Editor modal */
.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.admin-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Upgrade modal Specifics */
.modal-upgrade {
    border: 2px solid #D4AF37;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
    max-width: 500px;
}

.upgrade-benefits-list li {
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s;
}

.upgrade-benefits-list li:hover {
    background: rgba(255, 255, 255, 0.05);
}

.modal-upgrade .btn-upgrade-gold {
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   ORDERS DE SERVICIO - ESTILOS FINALES APROBADOS (tkt-*)
   Versin A4 + Trmica 80mm  Basado en preview aprobado
   ═══════════════════════════════════════════════════════════════════════ */

/* ── A4 PAPER ─────────────────────────────────────────────────────────── */
.tkt-paper {
    background: white;
    color: #0f172a;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 10pt;
    line-height: 1.4;
    padding: 30px 45px 30px;
    width: 100%;
    box-sizing: border-box;
    min-height: 100vh;
}

/* ── HEADER ─────────────────────────────────────────────────────────────── */
.tkt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 6px;
}

.tkt-branding {
    flex: 1;
}

.tkt-qr-block {
    text-align: center;
}

.tkt-qr-frame {
    width: 77px;
    height: 77px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.tkt-qr-frame img {
    display: block;
}

.tkt-qr-label {
    font-size: 6.5pt;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 4px;
}

/* ── TRACKING BANNER ─────────────────────────────────────────────────────── */
.tkt-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 6px 10px;
    margin-bottom: 6px;
}

.tkt-banner-text h4 {
    margin: 0 0 2px 0;
    font-size: 7.5pt;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.tkt-banner-text p {
    margin: 0;
    font-size: 9.5pt;
    font-weight: 500;
    color: #1e293b;
}

.tkt-banner-text p strong {
    font-weight: 700;
}

.tkt-codes {
    display: flex;
    gap: 10px;
}

.tkt-code-pill {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 5px 12px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tkt-code-pill label {
    display: block;
    font-size: 6.5pt;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1px;
}

.tkt-code-pill span {
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-size: 10.5pt;
    font-weight: 800;
    color: #0f172a;
}

.tkt-code-accent {
    border-color: #38bdf8 !important;
}

.tkt-code-accent label {
    color: #0ea5e9 !important;
}

/* ── DATA TABLE ──────────────────────────────────────────────────────────── */
.tkt-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 6px;
    font-size: 9pt;
}

.tkt-table th,
.tkt-table td {
    border: 1px solid #e2e8f0;
    padding: 4px 8px;
    text-align: left;
}

.tkt-table-header {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    text-align: center !important;
    font-weight: 800 !important;
    font-size: 9pt !important;
    text-transform: uppercase;
}

.tkt-table th {
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 8pt;
    width: 28%;
}

.tkt-table td {
    color: #1e293b;
    font-weight: 500;
}

/* ── FINANCIALS ──────────────────────────────────────────────────────────── */
.tkt-financials-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.tkt-financials {
    width: 260px;
    border: 1px solid #e2e8f0;
    border-collapse: collapse;
    font-size: 9pt;
}

.tkt-financials td {
    padding: 3px 8px;
    border-top: 1px solid #f1f5f9;
    color: #1e293b;
}

.tkt-financials td:last-child {
    text-align: right;
    font-weight: 600;
}

.tkt-fin-red {
    color: #dc2626 !important;
}

.tkt-fin-total td {
    background: #f8fafc;
    font-weight: 900 !important;
    font-size: 10pt !important;
    border-top: 2px solid #0f172a !important;
    color: #0f172a !important;
}

/* ── TERMS ────────────────────────────────────────────────────────────────── */
.tkt-terms {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #ef4444;
    padding: 8px 10px;
    font-size: 7pt;
    color: #475569;
    text-align: justify;
    line-height: 1.3;
    margin-bottom: 10px;
    page-break-inside: avoid;
}

.tkt-terms strong {
    color: #1e293b;
}

/* ── SIGNATURES ────────────────────────────────────────────────────────────── */
.tkt-signatures {
    display: flex;
    justify-content: space-around;
    padding-top: 25px;
    page-break-inside: avoid;
}

.tkt-sig-line {
    width: 220px;
    border-top: 1px solid #334155;
    padding-top: 6px;
    text-align: center;
    font-size: 8.5pt;
    font-weight: 600;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════════════════════════════════
   THERMAL 80mm STYLES
   ══════════════════════════════════════════════════════════════════════════ */
.tkt-thermal {
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    font-size: 9pt;
    color: #000;
    background: white;
    width: 76mm;
    max-width: 76mm;
    padding: 0mm 4mm 8mm;
    /* Removed top padding */
    box-sizing: border-box;
    margin: 0 auto;
}

.tkt-th-header {
    text-align: center;
    margin-bottom: 4px;
}

.tkt-th-shopname {
    font-size: 13pt;
    font-weight: 900;
    color: #000;
    margin-bottom: 2px;
}

.tkt-th-contact {
    font-size: 7pt;
    color: #555;
}

.tkt-th-divider {
    border-top: 1px dashed #555;
    margin: 5px 0;
}

.tkt-th-qr-section {
    text-align: center;
    margin: 6px 0;
}

.tkt-th-qr {
    display: block;
    margin: 0 auto 4px;
}

.tkt-th-qr-label {
    font-size: 7pt;
    font-weight: 800;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.tkt-th-qr-url {
    font-size: 7pt;
    color: #555;
    margin-bottom: 5px;
}

.tkt-th-code-box {
    display: inline-block;
    border: 1.5px solid #000;
    border-radius: 3px;
    padding: 3px 12px;
    margin-top: 4px;
}

.tkt-th-code-label {
    font-size: 6.5pt;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    letter-spacing: 0.5px;
}

.tkt-th-code-value {
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-size: 14pt;
    font-weight: 900;
    color: #000;
    letter-spacing: 2px;
}

.tkt-th-title {
    font-size: 8pt;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    margin: 4px 0 3px;
}

.tkt-th-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 8pt;
}

.tkt-th-table th {
    text-align: left;
    font-weight: 700;
    padding: 2px 4px;
    width: 35%;
    vertical-align: top;
}

.tkt-th-table td {
    padding: 2px 4px;
    vertical-align: top;
    word-break: break-word;
}

.tkt-th-fin {
    width: 100%;
    border-collapse: collapse;
    font-size: 8.5pt;
}

.tkt-th-fin td {
    padding: 2px 4px;
}

.tkt-th-fin td:last-child {
    text-align: right;
    font-weight: 700;
}

.tkt-th-fin-total td {
    font-size: 11pt !important;
    font-weight: 900 !important;
    border-top: 1.5px solid #000;
    padding-top: 4px;
}

.tkt-th-terms {
    font-size: 6.5pt;
    color: #444;
    text-align: justify;
    line-height: 1.4;
    margin: 4px 0;
}

.tkt-th-sig {
    margin-top: 20px;
    text-align: center;
}

.tkt-th-sig-line {
    display: inline-block;
    width: 160px;
    border-top: 1px solid #000;
    padding-top: 4px;
    font-size: 7.5pt;
    font-weight: 600;
    text-transform: uppercase;
}

/* ── PRINT MEDIA RULES ────────────────────────────────────────────────────── */
@media print {
    body>*:not(#receipt-container) {
        display: none !important;
    }

    #receipt-container {
        display: block !important;
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
        z-index: 99999;
    }

    .print-thermal .tkt-thermal {
        width: 80mm;
        margin: 0;
        padding: 3mm;
    }

    .print-a4 .tkt-paper {
        padding: 0;
    }
}

/* PRINT STYLES - CLEAN TICKET */
/* PREMIUM TICKET STYLES (Service Order - A4 & Thermal) */
.ticket-paper {
    background: white;
    color: #0f172a;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    position: relative;
    overflow: hidden;
    line-height: 1.4;
}

/* Header Moderno: Logo y QR */
.ticket-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.ticket-header-modern .shop-branding {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.platform-logo {
    height: 35px;
    width: auto;
}

.shop-logo-container {
    display: flex;
    flex-direction: column;
}

.ticket-header-modern .qr-dynamic {
    text-align: right;
    background: #fff;
    padding: 5px;
    border: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ticket-header-modern .qr-dynamic img {
    width: 75px;
    height: 75px;
    display: block;
}

/* Banner de Seguimiento (Estilo G-Taller) */
.ticket-tracking-banner {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.tracking-info h4 {
    margin: 0;
    font-size: 8pt;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.tracking-info p {
    margin: 2px 0 0 0;
    font-size: 10pt;
    font-weight: 500;
    color: #334155;
}

.tracking-codes {
    display: flex;
    gap: 15px;
}

.code-box {
    text-align: right;
    background: #fff;
    padding: 4px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.code-box label {
    display: block;
    font-size: 7.5pt;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0px;
}

.code-box span {
    font-family: 'Roboto Mono', monospace;
    font-size: 10.5pt;
    font-weight: 800;
    color: #0f172a;
}

/* Grilla de Datos Compacta */
.ticket-data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 9.5pt;
}

.ticket-data-table th,
.ticket-data-table td {
    border: 1px solid #e2e8f0;
    padding: 6px 10px;
    text-align: left;
}

.ticket-data-table th {
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    width: 25%;
}

.ticket-data-table td {
    color: #1e293b;
    font-weight: 500;
}

/* Pie de Página Legal Inline */
.ticket-footer-inline {
    margin-top: 25px;
    padding: 10px;
    background: #fdfdfd;
    border: 1px dashed #e2e8f0;
    font-size: 7.5pt;
    color: #64748b;
    text-align: justify;
    line-height: 1.4;
}

/* Clean Office A4 Suppression */
.ticket-paper,
.ticket-header-modern,
.ticket-header-office-final,
.ticket-header-professional,
.ticket-header-premium {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* Rigid Blocks - Office Style */
.ticket-rigid-block {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 15px;
}

.ticket-data-grid-rigid {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.ticket-data-grid-rigid .ticket-rigid-block {
    flex: 1;
    margin-bottom: 0;
}

.ticket-block-title {
    font-size: 10pt;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 8px;
    color: #000000;
}

.ticket-field-rigid {
    display: flex;
    justify-content: space-between;
    font-size: 9.5pt;
    margin-bottom: 4px;
}

.ticket-label-rigid {
    color: #666;
    font-weight: 500;
}

.ticket-value-rigid {
    color: #000;
    font-weight: 700;
}

.ticket-section-title i {
    font-size: 0.8rem;
    color: #0f172a;
    opacity: 0.5;
}

/* Grids */
.ticket-grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.ticket-field {
    margin-bottom: 8px;
}

.ticket-label {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.ticket-value {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.6;
}

/* Highlight Box (Fault/Diagnosis) */
.ticket-highlight-box {
    background: white;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #f59e0b;
    /* Amber 500 */
    border-radius: 6px;
    padding: 12px;
}

/* Totals & Footer - Professional Layout */
.ticket-footer-rigid-layout {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 20px;
}

.ticket-financials-professional {
    width: 280px;
    border: 1px solid #ddd;
}

.ticket-financials-professional table {
    width: 100%;
    border-collapse: collapse;
}

.ticket-financials-professional td {
    padding: 6px 10px;
    font-size: 9.5pt;
    color: #000000 !important;
    /* Force black for visibility */
}

.row-total-highlight {
    background-color: #f8fafc;
    font-weight: 800;
    font-size: 11pt !important;
    border-top: 2px solid #0f172a;
    color: #000000 !important;
}

.ticket-terms-professional {
    font-size: 8pt;
    color: #333;
    text-align: justify;
    line-height: 1.3;
    margin-top: 30px;
    width: 100%;
}

.ticket-signature-grid {
    display: flex;
    justify-content: space-around;
    margin-top: 60px;
    width: 100%;
}

.signature-line {
    width: 180px;
    border-top: 1px solid #000;
    text-align: center;
    padding-top: 5px;
    font-size: 9pt;
    font-weight: 600;
}

.ticket-signatures {
    display: flex;
    justify-content: space-between;
    gap: 100px;
    margin-top: 40px;
    padding: 0 40px;
}

.ticket-sig-box {
    flex: 1;
    max-width: 220px;
    height: 60px;
    border-bottom: 1px solid #e2e8f0;
    background: transparent;
    position: relative;
}

.ticket-sig-label {
    position: absolute;
    bottom: -22px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
}

/* PRINT MEDIA QUERIES */
@media print {
    @page {
        margin: 0;
    }

    /* Minimize browser margins */

    body * {
        visibility: hidden;
    }

    #receipt-container,
    #receipt-container * {
        visibility: visible;
    }

    #receipt-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        background: white !important;
    }

    /* Force background removal for UI elements */
    .glass-panel,
    body,
    .sidebar,
    .main-content {
        background: white !important;
        box-shadow: none !important;
    }

    .sidebar,
    .top-bar,
    .modal-overlay,
    .toast-container,
    #offline-banner,
    #print-selection-modal {
        display: none !important;
    }

    /* --- A4 FORMAT --- */
    .print-a4 .ticket-paper {
        width: 210mm;
        /* A4 Width */
        min-height: 290mm;
        padding: 0;
        margin: 0 auto;
        background: white !important;
    }

    /* Force absolute white for all ticket components on A4 print */
    #print-canvas,
    #print-canvas *,
    .ticket-header-office-final,
    .ticket-header-premium,
    .ticket-header-professional {
        background: #ffffff !important;
        background-color: #ffffff !important;
        color: #000000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* --- THERMAL FORMAT (Simplified) --- */
    .print-thermal .ticket-paper {
        width: 80mm;
        padding: 5px;
        font-family: 'Consolas', monospace;
    }

    .print-thermal .ticket-header-premium {
        background: none !important;
        color: black !important;
        border-bottom: 2px dashed #000;
        flex-direction: column;
        padding: 10px 0;
        margin-bottom: 10px;
    }

    .print-thermal .ticket-header-premium h1 {
        color: black;
        font-size: 1.2rem;
    }

    .print-thermal .order-badge {
        color: black;
        font-size: 1.5rem;
    }

    .print-thermal .ticket-section {
        background: none !important;
        border: none;
        padding: 0;
        margin-bottom: 15px;
    }

    .print-thermal .ticket-section-title {
        border-bottom: 1px dashed #000;
        color: #000;
        justify-content: center;
    }

    .print-thermal .ticket-grid-split {
        display: block;
        /* Stack */
    }

    .print-thermal .ticket-row {
        margin-bottom: 5px;
    }

    .print-thermal .ticket-watermark {
        display: none;
        /* Hide watermark on thermal */
    }

    .print-thermal .ticket-highlight-box {
        border: 1px dashed #000;
        border-left: 1px dashed #000;
        /* Remove color accent */
    }

    .print-thermal .ticket-footer-grid {
        display: block;
    }

    .print-thermal .ticket-financials {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .print-thermal .ticket-signatures {
        flex-direction: column;
        gap: 15px;
    }


}

/* REPAIR FORM V2 - GRID LAYOUT */
.repair-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .repair-grid-layout {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        gap: 15px;
    }
}

.repair-col-left,
.repair-col-right {
    display: flex;
    flex-direction: column;
}

.financials-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

/* Balance Glow Effect */
.balance-active {
    color: #d97706 !important;
    font-weight: 800 !important;
    background: #fffbeb !important;
    border-color: #f59e0b !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
    transition: all 0.3s ease;
}

/* Sticky Footer */
.modal-sticky-footer {
    position: sticky;
    bottom: -20px;
    /* Offset modal padding */
    margin: 0 -20px -20px -20px;
    /* Bleed to edges */
    background: white;
    padding: 15px 20px;
    border-top: 1px solid #e2e8f0;
    text-align: right;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
    border-radius: 0 0 12px 12px;
}

/* VISUAL POLISH - REPAIR FORM (Feb 2026) */

/* 2. Visual Hierarchy */
.section-title {
    margin-top: 25px;
    /* Increased from 20px */
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 700;
}

/* No top spacing for the first title in a column */
.repair-col-left .section-title:first-child,
.repair-col-right .section-title:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* 3. Neon Balance Highlight */
.balance-active {
    font-size: 1.4rem !important;
    color: #dc2626 !important;
    /* High Contrast Red */
    background: #fef2f2 !important;
    /* Soft Red Bg */
    border: 2px solid #ef4444 !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.25) !important;
    font-weight: 800;
    text-shadow: none;
    /* Removed blur for readíability */
}

/* 4. Full Width Action Button */
.modal-sticky-footer button {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px -2px rgba(37, 99, 235, 0.3);
    transition: transform 0.1s;
}

/* 5. DARK MODE REFINEMENTS (Footer & Financials) */
.financials-row {
    background: transparent !important;
    /* Remove white box */
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    /* Subtle divider */
    padding-top: 20px;
    margin-top: 10px;
}

.financials-row label {
    color: #94a3b8;
    /* Muted text for labels */
}

.financials-row input {
    background-color: #1e293b !important;
    /* Dark Slate */
    border: 1px solid #334155 !important;
    color: white !important;
    font-weight: 600;
}

.financials-row input:focus {
    border-color: #38bdf8 !important;
    /* Cyan glow */
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

/* Balance States */
.financials-row input.balance-owing {
    color: #f87171 !important;
    /* Red 400 */
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.1) !important;
}

.financials-row input.balance-paid {
    color: #4ade80 !important;
    /* Green 400 */
    border-color: #22c55e !important;
    background-color: rgba(34, 197, 94, 0.1) !important;
}

/* modal Sticky Footer Clean up */
.modal-sticky-footer {
    background: #0f172a !important;
    /* Match modal Dark Bg */
    border-top: none !important;
    /* Handled by financials row if needed, or remove */
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2) !important;
}

/* WhatsApp Variables Pills v3.0 */
.variables-pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
    padding: 10px 0;
}

.var-pill {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    display: inline-flex;
    align-items: center;
}

.var-pill:hover {
    background: rgba(56, 189, 248, 0.2);
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.1);
}

.var-pill.highlight {
    background: rgba(250, 204, 21, 0.1);
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.3);
}

.pill-flash {
    animation: pillFlashAnim 0.3s ease-out;
}

@keyframes pillFlashAnim {
    0% {
        transform: scale(1.1);
        background: rgba(56, 189, 248, 0.4);
    }

    100% {
        transform: scale(1);
    }
}

/* Gradient Save Button */
.modal-sticky-footer button {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%) !important;
    /* Blue to Cyan */
    border: none;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-sticky-footer button:hover {
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
    transform: translateY(-1px);
}

/* AI Streaming & UX (v1.3) */
.ai-typing {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 1rem !important;
    font-size: 0.8rem;
    color: var(--accent-blue);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 5px;
    height: 5px;
    background: var(--accent-blue);
    border-radius: 50%;
    animation: typingPulse 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.pulse-pwa {
    animation: pwaPulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4);
}

@keyframes pwaPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4);
    }

    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(56, 189, 248, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

.ai-msg-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-action-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.ai-action-btn:hover {
    color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.2);
    transform: translateY(-1px);
}

.ai-action-btn i {
    font-size: 0.9rem;
}

.ai-msg-content {
    line-height: 1.6;
    word-break: break-word;
}

/* PREMIUM TICKET ADDITIONS */
.tkt-checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
}

.tkt-check-item {
    border: 1px solid #e2e8f0;
    padding: 4px 6px;
    border-radius: 3px;
    font-size: 8pt;
}

.tkt-check-item b {
    display: block;
    font-size: 7pt;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.tkt-seal {
    font-size: 7pt;
    color: #94a3b8;
    text-align: center;
    margin-top: 12px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    page-break-before: avoid;
}

.tkt-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 60pt;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    text-transform: uppercase;
    letter-spacing: 10px;
}

/* INSPECTION MODULE */
.inspection-section {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.inspection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.check-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.check-container:hover {
    color: var(--text-primary);
}

.check-container input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-blue);
    cursor: pointer;
}

/* =========================================
   WOW SERVICE - TG ASSISTANT CARD
   ========================================= */
.wow-assistant-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: wowFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.wow-assistant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-blue);
}

.wow-content {
    flex: 1;
}

.wow-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.wow-greeting {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.wow-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 700;
}

.wow-tag.trial {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.wow-tag.pro {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.wow-line {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

.wow-subline {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 4px;
    font-style: italic;
}

.wow-icon {
    font-size: 2rem;
    color: var(--accent-blue);
    opacity: 0.3;
    transform: rotate(15deg);
}

@keyframes wowFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividíad para la tarjeta Wow */
@media (max-width: 768px) {
    .wow-assistant-card {
        padding: 1rem;
    }

    .wow-icon {
        display: none;
    }
}

/* =========================================
   MOBILE RESPONSIVE IMPROVEMENTS (v12.1)
   ========================================= */

.pain-points-title {
    font-size: 2.5rem;
}

.specialization-title {
    font-size: 2.2rem;
}

@media (max-width: 768px) {

    /* Fix section headers showing as two columns */
    .section-header {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        gap: 15px !important;
        margin-bottom: 2rem !important;
    }

    /* Reduce font size for pain points title */
    .pain-points-title {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }

    /* Reduce font size for specialization title */
    .specialization-title {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }

    /* Adjust section padding for mobile */
    .pain-points-section,
    .specialization-section,
    .pricing-section {
        padding: 3rem 1.5rem !important;
    }

    /* ============================================
       MOBILE PANEL — SIDEBAR HAMBURGER MENU
       ============================================ */

    /* Sidebar oculto por defecto en mobile */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9000;
        width: 280px;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
    }

    /* Sidebar abierto */
    .sidebar.mobile-open {
        transform: translateX(0);
    }

    /* App container en columna en mobile: topbar arriba, content abajo */
    .app-container {
        flex-direction: column !important;
    }

    /* Main content ocupa todo el ancho */
    .main-content {
        margin-left: 0 !important;
        padding: 1rem !important;
        width: 100%;
        flex: 1;
    }

    /* Mobile top bar fija con hamburguesa */
    .mobile-topbar {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        padding: 0.75rem 1rem;
        position: sticky;
        top: 0;
        z-index: 8000;
        height: 56px;
    }

    .mobile-topbar .mobile-logo {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-topbar .mobile-logo img {
        height: 28px;
        filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.4));
    }

    .mobile-topbar .mobile-logo span {
        font-size: 1rem;
        font-weight: 900;
        color: white;
        letter-spacing: -0.3px;
    }

    .mobile-topbar .mobile-logo span em {
        color: #38bdf8;
        font-style: normal;
    }

    /* Botón hamburguesa */
    .btn-hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        background: rgba(56, 189, 248, 0.1);
        border: 1px solid rgba(56, 189, 248, 0.3);
        border-radius: 8px;
        width: 40px;
        height: 40px;
        cursor: pointer;
        transition: background 0.2s;
        padding: 0;
    }

    .btn-hamburger:hover,
    .btn-hamburger:active {
        background: rgba(56, 189, 248, 0.2);
    }

    .btn-hamburger span {
        display: block;
        width: 20px;
        height: 2px;
        background: #38bdf8;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Hamburger → X cuando está abierto */
    .sidebar.mobile-open~.mobile-backdrop+* .btn-hamburger span:nth-child(1),
    .btn-hamburger.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .btn-hamburger.is-open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .btn-hamburger.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Backdrop oscuro detrás del sidebar */
    .mobile-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(2px);
        z-index: 8999;
        animation: fadeIn 0.2s ease;
    }

    .mobile-backdrop.visible {
        display: block;
    }

    /* Logo del sidebar más compacto en mobile */
    .sidebar .logo {
        margin-bottom: 1.5rem !important;
    }

    .sidebar .logo img.app-logo {
        height: 30px !important;
    }

    .sidebar .logo span {
        font-size: 1rem !important;
    }

    /* Top bar original del panel oculta en mobile (reemplazada por mobile-topbar) */
    .top-bar h2 {
        font-size: 1.1rem;
    }

    .top-bar .actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Stats grid en 2 columnas en mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .micro-stats-row {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
    }

    .mini-stat-card {
        padding: 0.75rem !important;
    }

    .mini-value {
        font-size: 1rem !important;
    }

    /* Dashboard grid en columna */
    .dashboard-grid {
        flex-direction: column !important;
        display: flex !important;
    }

    .main-dashboard-content {
        width: 100% !important;
    }

    .dashboard-sidebar {
        width: 100% !important;
    }

    /* Tablas scrolleables horizontalmente */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Modal full-screen en mobile */
    .modal {
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 1rem 1rem 0 0 !important;
        max-height: 92vh !important;
    }

    .modal-overlay {
        align-items: flex-end !important;
    }

    /* Stack form rows on mobile */
    .form-row {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .form-group {
        margin-bottom: 1.25rem !important;
    }

    /* Settings Tabs Scrollable */
    .settings-tabs {
        overflow-x: auto !important;
        justify-content: flex-start !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        -webkit-overflow-scrolling: touch;
        gap: 12px !important;
        scrollbar-width: none; /* Firefox */
    }

    .settings-tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .settings-tab {
        flex: 0 0 auto !important;
        min-width: 100px !important;
        padding: 0.6rem 1rem !important;
    }

    /* Finance Status Box Mobile */
    .cash-status-box {
        flex-direction: column !important;
        gap: 15px !important;
        text-align: center !important;
        align-items: center !important;
    }

    .cash-actions {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .cash-actions button {
        width: 100% !important;
    }

    /* Modal Footer Buttons */
    .modal-footer {
        flex-direction: column-reverse !important;
        padding: 1rem !important;
    }

    .modal-footer button {
        width: 100% !important;
        margin: 0 !important;
    }

    /* Top Bar adjustments */
    .top-bar {
        padding: 1rem !important;
    }

    .top-bar h2 {
        display: none; /* Hide title locally if space is tight since mobile-topbar has it */
    }

    .top-bar .actions {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .search-box {
        width: 100% !important;
    }

    /* Stats on Dashboard */
    .stat-card {
        padding: 1rem !important;
    }

    .stat-value {
        font-size: 1.5rem !important;
    }

    /* AI Chat Panel Mobile */
    .ai-chat-panel {
        width: 100% !important;
        right: -100% !important;
    }

    .ai-chat-panel.active {
        right: 0 !important;
    }

    .ai-chat-header {
        padding: 1rem !important;
    }

    .ai-chat-messages {
        padding: 0.75rem !important;
    }
}

/* ============================================
   BILLING MODULE STYLES (v9.5)
   ============================================ */
.billing-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 20px;
    height: calc(100vh - 220px);
}

.pending-billing-panel {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    overflow: hidden;
}

.invoice-form-panel {
    padding: 1.5rem;
    overflow-y: auto;
}

.pending-billing-item {
    cursor: pointer;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.05);
}

.pending-billing-item:hover {
    background: rgba(56, 189, 248, 0.05);
    border-color: rgba(56, 189, 248, 0.2);
}

.pending-billing-item.selected {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.invoice-generator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

/* Mobile Billing Overrides */
@media (max-width: 768px) {
    .billing-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .pending-billing-panel,
    .invoice-form-panel {
        height: auto !important;
        margin-bottom: 15px;
    }

    .invoice-generator-grid {
        grid-template-columns: 1fr;
    }
    
    .invoice-generator h4 {
        font-size: 1.1rem;
    }

    #view-billing .tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    #view-billing .tab-link {
        flex: 1;
        justify-content: center;
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    #invoices-table {
        min-width: 800px; /* Ensure table doesn't squish too much */
    }
}

/* Hamburger oculto en desktop */
.btn-hamburger {
    display: none;
}

.mobile-topbar {
    display: none;
}

.mobile-backdrop {
    display: none;
}

/* ========================================
   POS - PUNTO DE VENTA PROFESIONAL v2.0
   Optimizado para ventas rápidas sin scroll
   ======================================== */

/* Layout principal: dos columnas, altura fija */
.pos-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 16px;
    height: calc(100vh - 140px);
    min-height: 500px;
}

/* Columna Izquierda: Productos */
.pos-products {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    overflow: hidden;
}

/* Header row: buscador */
.pos-header-row {
    flex-shrink: 0;
    position: relative;
}

.pos-search-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0 12px;
    transition: all 0.2s;
}

.pos-search-box:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.pos-search-box i {
    color: var(--text-secondary);
    font-size: 13px;
}

.pos-search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 8px;
    font-size: 13px;
    background: transparent;
    color: var(--text-primary);
}

.pos-search-box input::placeholder {
    color: var(--text-secondary);
}

.pos-clear-search {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.15s;
}

.pos-clear-search:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Sugerencias de búsqueda */
.pos-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.pos-search-suggestions.active {
    display: block;
}

.pos-suggestion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.pos-suggestion-item:last-child {
    border-bottom: none;
}

.pos-suggestion-item:hover {
    background: rgba(56, 189, 248, 0.1);
}

.pos-suggestion-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.pos-suggestion-model {
    font-size: 11px;
    color: var(--text-secondary);
}

.pos-suggestion-price {
    font-weight: 700;
    color: var(--accent-green);
    font-size: 13px;
}

/* Categorías compactas */
.pos-categories {
    flex-shrink: 0;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.pos-categories::-webkit-scrollbar {
    height: 4px;
}

.pos-categories::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.pos-category-btn {
    flex-shrink: 0;
    padding: 6px 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pos-category-btn:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.pos-category-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

/* Grid de productos - scrolleable vertical */
.pos-products-grid {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
    overflow-y: auto;
    padding-right: 6px;
    align-content: start;
}

.pos-products-grid::-webkit-scrollbar {
    width: 4px;
}

.pos-products-grid::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

/* Modo compacto para muchos productos */
.pos-products-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 6px;
}

.pos-products-grid.compact .pos-product-card {
    padding: 8px;
}

.pos-products-grid.compact .pos-product-name {
    font-size: 11px;
    -webkit-line-clamp: 2;
}

.pos-products-grid.compact .pos-product-price {
    font-size: 13px;
}

/* Tarjeta de producto */
.pos-product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.pos-product-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

.pos-product-card.added {
    animation: cardPop 0.3s ease;
}

@keyframes cardPop {
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.pos-product-name {
    font-weight: 600;
    font-size: 12px;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pos-product-model {
    font-size: 10px;
    color: var(--text-secondary);
}

.pos-product-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--accent-green);
    margin-top: auto;
}

.pos-product-stock {
    font-size: 10px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 3px;
}

.pos-product-stock.low {
    color: #ef4444;
}

.pos-product-add-btn {
    width: 100%;
    padding: 6px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 4px;
    color: var(--accent-blue);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 4px;
}

.pos-product-add-btn:hover {
    background: var(--accent-blue);
    color: white;
}

.pos-product-add-btn.added {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: white;
}

.pos-product-add-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Badge de stock */
.pos-stock-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.pos-stock-badge.high {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.pos-stock-badge.medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.pos-stock-badge.low {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    animation: pulse 2s infinite;
}

/* Empty state productos */
.pos-product-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-secondary);
    text-align: center;
    grid-column: 1 / -1;
}

.pos-product-empty i {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 12px;
}

.pos-product-empty p {
    font-size: 14px;
    margin-bottom: 4px;
}

.pos-product-empty span {
    font-size: 12px;
    opacity: 0.7;
}

/* Resultados counter */
.pos-results-counter {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    padding: 4px;
}

.pos-load-more-container {
    padding: 8px;
    text-align: center;
}

.pos-load-more-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 11px;
    transition: all 0.15s;
}

.pos-load-more-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

/* ==============================
   CARRO - COLUMNA DERECHA STICKY
   ============================== */

.pos-cart {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 0;
}

.pos-cart-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, transparent 100%);
}

.pos-cart-header h3 {
    margin: 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pos-cart-header h3 i {
    color: var(--accent-blue);
}

.pos-cart-count {
    background: var(--accent-blue);
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

/* Items del carrito */
.pos-cart-items {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 10px;
}

.pos-cart-items::-webkit-scrollbar {
    width: 3px;
}

.pos-cart-items::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.pos-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
    color: var(--text-secondary);
    text-align: center;
}

.pos-cart-empty i {
    font-size: 36px;
    opacity: 0.3;
    margin-bottom: 8px;
}

.pos-cart-empty p {
    font-size: 13px;
    margin: 0;
}

.pos-cart-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255,255,255,0.02);
    border-radius: 6px;
    margin-bottom: 6px;
}

.pos-cart-item:last-child {
    margin-bottom: 0;
}

.pos-cart-item-info {
    flex: 1;
    min-width: 0;
}

.pos-cart-item-name {
    font-weight: 600;
    font-size: 12px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pos-cart-item-price {
    font-size: 10px;
    color: var(--text-secondary);
}

.pos-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 2px;
}

.pos-cart-item-qty button {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.15s;
}

.pos-cart-item-qty button:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

.pos-cart-item-qty span {
    min-width: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
}

.pos-cart-item-subtotal {
    font-weight: 700;
    font-size: 12px;
    color: var(--accent-green);
    min-width: 60px;
    text-align: right;
}

.pos-cart-item-remove {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    font-size: 11px;
    transition: all 0.15s;
}

.pos-cart-item-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Footer del carrito */
.pos-cart-footer {
    flex-shrink: 0;
    padding: 12px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-dark);
}

/* Totales */
.pos-totals {
    margin-bottom: 10px;
}

.pos-subtotal {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.pos-total {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    font-weight: 800;
    margin-top: 4px;
}

.pos-total span:first-child {
    font-size: 13px;
    color: var(--text-primary);
}

.pos-total span:last-child {
    font-size: 20px;
    color: #10b981;
}

/* Payment Methods */
.pos-payment-methods {
    margin-bottom: 10px;
}

.pos-payment-buttons {
    display: flex;
    gap: 6px;
}

.pos-payment-btn {
    flex: 1;
    padding: 10px 4px;
    background: rgba(255,255,255,0.03);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.15s;
}

.pos-payment-btn:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--accent-blue);
}

.pos-payment-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

/* Cliente rápido */
.pos-customer-quick {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.pos-customer-btn {
    padding: 8px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    color: #10b981;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.pos-customer-btn:hover {
    background: #10b981;
    color: white;
}

.pos-customer-quick input {
    flex: 1;
    padding: 8px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 12px;
}

.pos-customer-quick input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.pos-customer-quick input::placeholder {
    color: var(--text-secondary);
}

/* Botón Finalizar - Máximo destaque */
.pos-checkout-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.pos-checkout-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.pos-checkout-btn:active:not(:disabled) {
    transform: translateY(0);
}

.pos-checkout-btn:disabled {
    background: var(--bg-card);
    color: var(--text-secondary);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.6;
}
}
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.pos-checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.pos-checkout-btn:hover:not(:disabled)::before {
    left: 100%;
}

.pos-checkout-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.pos-checkout-btn:active:not(:disabled) {
    transform: translateY(-1px) scale(0.98);
}

.pos-checkout-btn:disabled {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.pos-checkout-btn.processing {
    animation: posPulse 1s infinite;
}

@keyframes posPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 6px 30px rgba(16, 185, 129, 0.7); }
}

/* ==============================
   POS - CARTS OPTIMIZATIONS
   ============================== */

/* Cart Empty State */
.pos-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.pos-cart-empty i {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 16px;
}

.pos-cart-empty p {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: var(--text-primary);
}

.pos-cart-empty span {
    font-size: 12px;
    opacity: 0.7;
}

/* Payment Methods - Button Style */
.pos-payment-methods {
    margin-bottom: 16px;
}

.pos-payment-methods label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.pos-payment-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.pos-payment-btn {
    flex: 1;
    padding: 12px 8px;
    background: rgba(255,255,255,0.03);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pos-payment-btn:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--accent-blue);
}

.pos-payment-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

/* Customer Quick */
.pos-customer {
    margin-bottom: 16px;
}

.pos-customer label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.pos-customer-quick {
    display: flex;
    gap: 8px;
}

.pos-customer-btn {
    padding: 10px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    color: #10b981;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.pos-customer-btn:hover {
    background: #10b981;
    color: white;
}

/* Total Display - Enhanced */
.pos-totals {
    margin-bottom: 16px;
}

.pos-subtotal {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px dashed var(--border-color);
}

.pos-total#pos-total-display {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    margin-top: 8px;
}

.pos-total#pos-total-display span:first-child {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.pos-total#pos-total-display span:last-child {
    font-size: 22px;
    font-weight: 800;
    color: #10b981;
}

/* Checkout Button - Maximum Visibility */
.pos-checkout-btn {
    width: 100%;
    padding: 18px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.pos-checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.pos-checkout-btn:hover:not(:disabled)::before {
    left: 100%;
}

.pos-checkout-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.5);
}

.pos-checkout-btn:active:not(:disabled) {
    transform: translateY(-1px) scale(0.98);
}

.pos-checkout-btn:disabled {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.pos-checkout-btn i {
    font-size: 20px;
}

/* Cart Item Animation on Add */
.pos-cart-items.just-added {
    animation: cartPulse 0.3s ease;
}

@keyframes cartPulse {
    0% { background: transparent; }
    50% { background: rgba(16, 185, 129, 0.1); }
    100% { background: transparent; }
}

/* ==============================
   POS IMPROVEMENTS - SCALABLE
   ============================== */

/* Search Container */
.pos-search-container {
    position: relative;
    margin-bottom: 12px;
}

.pos-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

.pos-search-suggestions.active {
    display: block;
}

.pos-suggestion-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s;
}

.pos-suggestion-item:hover, .pos-suggestion-item.highlighted {
    background: rgba(56, 189, 248, 0.1);
}

.pos-suggestion-item:last-child {
    border-bottom: none;
}

.pos-suggestion-name {
    font-weight: 600;
    color: var(--text-primary);
}

.pos-suggestion-model {
    font-size: 11px;
    color: var(--text-secondary);
}

.pos-suggestion-price {
    font-weight: 700;
    color: var(--accent-green);
}

/* Categories */
.pos-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    margin-bottom: 12px;
    scrollbar-width: thin;
}

.pos-categories::-webkit-scrollbar {
    height: 4px;
}

.pos-categories::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.pos-category-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.pos-category-btn:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.pos-category-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

.pos-category-btn i {
    font-size: 11px;
}

/* Load More Button */
.pos-load-more-container {
    text-align: center;
    padding: 20px;
}

.pos-load-more-btn {
    padding: 12px 30px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pos-load-more-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

/* Product Grid - Adaptive */
.pos-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    max-height: calc(100vh - 380px);
    overflow-y: auto;
    padding-right: 8px;
}

.pos-products-grid::-webkit-scrollbar {
    width: 6px;
}

.pos-products-grid::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

/* Compact Mode for many products */
.pos-products-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
}

.pos-products-grid.compact .pos-product-card {
    padding: 10px;
}

.pos-products-grid.compact .pos-product-name {
    font-size: 12px;
    -webkit-line-clamp: 2;
}

.pos-products-grid.compact .pos-product-price {
    font-size: 14px;
}

.pos-products-grid.compact .pos-product-add-btn {
    padding: 6px 10px;
    font-size: 11px;
}

/* Products with many items - hide scrollbar during scroll */
.pos-products-grid.scrolling {
    scrollbar-width: none;
}

.pos-products-grid.scrolling::-webkit-scrollbar {
    display: none;
}

/* Frequent Products Section */
.pos-frequent-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.pos-frequent-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pos-frequent-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.pos-frequent-grid::-webkit-scrollbar {
    height: 4px;
}

.pos-frequent-grid::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.pos-frequent-item {
    flex-shrink: 0;
    width: 100px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.pos-frequent-item:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.pos-frequent-item-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-frequent-item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-green);
}

/* Stock Status Badge */
.pos-stock-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.pos-stock-badge.high {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.pos-stock-badge.medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.pos-stock-badge.low {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Results Counter */
.pos-results-counter {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    padding: 8px;
    margin-bottom: 8px;
}

/* ==============================
   SALES HISTORY MODAL
   ============================== */
.sales-history-modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    max-width: 950px;
    width: 95%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sales-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, transparent 100%);
}

.sales-history-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sales-history-title i {
    font-size: 24px;
    color: var(--accent-blue);
}

.sales-history-title h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.sales-history-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sales-history-close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

.sales-history-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
}

/* Loading State */
.sales-history-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    gap: 16px;
}

.sales-history-loading i {
    font-size: 32px;
    color: var(--accent-blue);
}

.sales-history-loading span {
    font-size: 14px;
}

/* Empty State */
.sales-history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.sales-history-empty i {
    font-size: 64px;
    color: var(--text-secondary);
    opacity: 0.3;
    margin-bottom: 20px;
}

.sales-history-empty p {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
}

.sales-history-empty span {
    font-size: 14px;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Error State */
.sales-history-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.sales-history-error i {
    font-size: 48px;
    color: #ef4444;
    margin-bottom: 16px;
}

.sales-history-error p {
    font-size: 16px;
    font-weight: 600;
    color: #ef4444;
    margin: 0 0 8px 0;
}

.sales-history-error span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Summary Bar */
.sales-history-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-dark);
    border-radius: 14px;
    border: 1px solid var(--border-color);
}

.sales-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sales-summary-item.highlight {
    margin-left: auto;
    align-items: flex-end;
}

.sales-summary-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sales-summary-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.sales-summary-value.green {
    color: #10b981;
    font-size: 28px;
}

/* Table Container */
.sales-history-table-container {
    background: var(--bg-dark);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* Table */
.sales-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.sales-history-table thead {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, transparent 100%);
}

.sales-history-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.sales-history-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.sales-history-table tbody tr {
    transition: all 0.15s ease;
}

.sales-history-table tbody tr:hover {
    background: rgba(56, 189, 248, 0.05);
}

.sales-history-table tbody tr.odd {
    background: rgba(255, 255, 255, 0.02);
}

.sales-history-table tbody tr.even {
    background: transparent;
}

.sales-history-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Cells */
.text-right { text-align: right; }
.text-center { text-align: center; }

.sale-code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-weight: 700;
    color: var(--accent-blue);
    font-size: 13px;
}

.sale-date {
    color: var(--text-secondary);
    font-size: 13px;
}

.sale-customer {
    font-weight: 600;
    color: var(--text-primary);
}

.sale-method {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
}

.sale-method.efectivo { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.sale-method.transferencia { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.sale-method.tarjeta { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.sale-method.mixto { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.sale-total {
    font-weight: 800;
    font-size: 15px;
    color: var(--text-primary);
}

/* Actions */
.sale-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.sale-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sale-action-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
}

.sale-action-btn.print:hover {
    background: #10b981;
    border-color: #10b981;
}

/* Stats del POS */
.pos-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px; /* Reduced from 25px */
}

.pos-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    flex: 1;
    transition: transform 0.2s;
}

.pos-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.3);
}

.pos-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.pos-stat-icon.green {
    background: rgba(74, 222, 128, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.pos-stat-icon.blue {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.pos-stat-icon.purple {
    background: rgba(129, 140, 248, 0.15);
    color: var(--accent-purple);
    border: 1px solid rgba(129, 140, 248, 0.2);
}

.pos-stat-info {
    display: flex;
    flex-direction: column;
}

.pos-stat-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pos-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 1024px) {
    .pos-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .pos-products {
        max-height: 50vh;
    }
    
    .pos-cart {
        max-height: 50vh;
    }
}

@media (max-width: 768px) {
    .pos-quick-grid {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
    
    .pos-quick-btn {
        flex-shrink: 0;
    }
    
    .pos-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}$premiumCss
