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

        :root {
            --bg-primary: #050a05;
            --bg-secondary: #0d1a0d;
            --bg-tertiary: #1a2e1a;
            --bg-card: #0f1f0f;
            --accent-primary: rgba(57, 255, 20, 0.9);
            --accent-secondary: rgba(0, 255, 65, 0.85);
            --accent-tertiary: rgba(50, 205, 50, 0.85);
            --accent-light: rgba(144, 238, 144, 0.8);
            --accent-neon: rgba(127, 255, 0, 0.9);
            --accent-pink: rgba(57, 255, 20, 0.85);
            --accent-blue: rgba(0, 255, 100, 0.85);
            --accent-green: rgba(50, 255, 50, 0.9);
            --accent-purple: rgba(100, 255, 100, 0.8);
            --accent-yellow: rgba(180, 255, 100, 0.85);
            --accent-red: rgba(255, 80, 80, 0.85);
            --accent-orange: rgba(255, 200, 50, 0.85);
            --text-primary: #e0ffe0;
            --text-secondary: #90c090;
            --text-muted: #507050;
            --border-color: rgba(57, 255, 20, 0.35);
            --border-glow: 0 0 8px rgba(57, 255, 20, 0.4);
            --shadow-green: 0 4px 25px rgba(57, 255, 20, 0.2);
            --shadow-neon: 0 0 15px rgba(57, 255, 20, 0.3);
            --shadow-pink: 0 4px 20px rgba(57, 255, 20, 0.2);
            --shadow-blue: 0 4px 20px rgba(0, 255, 100, 0.2);
            --shadow-color: rgba(57, 255, 20, 0.2);
            --shadow-hover: 0 4px 25px var(--shadow-color);
            --glow-green: 0 0 10px rgba(57, 255, 20, 0.5), 0 0 20px rgba(57, 255, 20, 0.3);
        }

        /* ===== TEMA CLARO ===== */
        [data-theme="light"] {
            --bg-primary: #f5f5f5;
            --bg-secondary: #e8e8e8;
            --bg-tertiary: #ffffff;
            --bg-card: #ffffff;
            --text-primary: #1a1a1a;
            --text-secondary: #4a4a4a;
            --text-muted: #888888;
            --border-color: #d0d0d0;
            --shadow-green: 0 4px 25px rgba(0, 150, 0, 0.15);
            --shadow-neon: 0 0 15px rgba(0, 150, 0, 0.2);
        }
        [data-theme="light"] .sidebar { background: #ffffff; border-right: 1px solid #e0e0e0; }
        [data-theme="light"] .navbar { background: linear-gradient(135deg, #1a5a1a, #2d7d2d); }
        [data-theme="light"] .card { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
        [data-theme="light"] .btn-secondary { background: #e0e0e0; color: #333; }
        [data-theme="light"] .form-input, [data-theme="light"] .form-select { background: #fff; border-color: #ccc; color: #333; }
        [data-theme="light"] .table th { background: #f0f0f0; color: #333; }
        [data-theme="light"] .table td { border-color: #e0e0e0; }

        /* Modo claro via JavaScript (apariencia) */
        body.light-mode .card {
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            border: 1px solid rgba(0,0,0,0.1);
        }
        body.light-mode .sidebar {
            border-right: 1px solid rgba(0,0,0,0.1);
        }
        body.light-mode .btn-secondary {
            background: rgba(0,0,0,0.08);
            color: var(--text-primary);
            border: 1px solid rgba(0,0,0,0.15);
        }
        body.light-mode .btn-secondary:hover {
            background: rgba(0,0,0,0.12);
        }
        body.light-mode .form-input,
        body.light-mode .form-select,
        body.light-mode .form-textarea {
            background: rgba(255,255,255,0.9);
            border: 1px solid rgba(0,0,0,0.2);
            color: var(--text-primary);
        }
        body.light-mode .form-input:focus,
        body.light-mode .form-select:focus {
            border-color: var(--accent-primary);
            box-shadow: 0 0 0 2px rgba(0,100,200,0.2);
        }
        body.light-mode .table th {
            background: rgba(0,0,0,0.05);
            color: var(--text-primary);
        }
        body.light-mode .table td {
            border-color: rgba(0,0,0,0.1);
        }
        body.light-mode .modal-overlay {
            background: rgba(0,0,0,0.4);
        }
        body.light-mode .modal-content {
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
            border: 1px solid rgba(0,0,0,0.1);
        }
        body.light-mode .sidebar-item:hover {
            background: rgba(0,0,0,0.05);
        }
        body.light-mode .sidebar-item.active {
            background: rgba(0,0,0,0.08);
        }
        body.light-mode .badge {
            color: #fff;
        }
        body.light-mode .notification {
            box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        }

        /* ===== SKELETON LOADERS ===== */
        .skeleton {
            background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
            background-size: 200% 100%;
            animation: skeleton-loading 1.5s infinite;
            border-radius: 4px;
        }
        .skeleton-text { height: 1rem; margin-bottom: 0.5rem; }
        .skeleton-title { height: 1.5rem; width: 60%; margin-bottom: 1rem; }
        .skeleton-card { height: 120px; margin-bottom: 1rem; border-radius: 8px; }
        .skeleton-circle { width: 50px; height: 50px; border-radius: 50%; }
        .skeleton-btn { height: 40px; width: 120px; border-radius: 8px; }
        @keyframes skeleton-loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        /* ===== ANIMACIONES DE ÉXITO ===== */
        @keyframes success-pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        @keyframes success-check {
            0% { transform: scale(0) rotate(-45deg); opacity: 0; }
            50% { transform: scale(1.2) rotate(-45deg); }
            100% { transform: scale(1) rotate(-45deg); opacity: 1; }
        }
        @keyframes confetti-fall {
            0% { transform: translateY(-100%) rotate(0deg); opacity: 1; }
            100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
        }
        @keyframes slide-up {
            from { transform: translateY(20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        @keyframes glow-pulse {
            0%, 100% { box-shadow: 0 0 5px var(--accent-primary), 0 0 10px var(--accent-primary); }
            50% { box-shadow: 0 0 20px var(--accent-primary), 0 0 40px var(--accent-primary); }
        }
        @keyframes tutorialPulse {
            0%, 100% {
                box-shadow: 0 0 15px var(--accent-primary), 0 0 30px var(--accent-primary), inset 0 0 15px rgba(57,255,20,0.1);
                border-color: var(--accent-primary);
            }
            50% {
                box-shadow: 0 0 30px var(--accent-primary), 0 0 60px var(--accent-primary), 0 0 90px rgba(57,255,20,0.5), inset 0 0 25px rgba(57,255,20,0.2);
                border-color: #7fff00;
            }
        }
        .animate-success { animation: success-pulse 0.5s ease; }
        .animate-slide-up { animation: slide-up 0.3s ease; }
        .animate-glow { animation: glow-pulse 1s ease infinite; }

        /* Animaciones para mini notificaciones */
        @keyframes slideInRight {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        @keyframes slideOutRight {
            from { transform: translateX(0); opacity: 1; }
            to { transform: translateX(100%); opacity: 0; }
        }

        /* ===== CONFETTI ===== */
        .confetti-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; overflow: hidden; }
        .confetti {
            position: absolute;
            width: 10px;
            height: 10px;
            animation: confetti-fall 3s linear forwards;
        }

        /* ===== BREADCRUMBS ===== */
        .breadcrumbs {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1rem;
            background: var(--bg-secondary);
            border-radius: 8px;
            margin-bottom: 1rem;
            font-size: 0.85rem;
            flex-wrap: wrap;
        }
        .breadcrumb-item { color: var(--text-muted); cursor: pointer; transition: color 0.2s; }
        .breadcrumb-item:hover { color: var(--accent-primary); }
        .breadcrumb-separator { color: var(--text-muted); }
        .breadcrumb-current { color: var(--text-primary); font-weight: 500; }

        /* ===== TOGGLE TEMA ===== */
        .theme-toggle {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 20px;
            background: var(--bg-tertiary);
            transition: all 0.3s;
        }
        .theme-toggle:hover { background: var(--bg-secondary); }
        .theme-toggle-track {
            width: 44px;
            height: 24px;
            background: var(--bg-primary);
            border-radius: 12px;
            position: relative;
            transition: background 0.3s;
        }
        .theme-toggle-thumb {
            width: 20px;
            height: 20px;
            background: var(--accent-primary);
            border-radius: 50%;
            position: absolute;
            top: 2px;
            left: 2px;
            transition: transform 0.3s;
        }
        [data-theme="light"] .theme-toggle-thumb { transform: translateX(20px); }

        /* ===== CHECK-IN RÁPIDO ===== */
        .checkin-fullscreen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--bg-primary);
            z-index: 10000;
            display: flex;
            flex-direction: column;
        }
        .checkin-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            background: var(--bg-secondary);
            position: relative;
            z-index: 100;
        }
        .checkin-header .btn {
            position: relative;
            z-index: 101;
            pointer-events: auto;
        }
        .checkin-counter {
            font-size: 3rem;
            font-weight: bold;
            color: var(--accent-primary);
            text-shadow: var(--glow-green);
        }
        .checkin-scanner { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; overflow: hidden; }
        .checkin-scanner video, .checkin-scanner canvas, .checkin-scanner #fast-checkin-reader, .checkin-scanner #fast-checkin-reader * { z-index: 1 !important; }
        .checkin-result {
            padding: 2rem;
            text-align: center;
            font-size: 1.5rem;
        }
        .checkin-valid { background: rgba(50, 255, 50, 0.2); color: var(--accent-green); }
        .checkin-invalid { background: rgba(255, 80, 80, 0.2); color: var(--accent-red); }
        .checkin-vip { background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 140, 0, 0.2)); }

        /* ===== DASHBOARD EN VIVO ===== */
        .live-indicator {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.25rem 0.75rem;
            background: rgba(255, 80, 80, 0.2);
            border-radius: 20px;
            font-size: 0.8rem;
            color: #ff6b6b;
        }
        .live-dot {
            width: 8px;
            height: 8px;
            background: #ff6b6b;
            border-radius: 50%;
            animation: live-pulse 1.5s ease infinite;
        }
        @keyframes live-pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.5; transform: scale(1.2); }
        }
        .stat-card-live {
            background: linear-gradient(135deg, var(--bg-card), var(--bg-tertiary));
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 1.25rem;
            text-align: center;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .stat-card-live:hover { transform: translateY(-2px); box-shadow: 0 4px 20px var(--shadow-color, rgba(57, 255, 20, 0.2)); }
        .stat-value { font-size: 2.5rem; font-weight: bold; color: var(--accent-primary); }
        .stat-label { color: var(--text-secondary); font-size: 0.85rem; margin-top: 0.25rem; }
        .stat-change { font-size: 0.75rem; margin-top: 0.5rem; }
        .stat-change.positive { color: var(--accent-green); }
        .stat-change.negative { color: var(--accent-red); }

        /* ===== AGENDA / TIMELINE ===== */
        .timeline { position: relative; padding-left: 2rem; }
        .timeline::before {
            content: '';
            position: absolute;
            left: 0.5rem;
            top: 0;
            bottom: 0;
            width: 2px;
            background: var(--border-color);
        }
        .timeline-item {
            position: relative;
            padding: 1rem;
            margin-bottom: 1rem;
            background: var(--bg-card);
            border-radius: 8px;
            border: 1px solid var(--border-color);
        }
        .timeline-item::before {
            content: '';
            position: absolute;
            left: -1.75rem;
            top: 1.25rem;
            width: 12px;
            height: 12px;
            background: var(--accent-primary);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--accent-primary);
        }
        .timeline-item.active::before { animation: glow-pulse 1s ease infinite; }
        .timeline-item.past { opacity: 0.6; }
        .timeline-item.past::before { background: var(--text-muted); box-shadow: none; }
        .timeline-time { font-size: 0.8rem; color: var(--accent-primary); font-weight: bold; }
        .timeline-title { font-size: 1.1rem; font-weight: 600; margin: 0.25rem 0; }
        .timeline-desc { font-size: 0.85rem; color: var(--text-secondary); }

        /* ===== MAPA DE ZONAS ===== */
        .zone-map {
            display: grid;
            gap: 0.5rem;
            padding: 1rem;
            background: var(--bg-secondary);
            border-radius: 12px;
        }
        .zone-item {
            padding: 1rem;
            border-radius: 8px;
            border: 2px solid var(--border-color);
            cursor: pointer;
            transition: all 0.2s;
            text-align: center;
        }
        .zone-item:hover { border-color: var(--accent-primary); transform: scale(1.02); }
        .zone-item.selected { border-color: var(--accent-primary); background: rgba(57, 255, 20, 0.1); }
        .zone-item.sold-out { opacity: 0.5; cursor: not-allowed; background: rgba(255, 80, 80, 0.1); }
        .zone-name { font-weight: bold; margin-bottom: 0.25rem; }
        .zone-price { color: var(--accent-primary); }
        .zone-available { font-size: 0.8rem; color: var(--text-secondary); }

        /* ===== WALLET PASSES ===== */
        .wallet-buttons { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 1rem; }
        .wallet-btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 500;
            transition: transform 0.2s;
        }
        .wallet-btn:hover { transform: scale(1.05); }
        .wallet-btn-apple { background: #000; color: #fff; }
        .wallet-btn-google { background: #4285f4; color: #fff; }

        /* ===== PÁGINA PÚBLICA CON SIDEBARS ===== */
        .public-page-layout {
            display: flex;
            gap: 1rem;
            justify-content: center;
            align-items: flex-start;
            min-height: calc(100vh - 50px);
            padding: 1.5rem;
            background: #0a0a0a !important;
        }
        .public-sidebar {
            width: 220px;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        .public-sidebar-card {
            background: rgba(30, 30, 30, 0.95);
            border: 1px solid #39ff14;
            border-radius: 12px;
            padding: 1rem;
            box-shadow: 0 0 15px rgba(57, 255, 20, 0.1);
        }
        .public-sidebar-card ::-webkit-scrollbar {
            width: 6px;
        }
        .public-sidebar-card ::-webkit-scrollbar-track {
            background: rgba(20, 20, 20, 0.5);
            border-radius: 3px;
        }
        .public-sidebar-card ::-webkit-scrollbar-thumb {
            background: var(--accent-primary, #39ff14);
            border-radius: 3px;
        }
        .public-sidebar-card ::-webkit-scrollbar-thumb:hover {
            background: var(--accent-secondary, #00ff41);
        }
        .public-sidebar-left { order: 1; }
        .public-sidebar-right { order: 3; }
        .public-page-layout .public-card {
            order: 2;
            max-width: 520px;
            width: 100%;
            flex-shrink: 0;
        }
        @media (max-width: 900px) {
            .public-page-layout {
                flex-direction: column;
                align-items: center;
            }
            .public-sidebar {
                width: 100%;
                max-width: 420px;
            }
            .public-sidebar-left { order: 2; }
            .public-sidebar-right { order: 3; }
            .public-page-layout .public-card { order: 1; }
        }
        @media (max-width: 500px) {
            .public-page-layout {
                padding: 0.5rem;
                gap: 0.5rem;
            }
            .public-sidebar {
                width: 100%;
                max-width: 100%;
            }
            .public-sidebar-card {
                padding: 0.5rem;
                max-height: none;
            }
            .public-sidebar-card h4 {
                font-size: 0.9rem;
                margin-bottom: 0.5rem !important;
            }
            .public-sidebar-card > div {
                max-height: 120px;
                overflow-y: auto;
                font-size: 0.75rem;
            }
            .public-sidebar-card img {
                max-height: 100px;
            }
            .public-page-layout .public-card {
                max-height: 70vh;
                overflow-y: auto;
                padding: 1rem;
            }
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.6;
        }

        .login-screen {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #0a0a0a;
            padding: 1rem;
        }

        .login-box {
            background: rgba(30, 30, 30, 0.98);
            padding: 3rem 4rem;
            border-radius: 16px;
            border: 1px solid var(--accent-primary, #39ff14);
            width: 100%;
            max-width: 500px;
            box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8), 0 0 30px var(--accent-primary, rgba(57, 255, 20, 0.2));
        }

        @media (max-width: 600px) {
            .login-box {
                padding: 2rem;
                max-width: 100%;
            }
        }

        .login-title {
            text-align: center;
            font-size: 2rem;
            margin-bottom: 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
        }

        .login-title span {
            background: var(--title-gradient, linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .login-title img {
            height: 70px;
            object-fit: contain;
        }

        /* Login inputs - gris neutro */
        .login-screen .form-input {
            border-color: #555;
            background: #1a1a1a;
        }
        .login-screen .form-input:focus {
            border-color: #888;
            box-shadow: 0 0 0 3px rgba(136, 136, 136, 0.2);
        }
        .login-screen .form-label {
            color: #aaa;
        }

        .app-container { display: none; }
        .public-page {
            display: none;
            background: #000000;
            min-height: 100vh;
        }

        /* Navbar público */
        .public-navbar {
            justify-content: center;
            background: #1a1a1a;
            padding: 0.5rem 1rem;
            border-bottom: 1px solid var(--accent-primary, #39ff14);
        }

        .navbar {
            background: #1a1a1a;
            border-bottom: 1px solid var(--border-color);
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: var(--border-glow), 0 2px 10px rgba(0, 0, 0, 0.5);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .navbar-brand {
            font-size: 1.5rem;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .navbar-brand span,
        .navbar-brand:not(:has(img)) {
            background: var(--title-gradient, linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            filter: var(--title-glow, none);
        }

        .navbar-brand img {
            height: 45px;
            object-fit: contain;
        }

        .navbar-menu { display: flex; gap: 1.5rem; align-items: center; }
        .navbar-event-selector { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

        .navbar-event-selector select {
            padding: 0.5rem 1rem;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 0.9rem;
            max-width: 200px;
        }

        /* Mobile navbar event selector fix */
        @media (max-width: 768px) {
            .navbar {
                flex-wrap: wrap;
                justify-content: center;
                gap: 0.5rem;
            }
            .navbar-brand {
                width: 100%;
                justify-content: center;
                font-size: 1.2rem;
            }

            .navbar-brand img {
                height: 38px;
            }
            .navbar-event-selector {
                order: 3;
                width: 100%;
                justify-content: center;
                padding: 0.5rem 0;
                border-top: 1px solid var(--border-color);
                margin-top: 0.25rem;
            }
            .navbar-event-selector select {
                width: 100%;
                max-width: 100%;
                min-width: unset;
                font-size: 1rem;
                padding: 0.75rem 1rem;
                text-align: center;
                text-align-last: center;
            }
            .navbar-menu {
                gap: 1rem;
            }
        }

        .nav-link {
            color: var(--text-secondary);
            text-decoration: none;
            transition: color 0.3s;
            font-weight: 500;
            cursor: pointer;
        }

        .nav-link:hover { color: var(--accent-primary); text-shadow: var(--glow-green); }

        .user-badge {
            background: var(--bg-tertiary);
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.9rem;
        }

        .layout { display: flex; min-height: calc(100vh - 70px); }

        .sidebar {
            width: 260px;
            background: #1a1a1a;
            border-right: 1px solid var(--border-color);
            box-shadow: var(--border-glow);
            padding: 1.5rem 1rem;
            position: sticky;
            top: 70px;
            height: calc(100vh - 70px);
            overflow-y: auto;
        }

        .sidebar-section { margin-bottom: 1.5rem; }

        .sidebar-section-title {
            font-size: 0.75rem;
            text-transform: uppercase;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
            padding-left: 1rem;
        }

        .sidebar-menu { list-style: none; }

        .sidebar-item {
            padding: 0.75rem 1rem;
            margin: 0.25rem 0;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.1s, color 0.1s, transform 0.1s;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 0.75rem;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
        }

        .sidebar-item:hover {
            background: rgba(255, 255, 255, 0.08);
            color: var(--accent-primary);
            transform: translateX(3px);
        }

        .sidebar-item:active {
            transform: scale(0.98);
            background: rgba(255, 255, 255, 0.12);
        }

        .sidebar-item.active {
            background: rgba(180, 180, 180, 0.15);
            color: var(--text-primary);
            box-shadow: none;
            border-left: 3px solid rgba(200, 200, 200, 0.6);
        }

        .sidebar-item.hidden { display: none; }
        .sidebar-item.disabled { opacity: 0.4; pointer-events: none; }

        .main-content {
            flex: 1;
            padding: 2rem;
            background: #121212;
            overflow-y: auto;
        }

        /* Transiciones suaves de navegación */
        .main-content.page-transition {
            opacity: 0;
            transform: translateY(8px);
        }
        .main-content.page-visible {
            opacity: 1;
            transform: translateY(0);
            transition: opacity 0.15s ease-out, transform 0.15s ease-out;
        }

        /* Skeleton loader */
        .skeleton {
            background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
            background-size: 200% 100%;
            animation: skeleton-loading 1.2s ease-in-out infinite;
            border-radius: 8px;
        }
        @keyframes skeleton-loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        .skeleton-text { height: 1rem; margin-bottom: 0.5rem; }
        .skeleton-title { height: 2rem; width: 40%; margin-bottom: 1rem; }
        .skeleton-card { height: 120px; margin-bottom: 1rem; }
        .skeleton-row { display: flex; gap: 1rem; margin-bottom: 1rem; }
        .skeleton-row > div { flex: 1; height: 100px; }

        .page-header {
            margin-bottom: 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .page-title {
            font-size: 2rem;
            background: var(--title-gradient, linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            filter: var(--title-glow, none);
        }

        .page-subtitle { color: var(--text-secondary); }

        .cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 1.5rem;
            transition: transform 0.15s, box-shadow 0.15s;
            position: relative;
            overflow: hidden;
            box-shadow: var(--border-glow);
            will-change: transform;
        }

        .card:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 25px var(--shadow-color, rgba(57, 255, 20, 0.25)), var(--border-glow);
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--accent-primary), var(--accent-neon), var(--accent-secondary));
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .card-value {
            font-size: 2rem;
            font-weight: bold;
            color: var(--text-primary);
            margin-bottom: 0.25rem;
        }

        .card-label { color: var(--text-secondary); font-size: 0.9rem; }

        .card-icon {
            width: 50px; height: 50px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }

        .card-icon.pink { background: rgba(255, 182, 193, 0.2); }
        .card-icon.blue { background: rgba(173, 216, 230, 0.2); }
        .card-icon.green { background: rgba(144, 238, 144, 0.2); }
        .card-icon.purple { background: rgba(216, 191, 216, 0.2); }
        .card-icon.orange { background: rgba(255, 180, 100, 0.2); }

        .btn {
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            cursor: pointer;
            transition: transform 0.1s, box-shadow 0.15s, filter 0.15s, background 0.15s;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
        }

        .btn:active {
            transform: scale(0.96) !important;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
            color: var(--bg-primary);
            box-shadow: 0 2px 10px var(--shadow-color, rgba(57, 255, 20, 0.2));
            font-weight: 600;
        }

        .btn-primary:hover {
            transform: scale(1.03);
            box-shadow: 0 4px 20px var(--shadow-color, rgba(57, 255, 20, 0.3));
            filter: brightness(1.1);
        }

        .btn-secondary {
            background: var(--bg-tertiary);
            color: var(--text-primary);
            border: 1px solid var(--border-color);
        }

        .btn-secondary:hover {
            background: var(--bg-card);
            border-color: var(--accent-primary);
            box-shadow: 0 2px 15px var(--shadow-color, rgba(57, 255, 20, 0.15));
        }

        .btn-success {
            background: rgba(144, 238, 144, 0.2);
            color: var(--accent-green);
            border: 1px solid var(--accent-green);
        }

        .btn-warning {
            background: rgba(255, 180, 100, 0.2);
            color: var(--accent-orange);
            border: 1px solid var(--accent-orange);
        }

        .btn-danger {
            background: rgba(255, 100, 100, 0.2);
            color: var(--accent-red);
            border: 1px solid var(--accent-red);
        }

        .btn-danger:hover { background: rgba(255, 100, 100, 0.3); }

        .btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
        .btn-icon { padding: 0.5rem; min-width: 36px; justify-content: center; }

        .form-group { margin-bottom: 1.5rem; }

        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .form-input, .form-select, .form-textarea {
            width: 100%;
            padding: 0.75rem;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 1rem;
            transition: all 0.3s;
        }

        .form-input:focus, .form-select:focus, .form-textarea:focus {
            outline: none;
            border-color: var(--accent-primary);
            box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.15);
        }

        .form-textarea { resize: vertical; min-height: 100px; }

        .form-check {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
        }

        .form-check input[type="checkbox"] {
            width: 18px; height: 18px;
            accent-color: var(--accent-primary);
        }

        .table-container {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            overflow: hidden;
        }

        .table { width: 100%; border-collapse: collapse; }
        .table thead { background: var(--bg-tertiary); }

        .table th {
            padding: 1rem;
            text-align: left;
            color: var(--text-secondary);
            font-weight: 600;
            border-bottom: 2px solid var(--border-color);
        }

        .table td {
            padding: 1rem;
            color: var(--text-primary);
            border-bottom: 1px solid var(--border-color);
        }

        .table tbody tr:hover { background: var(--bg-tertiary); }

        .badge {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
        }

        .badge-success { background: rgba(144, 238, 144, 0.2); color: var(--accent-green); }
        .badge-warning { background: rgba(255, 255, 224, 0.2); color: var(--accent-yellow); }
        .badge-danger { background: rgba(255, 80, 80, 0.2); color: var(--accent-red); }
        .badge-info { background: rgba(173, 216, 230, 0.2); color: var(--accent-blue); }
        .badge-purple { background: rgba(216, 191, 216, 0.2); color: var(--accent-purple); }
        .badge-orange { background: rgba(255, 180, 100, 0.2); color: var(--accent-orange); }

        .modal {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }

        .modal.active { display: flex; }

        .modal-content {
            background: var(--bg-secondary);
            border-radius: 12px;
            padding: 2rem;
            max-width: 700px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            border: 1px solid var(--border-color);
            box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border-color);
        }

        .modal-title { font-size: 1.5rem; color: var(--text-primary); }

        .modal-close {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--text-secondary);
            cursor: pointer;
        }

        .modal-close:hover { color: var(--accent-primary); }

        .notification {
            position: fixed;
            bottom: 20px; right: 20px;
            padding: 1rem 1.5rem;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            z-index: 2000;
            display: none;
            animation: slideIn 0.3s ease-out;
        }

        .notification.show { display: block; }
        .notification.success { background: rgba(144, 238, 144, 0.2); border: 1px solid var(--accent-green); color: var(--accent-green); }
        .notification.error { background: rgba(255, 80, 80, 0.2); border: 1px solid var(--accent-red); color: var(--accent-red); }
        .notification.info { background: rgba(100, 180, 255, 0.2); border: 1px solid var(--accent-blue); color: var(--accent-blue); }

        @keyframes slideIn {
            from { transform: translateX(100px); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
        .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

        .empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
        .empty-state-icon { font-size: 4rem; margin-bottom: 1rem; }

        .camera-container {
            position: relative;
            width: 100%;
            max-width: 400px;
            margin: 0 auto;
            background: var(--bg-tertiary);
            border-radius: 12px;
            overflow: hidden;
            aspect-ratio: 1;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .camera-container video { width: 100%; height: 100%; object-fit: cover; }

        .camera-container > div {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .camera-overlay {
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            width: 180px; height: 180px;
            border: 3px solid var(--accent-primary);
            border-radius: 12px;
            box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5), var(--glow-green);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { border-color: var(--accent-primary); box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5), 0 0 10px rgba(57, 255, 20, 0.5); }
            50% { border-color: var(--accent-neon); box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5), 0 0 20px rgba(127, 255, 0, 0.6); }
        }

        .qr-ticket {
            position: relative;
            width: 320px;
            min-height: 450px;
            margin: 0 auto;
            border-radius: 12px;
            overflow: hidden;
            background-size: cover;
            background-position: center;
        }

        .qr-ticket-content {
            position: relative;
            z-index: 1;
            padding: 1.2rem;
            text-align: center;
            min-height: 450px;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            gap: 0.8rem;
        }

        .qr-ticket-content > div:first-child {
            flex-shrink: 0;
        }

        .qr-ticket-content > div:last-child {
            flex-shrink: 0;
            margin-top: auto;
        }

        .qr-ticket-overlay {
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.4);
        }

        .qr-code-box {
            background: white;
            padding: 0.75rem;
            border-radius: 8px;
            display: inline-block;
            margin: 0.8rem auto;
            flex-shrink: 0;
            min-width: 140px;
            min-height: 140px;
        }

        .order-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            background: var(--bg-tertiary);
            border-radius: 8px;
            margin-bottom: 0.5rem;
        }

        .qty-btn {
            width: 30px; height: 30px;
            border-radius: 50%;
            border: 1px solid var(--border-color);
            background: var(--bg-card);
            color: var(--text-primary);
            cursor: pointer;
        }

        .tip-options { display: flex; gap: 0.5rem; margin-top: 1rem; }

        .tip-btn {
            flex: 1;
            padding: 1rem;
            background: var(--bg-tertiary);
            border: 2px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-primary);
            cursor: pointer;
            transition: all 0.3s;
        }

        .tip-btn:hover, .tip-btn.active {
            border-color: var(--accent-green);
            background: rgba(144, 238, 144, 0.1);
        }

        .stat-bar {
            height: 8px;
            background: var(--bg-secondary);
            border-radius: 4px;
            overflow: hidden;
            margin-top: 0.5rem;
        }

        .stat-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--accent-primary), var(--accent-neon));
            border-radius: 4px;
            box-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
        }

        .permissions-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 0.5rem;
        }

        .action-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }

        .tabs {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 0.5rem;
            flex-wrap: wrap;
        }

        .tab {
            padding: 0.75rem 1.5rem;
            background: transparent;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            border-radius: 8px 8px 0 0;
            transition: all 0.3s;
        }

        .tab:hover { color: var(--text-primary); background: var(--bg-tertiary); }
        .tab.active { color: var(--accent-primary); background: var(--bg-tertiary); border-bottom: 2px solid var(--accent-primary); text-shadow: 0 0 5px rgba(57, 255, 20, 0.5); }

        .search-box {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .search-box input {
            flex: 1;
            padding: 0.75rem 1rem;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-primary);
        }

        .filter-tabs {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }

        .filter-tab {
            padding: 0.5rem 1rem;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 0.9rem;
        }

        .filter-tab:hover { border-color: var(--accent-primary); }
        .filter-tab.active { background: var(--accent-primary); color: var(--bg-primary); border-color: var(--accent-primary); box-shadow: 0 4px 20px var(--shadow-color, rgba(57, 255, 20, 0.2)); }

        .image-preview {
            width: 100%;
            max-width: 200px;
            height: 120px;
            background: var(--bg-tertiary);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            margin-top: 0.5rem;
        }

        .image-preview img { width: 100%; height: 100%; object-fit: cover; }

        .public-container {
            min-height: 100vh;
            padding: 2rem;
            background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
        }

        .public-card {
            max-width: 520px;
            margin: 0 auto;
            background: rgba(30, 30, 30, 0.95);
            border-radius: 16px;
            padding: 2.5rem 3rem;
            border: 1px solid #39ff14;
            box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(57, 255, 20, 0.15);
        }

        /* Página pública usa variables CSS (personalizables por usuario) */
        #public-page .public-card,
        #public-page .public-sidebar-card {
            border-color: var(--accent-primary, #39ff14);
            box-shadow: 0 0 15px var(--shadow-color, rgba(57, 255, 20, 0.2));
        }
        #public-page .btn-primary {
            background: var(--accent-primary, #39ff14);
            color: #000;
        }
        #public-page .btn-primary:hover {
            filter: brightness(0.9);
        }
        #public-page .form-input:focus,
        #public-page .form-select:focus {
            border-color: var(--accent-primary, #39ff14);
            box-shadow: 0 0 0 3px var(--shadow-color, rgba(57, 255, 20, 0.2));
        }

        @media (max-width: 600px) {
            .public-card {
                padding: 1.5rem;
                max-width: 100%;
                margin: 0 0.5rem;
            }
        }

        .payment-option {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            padding: 1rem;
            background: var(--bg-tertiary);
            border: 2px solid var(--border-color);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .payment-option:hover {
            border-color: var(--accent-blue);
            background: rgba(173, 216, 230, 0.1);
        }

        .payment-option.selected {
            border-color: var(--accent-green);
            background: rgba(144, 238, 144, 0.15);
        }

        /* Nueva grid de métodos de pago */
        .payment-methods-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-top: 0.5rem;
        }

        .payment-card {
            flex: 1;
            min-width: 140px;
            max-width: 200px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            padding: 1rem;
            background: var(--bg-tertiary);
            border: 2px solid var(--border-color);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: center;
        }

        .payment-card:hover {
            border-color: var(--accent-blue);
            background: rgba(100, 150, 255, 0.1);
            transform: translateY(-2px);
        }

        .payment-card.selected {
            border-color: var(--accent-green);
            background: rgba(57, 255, 20, 0.15);
            box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
        }

        .payment-card-icon {
            font-size: 2rem;
            line-height: 1;
        }

        .payment-card-name {
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--text-primary);
        }

        .payment-card-badge {
            font-size: 0.7rem;
            font-weight: 500;
            opacity: 0.8;
        }

        @media (max-width: 480px) {
            .payment-methods-grid {
                flex-direction: column;
            }
            .payment-card {
                max-width: 100%;
                flex-direction: row;
                justify-content: flex-start;
                padding: 0.75rem 1rem;
                gap: 1rem;
            }
            .payment-card-icon {
                font-size: 1.5rem;
            }
            .payment-card-name {
                flex: 1;
                text-align: left;
            }
        }

        .link-box {
            background: var(--bg-tertiary);
            padding: 1rem;
            border-radius: 8px;
            display: flex;
            gap: 0.5rem;
            align-items: center;
        }

        .link-box input {
            flex: 1;
            background: transparent;
            border: none;
            color: var(--text-primary);
            font-size: 0.9rem;
        }

        @media (max-width: 768px) {
            .layout { flex-direction: column; }
            .sidebar { width: 100%; height: auto; position: static; }
            .grid-2, .grid-3 { grid-template-columns: 1fr; }
            .navbar { padding: 0.75rem; flex-wrap: wrap; gap: 0.5rem; }
            .cards-grid { grid-template-columns: 1fr; }

            /* Cámara QR responsive - NO se corta */
            .camera-container,
            #entry-cam,
            #cashier-recharge-cam,
            #cashier-refund-cam,
            #w-cam {
                height: auto !important;
                min-height: 250px;
                max-height: 320px;
                width: 100% !important;
                max-width: 100% !important;
                aspect-ratio: 1;
                border-radius: 12px;
                overflow: hidden;
            }

            /* Asegurar que el video del scanner se vea bien */
            #entry-cam video,
            #cashier-recharge-cam video,
            #cashier-refund-cam video,
            #w-cam video,
            .camera-container video {
                width: 100% !important;
                height: 100% !important;
                object-fit: cover !important;
            }

            /* Panel de entrada optimizado para móvil */
            #entry-qr-reader,
            #entry-qr-reader > div {
                width: 100% !important;
            }

            /* Botones más grandes para touch */
            .btn {
                min-height: 48px;
                padding: 0.875rem 1.25rem;
                font-size: 1rem;
            }
            .btn-sm {
                min-height: 40px;
                padding: 0.5rem 0.875rem;
            }

            /* Inputs más grandes */
            .form-input, .form-select {
                min-height: 48px;
                font-size: 16px; /* Evita zoom en iOS */
            }

            /* Cards con más espacio */
            .card {
                padding: 1.25rem;
            }

            /* Tabs scrollables */
            .tabs {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }
            .tabs::-webkit-scrollbar { display: none; }

            /* Modal fullscreen en móvil */
            .modal-content {
                width: 95%;
                max-height: 90vh;
                margin: 5vh auto;
            }

            /* Propinas más grandes */
            .tip-btn {
                padding: 1.25rem 0.5rem;
                font-size: 1.1rem;
            }

            /* Tabla responsive */
            .table-container {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            /* Sidebar como menu horizontal */
            .sidebar-nav {
                display: flex;
                flex-wrap: wrap;
                gap: 0.25rem;
            }
            .sidebar-item {
                flex: 1 1 auto;
                min-width: 80px;
                text-align: center;
                padding: 0.75rem 0.5rem;
                font-size: 0.8rem;
            }
            .sidebar-item span:first-child {
                display: block;
                font-size: 1.25rem;
                margin-bottom: 0.25rem;
            }

            /* Page header stack */
            .page-header {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }
            .page-header .action-buttons {
                width: 100%;
                justify-content: center;
            }
        }

        /* ===== NAVEGACIÓN MÓVIL MEJORADA ===== */
        /* Cuando se selecciona un panel, ocultar menú y mostrar solo contenido */
        @media (max-width: 768px) {
            /* Botón de regresar al menú - más prominente */
            .mobile-back-btn {
                display: none;
                position: fixed;
                top: 12px;
                left: 12px;
                z-index: 1001;
                background: var(--accent-primary);
                color: #000;
                border: none;
                padding: 10px 18px;
                border-radius: 25px;
                font-size: 1rem;
                font-weight: bold;
                box-shadow: 0 4px 15px rgba(57, 255, 20, 0.4);
                cursor: pointer;
                transition: transform 0.2s, box-shadow 0.2s;
            }
            .mobile-back-btn:active {
                transform: scale(0.95);
                box-shadow: 0 2px 8px rgba(57, 255, 20, 0.3);
            }

            /* Cuando está en modo contenido (panel seleccionado) */
            body.mobile-content-mode .sidebar {
                display: none !important;
            }
            body.mobile-content-mode .navbar {
                padding-left: 110px; /* Espacio para el botón */
            }
            body.mobile-content-mode .mobile-back-btn {
                display: flex;
                align-items: center;
                gap: 6px;
            }
            body.mobile-content-mode .main-content {
                padding-top: 0;
                margin-top: 0;
            }

            /* Cuando está en modo menú (viendo la lista de paneles) */
            body.mobile-menu-mode .main-content {
                display: none !important;
            }
            body.mobile-menu-mode .navbar {
                display: none !important;
            }
            body.mobile-menu-mode .sidebar {
                display: block !important;
                height: auto;
                min-height: calc(100vh - 60px);
            }
            /* Lista vertical como antes */
            body.mobile-menu-mode .sidebar-nav {
                display: flex;
                flex-direction: column;
                gap: 2px;
                padding: 0.5rem;
            }
            body.mobile-menu-mode .sidebar-item {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: flex-start;
                padding: 1rem;
                background: var(--bg-card);
                border-radius: 8px;
                border: 1px solid transparent;
                gap: 0.75rem;
            }
            body.mobile-menu-mode .sidebar-item.active {
                border-color: var(--accent-primary);
                background: rgba(57, 255, 20, 0.1);
            }
            body.mobile-menu-mode .sidebar-item span:first-child {
                font-size: 1.5rem;
                margin-bottom: 0;
            }
            body.mobile-menu-mode .sidebar-section-title {
                padding: 0.75rem 1rem 0.5rem;
                font-size: 0.75rem;
                text-transform: uppercase;
                color: var(--text-muted);
                letter-spacing: 1px;
            }
        }

        /* En desktop, nunca mostrar el botón de regresar */
        @media (min-width: 769px) {
            .mobile-back-btn {
                display: none !important;
            }
        }

        /* Forzar orientación vertical en móviles */
        @media (max-width: 768px) and (orientation: landscape) {
            body::before {
                content: "📱 Gira tu dispositivo a vertical";
                position: fixed;
                top: 0; left: 0; right: 0; bottom: 0;
                background: var(--bg-primary);
                color: var(--accent-primary);
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 1.5rem;
                text-align: center;
                padding: 2rem;
                z-index: 99999;
            }
        }

        /* Banner de reconectando */
        .reconnecting-banner {
            position: fixed;
            top: 0; left: 0; right: 0;
            background: linear-gradient(90deg, #ff6b35, #ff9f1c);
            color: #000;
            padding: 1rem;
            text-align: center;
            font-weight: bold;
            z-index: 99998;
            animation: pulse-reconnect 1.5s infinite;
        }
        @keyframes pulse-reconnect {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        /* Overlay bloqueante cuando sin conexión */
        .offline-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 1rem;
            z-index: 99997;
            color: var(--text-primary);
        }

        /* Spinner de carga */
        .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid var(--border-color);
            border-top-color: var(--accent-primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Preview de imagen en productos */
        .image-preview {
            width: 100%;
            max-width: 200px;
            height: 120px;
            background: var(--bg-tertiary);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border: 1px solid var(--border-color);
        }
        .image-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* ========== QR SCANNER MEJORADO ========== */
        /* Contenedor principal del scanner */
        [id$="-qr-reader"],
        [id$="-scanner"],
        #qr-reader {
            width: 100% !important;
            max-width: 100% !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            background: #000 !important;
            border-radius: 12px !important;
            overflow: hidden !important;
        }

        /* Video del scanner - CRÍTICO para móvil */
        [id$="-qr-reader"] video,
        [id$="-scanner"] video,
        #qr-reader video {
            width: 100% !important;
            height: auto !important;
            min-height: 280px !important;
            max-height: 350px !important;
            object-fit: cover !important;
            border-radius: 12px !important;
        }

        /* Región de escaneo centrada */
        [id$="__scan_region"],
        #qr-reader__scan_region {
            width: 100% !important;
            min-height: 280px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            position: relative !important;
        }

        /* Dashboard del scanner */
        [id$="__dashboard"],
        #qr-reader__dashboard {
            padding: 0.75rem !important;
            text-align: center !important;
            background: var(--bg-tertiary) !important;
            border-radius: 0 0 12px 12px !important;
            width: 100% !important;
        }

        /* Botones del dashboard */
        [id$="__dashboard"] button,
        #qr-reader__dashboard button {
            background: var(--accent-primary) !important;
            color: var(--bg-primary) !important;
            border: none !important;
            padding: 0.875rem 1.5rem !important;
            border-radius: 8px !important;
            font-weight: bold !important;
            cursor: pointer !important;
            font-size: 1rem !important;
            min-height: 48px !important;
        }

        /* Secciones del dashboard */
        #qr-reader__dashboard_section_csr,
        #qr-reader__dashboard_section_swaplink {
            display: flex;
            justify-content: center;
            margin-top: 0.5rem;
        }

        /* Ocultar texto innecesario del scanner */
        #qr-reader__status_span {
            color: var(--text-secondary) !important;
            font-size: 0.85rem !important;
        }

        /* Marco de escaneo */
        [id$="__qr_shaded_region"],
        #qr-reader__scan_region > img {
            opacity: 0.8 !important;
        }

        /* ========== MOBILE QR FIXES ========== */
        @media (max-width: 768px) {
            /* Contenedores de cámara en móvil */
            #entry-cam,
            #cashier-recharge-cam,
            #cashier-refund-cam,
            #w-cam,
            #admin-recharge-cam,
            #admin-refund-cam,
            .camera-container {
                width: 100% !important;
                min-height: 300px !important;
                max-height: 380px !important;
                aspect-ratio: 1 / 1 !important;
                margin: 0 auto !important;
                border-radius: 16px !important;
                overflow: hidden !important;
                background: #000 !important;
            }

            /* Video más alto en móvil para mejor detección */
            #entry-cam video,
            #cashier-recharge-cam video,
            #cashier-refund-cam video,
            #w-cam video,
            #admin-recharge-cam video,
            #admin-refund-cam video,
            .camera-container video,
            [id$="-qr-reader"] video,
            [id$="-scanner"] video {
                width: 100% !important;
                height: 100% !important;
                min-height: 300px !important;
                object-fit: cover !important;
                object-position: center !important;
            }

            /* Scanner interno centrado */
            [id$="-qr-reader"],
            [id$="-scanner"] {
                height: 100% !important;
                min-height: 300px !important;
            }

            /* Qrbox más grande en móvil para mejor detección */
            [id$="__scan_region"],
            #qr-reader__scan_region {
                min-height: 300px !important;
            }
        }

        /* Pantallas pequeñas */
        @media (max-width: 480px) {
            #entry-cam,
            #cashier-recharge-cam,
            #cashier-refund-cam,
            #w-cam,
            .camera-container {
                min-height: 280px !important;
                max-height: 320px !important;
            }
        }

        /* Mejoras para caja registradora */
        .cash-session-card {
            border-left: 4px solid var(--accent-primary);
            transition: all 0.3s;
        }
        .cash-session-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 20px var(--shadow-color, rgba(57, 255, 20, 0.2));
        }

        /* Mejoras responsivas adicionales */
        @media (max-width: 480px) {
            .page-title {
                font-size: 1.5rem;
            }
            .card-value {
                font-size: 1.5rem;
            }
            .modal-content {
                padding: 1rem;
            }
            .action-buttons {
                flex-direction: column;
            }
            .action-buttons .btn {
                width: 100%;
            }
        }

        /* Animación para notificaciones */
        .notification {
            transition: transform 0.3s, opacity 0.3s;
        }
        .notification:not(.show) {
            transform: translateX(100%);
            opacity: 0;
        }

        /* Input mode numeric helper */
        input[inputmode="numeric"] {
            font-variant-numeric: tabular-nums;
        }

        /* Mejor legibilidad en tablas móviles */
        @media (max-width: 768px) {
            .table td, .table th {
                padding: 0.75rem 0.5rem;
                font-size: 0.9rem;
            }
            .table .action-buttons {
                gap: 0.25rem;
            }
            .table .btn-sm {
                padding: 0.4rem 0.6rem;
                font-size: 0.8rem;
            }
        }

        /* Barra de estadísticas */
        .stat-bar {
            width: 100%;
            height: 8px;
            background: var(--bg-tertiary);
            border-radius: 4px;
            overflow: hidden;
        }
        .stat-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--accent-primary), var(--accent-neon));
            border-radius: 4px;
            transition: width 0.5s ease;
        }

        /* Tabs */
        .tabs-container {
            display: flex;
            gap: 0.5rem;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 0;
        }
        .tab-btn {
            padding: 0.75rem 1.5rem;
            background: transparent;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 1rem;
            transition: all 0.2s ease;
            border-bottom: 3px solid transparent;
            margin-bottom: -1px;
        }
        .tab-btn:hover {
            color: var(--text-primary);
            background: rgba(57, 255, 20, 0.05);
        }
        .tab-btn.active {
            color: var(--accent-primary);
            border-bottom-color: var(--accent-primary);
            background: rgba(57, 255, 20, 0.1);
        }

        /* Modal Sizes */
        .modal-content.modal-large {
            max-width: 800px;
            width: 95%;
        }
        .modal-content.modal-xl {
            max-width: 1000px;
            width: 95%;
        }
        @media (max-width: 768px) {
            .modal-content.modal-large,
            .modal-content.modal-xl {
                max-width: 100%;
                width: 100%;
                margin: 0;
                border-radius: 0;
                max-height: 100vh;
            }
        }

        /* ===== LIVE DASHBOARD RESPONSIVE ===== */
        @media (max-width: 992px) {
            #main-content > div > div[style*="grid-template-columns:1fr 1fr"] {
                grid-template-columns: 1fr !important;
            }
        }

        /* ===== PWA INSTALL BANNER ===== */
        .pwa-install-banner {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--accent-primary);
            color: var(--bg-primary);
            padding: 1rem 1.5rem;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            z-index: 10000;
            display: flex;
            align-items: center;
            gap: 1rem;
            animation: slideUp 0.3s ease;
        }
        @keyframes slideUp {
            from { transform: translate(-50%, 100%); opacity: 0; }
            to { transform: translate(-50%, 0); opacity: 1; }
        }

        /* ===== ACTIVITY FEED STYLING ===== */
        #activity-feed::-webkit-scrollbar {
            width: 6px;
        }
        #activity-feed::-webkit-scrollbar-track {
            background: var(--bg-tertiary);
            border-radius: 3px;
        }
        #activity-feed::-webkit-scrollbar-thumb {
            background: var(--accent-primary);
            border-radius: 3px;
        }

        /* ===== STAT CARD IMPROVEMENTS ===== */
        .stat-card-live .stat-value {
            font-size: 2rem;
            line-height: 1.2;
        }
        @media (max-width: 576px) {
            .stat-card-live .stat-value {
                font-size: 1.5rem;
            }
            .stat-card-live {
                padding: 1rem;
            }
        }

        /* ==================== MEJORAS EMPRESARIALES ====================*/

        /* ===== ACCESIBILIDAD ===== */
        :focus-visible {
            outline: 2px solid var(--accent-primary);
            outline-offset: 2px;
        }

        .btn:focus-visible,
        .form-input:focus-visible,
        .form-select:focus-visible {
            outline: 2px solid var(--accent-primary);
            outline-offset: 2px;
            box-shadow: 0 0 0 4px rgba(57, 255, 20, 0.2);
        }

        /* Skip link para accesibilidad */
        .skip-link {
            position: absolute;
            top: -40px;
            left: 0;
            background: var(--accent-primary);
            color: var(--bg-primary);
            padding: 8px 16px;
            z-index: 10001;
            transition: top 0.3s;
        }
        .skip-link:focus {
            top: 0;
        }

        /* Reducir movimiento para usuarios que lo prefieren */
        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* ===== ESTADOS DE CARGA PROFESIONALES ===== */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.85);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            backdrop-filter: blur(4px);
        }

        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 3px solid var(--bg-tertiary);
            border-top-color: var(--accent-primary);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        .loading-text {
            margin-top: 1rem;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .loading-progress {
            width: 200px;
            height: 4px;
            background: var(--bg-tertiary);
            border-radius: 2px;
            margin-top: 1rem;
            overflow: hidden;
        }

        .loading-progress-bar {
            height: 100%;
            background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
            border-radius: 2px;
            animation: progress-indeterminate 1.5s ease-in-out infinite;
        }

        @keyframes progress-indeterminate {
            0% { transform: translateX(-100%); width: 50%; }
            50% { width: 30%; }
            100% { transform: translateX(300%); width: 50%; }
        }

        /* ===== BOTONES MEJORADOS ===== */
        .btn {
            position: relative;
            overflow: hidden;
        }

        .btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.4s, height 0.4s;
        }

        .btn:active::after {
            width: 200%;
            height: 200%;
        }

        .btn:disabled,
        .btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            pointer-events: none;
        }

        .btn-loading {
            color: transparent !important;
            pointer-events: none;
        }

        .btn-loading::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 20px;
            height: 20px;
            margin: -10px 0 0 -10px;
            border: 2px solid currentColor;
            border-top-color: transparent;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        /* ===== INPUTS MEJORADOS ===== */
        .form-group {
            position: relative;
        }

        .form-input-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            pointer-events: none;
        }

        .form-input.has-icon {
            padding-left: 40px;
        }

        .form-input-clear {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            padding: 4px;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .form-input:not(:placeholder-shown) + .form-input-clear {
            opacity: 1;
        }

        .form-input-clear:hover {
            color: var(--accent-red);
        }

        /* Validación visual */
        .form-input.is-valid {
            border-color: var(--accent-green);
        }

        .form-input.is-invalid {
            border-color: var(--accent-red);
        }

        .form-error {
            color: var(--accent-red);
            font-size: 0.8rem;
            margin-top: 0.25rem;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .form-hint {
            color: var(--text-muted);
            font-size: 0.8rem;
            margin-top: 0.25rem;
        }

        /* ===== TOOLTIPS ===== */
        [data-tooltip] {
            position: relative;
        }

        [data-tooltip]::before,
        [data-tooltip]::after {
            position: absolute;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.2s, visibility 0.2s;
            z-index: 1000;
        }

        [data-tooltip]::before {
            content: attr(data-tooltip);
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            padding: 0.5rem 0.75rem;
            background: var(--bg-primary);
            color: var(--text-primary);
            font-size: 0.8rem;
            white-space: nowrap;
            border-radius: 6px;
            border: 1px solid var(--border-color);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            margin-bottom: 8px;
        }

        [data-tooltip]::after {
            content: '';
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 6px solid transparent;
            border-top-color: var(--border-color);
            margin-bottom: -4px;
        }

        [data-tooltip]:hover::before,
        [data-tooltip]:hover::after {
            opacity: 1;
            visibility: visible;
        }

        /* ===== TARJETAS MEJORADAS ===== */
        .card-clickable {
            cursor: pointer;
        }

        .card-clickable:hover {
            border-color: var(--accent-primary);
        }

        .card-selected {
            border-color: var(--accent-primary);
            box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.3), var(--shadow-green);
        }

        .card-header-actions {
            display: flex;
            gap: 0.5rem;
        }

        .card-footer {
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        /* ===== TABLAS MEJORADAS ===== */
        .table-responsive {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .table-striped tbody tr:nth-child(odd) {
            background: rgba(255, 255, 255, 0.02);
        }

        .table-hover tbody tr {
            transition: background 0.15s;
        }

        .table-hover tbody tr:hover {
            background: rgba(57, 255, 20, 0.05);
        }

        .table-sortable th {
            cursor: pointer;
            user-select: none;
        }

        .table-sortable th:hover {
            color: var(--accent-primary);
        }

        .table-sortable th.sorted-asc::after {
            content: ' ▲';
            font-size: 0.7em;
        }

        .table-sortable th.sorted-desc::after {
            content: ' ▼';
            font-size: 0.7em;
        }

        /* Paginación */
        .pagination {
            display: flex;
            gap: 0.25rem;
            justify-content: center;
            margin-top: 1rem;
        }

        .pagination-btn {
            padding: 0.5rem 0.75rem;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s;
        }

        .pagination-btn:hover {
            border-color: var(--accent-primary);
            color: var(--accent-primary);
        }

        .pagination-btn.active {
            background: var(--accent-primary);
            color: var(--bg-primary);
            border-color: var(--accent-primary);
        }

        .pagination-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        /* ===== ALERTAS ===== */
        .alert {
            padding: 1rem 1.25rem;
            border-radius: 8px;
            margin-bottom: 1rem;
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
        }

        .alert-icon {
            font-size: 1.25rem;
            flex-shrink: 0;
        }

        .alert-content {
            flex: 1;
        }

        .alert-title {
            font-weight: 600;
            margin-bottom: 0.25rem;
        }

        .alert-message {
            font-size: 0.9rem;
            opacity: 0.9;
        }

        .alert-success {
            background: rgba(50, 255, 50, 0.1);
            border: 1px solid var(--accent-green);
            color: var(--accent-green);
        }

        .alert-warning {
            background: rgba(255, 200, 50, 0.1);
            border: 1px solid var(--accent-orange);
            color: var(--accent-orange);
        }

        .alert-error {
            background: rgba(255, 80, 80, 0.1);
            border: 1px solid var(--accent-red);
            color: var(--accent-red);
        }

        .alert-info {
            background: rgba(100, 200, 255, 0.1);
            border: 1px solid var(--accent-blue);
            color: var(--accent-blue);
        }

        .alert-dismissible {
            position: relative;
            padding-right: 3rem;
        }

        .alert-close {
            position: absolute;
            top: 0.75rem;
            right: 0.75rem;
            background: none;
            border: none;
            color: inherit;
            opacity: 0.6;
            cursor: pointer;
            padding: 0.25rem;
        }

        .alert-close:hover {
            opacity: 1;
        }

        /* ===== DROPDOWNS ===== */
        .dropdown {
            position: relative;
            display: inline-block;
        }

        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            min-width: 180px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-8px);
            transition: all 0.2s;
            z-index: 100;
        }

        .dropdown.open .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(4px);
        }

        .dropdown-item {
            padding: 0.75rem 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-secondary);
            cursor: pointer;
            transition: background 0.15s, color 0.15s;
        }

        .dropdown-item:first-child {
            border-radius: 8px 8px 0 0;
        }

        .dropdown-item:last-child {
            border-radius: 0 0 8px 8px;
        }

        .dropdown-item:hover {
            background: var(--bg-tertiary);
            color: var(--text-primary);
        }

        .dropdown-item.danger {
            color: var(--accent-red);
        }

        .dropdown-divider {
            height: 1px;
            background: var(--border-color);
            margin: 0.25rem 0;
        }

        /* ===== AVATARS ===== */
        .avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--bg-tertiary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            color: var(--text-primary);
            flex-shrink: 0;
        }

        .avatar-sm { width: 32px; height: 32px; font-size: 0.8rem; }
        .avatar-lg { width: 56px; height: 56px; font-size: 1.25rem; }
        .avatar-xl { width: 80px; height: 80px; font-size: 1.5rem; }

        .avatar img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
        }

        .avatar-group {
            display: flex;
        }

        .avatar-group .avatar {
            margin-left: -8px;
            border: 2px solid var(--bg-card);
        }

        .avatar-group .avatar:first-child {
            margin-left: 0;
        }

        /* ===== CHIPS/TAGS ===== */
        .chip {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            padding: 0.25rem 0.75rem;
            background: var(--bg-tertiary);
            border-radius: 20px;
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .chip-removable {
            padding-right: 0.25rem;
        }

        .chip-remove {
            width: 18px;
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            border: none;
            color: inherit;
            cursor: pointer;
            font-size: 0.7rem;
        }

        .chip-remove:hover {
            background: var(--accent-red);
            color: white;
        }

        /* ===== EMPTY STATES MEJORADOS ===== */
        .empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 3rem 2rem;
            text-align: center;
        }

        .empty-state-illustration {
            width: 120px;
            height: 120px;
            margin-bottom: 1.5rem;
            opacity: 0.6;
        }

        .empty-state-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
        }

        .empty-state-description {
            color: var(--text-muted);
            max-width: 300px;
            margin-bottom: 1.5rem;
        }

        /* ===== SIDEBAR MEJORADO ===== */
        .sidebar-footer {
            margin-top: auto;
            padding-top: 1rem;
            border-top: 1px solid var(--border-color);
        }

        .sidebar-user {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem;
            border-radius: 8px;
            background: var(--bg-tertiary);
        }

        .sidebar-user-info {
            flex: 1;
            min-width: 0;
        }

        .sidebar-user-name {
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .sidebar-user-role {
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        /* ===== NOTIFICACIONES TOAST MEJORADAS ===== */
        .toast-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            z-index: 2000;
        }

        .toast {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1rem 1.25rem;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            min-width: 280px;
            max-width: 400px;
            animation: toast-in 0.3s ease;
        }

        .toast.toast-out {
            animation: toast-out 0.3s ease forwards;
        }

        @keyframes toast-in {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes toast-out {
            from {
                transform: translateX(0);
                opacity: 1;
            }
            to {
                transform: translateX(100%);
                opacity: 0;
            }
        }

        .toast-icon {
            font-size: 1.25rem;
            flex-shrink: 0;
        }

        .toast-content {
            flex: 1;
        }

        .toast-title {
            font-weight: 600;
            margin-bottom: 0.125rem;
        }

        .toast-message {
            font-size: 0.875rem;
            color: var(--text-secondary);
        }

        .toast-success { border-left: 3px solid var(--accent-green); }
        .toast-error { border-left: 3px solid var(--accent-red); }
        .toast-warning { border-left: 3px solid var(--accent-orange); }
        .toast-info { border-left: 3px solid var(--accent-blue); }

        /* ===== PROGRESS STEPS ===== */
        .steps {
            display: flex;
            justify-content: space-between;
            margin-bottom: 2rem;
        }

        .step {
            display: flex;
            flex-direction: column;
            align-items: center;
            flex: 1;
            position: relative;
        }

        .step:not(:last-child)::after {
            content: '';
            position: absolute;
            top: 16px;
            left: 50%;
            width: 100%;
            height: 2px;
            background: var(--border-color);
        }

        .step.completed:not(:last-child)::after {
            background: var(--accent-green);
        }

        .step-number {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--bg-tertiary);
            border: 2px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            z-index: 1;
            transition: all 0.3s;
        }

        .step.active .step-number {
            border-color: var(--accent-primary);
            background: var(--accent-primary);
            color: var(--bg-primary);
        }

        .step.completed .step-number {
            border-color: var(--accent-green);
            background: var(--accent-green);
            color: var(--bg-primary);
        }

        .step-label {
            margin-top: 0.5rem;
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        .step.active .step-label,
        .step.completed .step-label {
            color: var(--text-primary);
        }

        /* ===== KEYBOARD SHORTCUTS ===== */
        kbd {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 24px;
            height: 24px;
            padding: 0 6px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 4px;
            font-family: inherit;
            font-size: 0.75rem;
            color: var(--text-secondary);
            box-shadow: 0 1px 0 var(--border-color);
        }

        /* ===== PRINT STYLES ===== */
        @media print {
            .sidebar,
            .navbar,
            .btn,
            .notification,
            .modal {
                display: none !important;
            }

            .main-content {
                padding: 0 !important;
            }

            .card {
                box-shadow: none !important;
                border: 1px solid #ddd !important;
                break-inside: avoid;
            }

            body {
                background: white !important;
                color: black !important;
            }

            .page-title {
                -webkit-text-fill-color: black !important;
                background: none !important;
            }
        }

        /* ===== HIGH CONTRAST MODE ===== */
        @media (prefers-contrast: high) {
            :root {
                --border-color: rgba(255, 255, 255, 0.5);
                --text-muted: rgba(255, 255, 255, 0.7);
            }

            .btn {
                border: 2px solid currentColor;
            }

            .card {
                border-width: 2px;
            }
        }

        /* ===== MASTER PANEL STYLES ===== */
        .master-org-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 1.25rem;
            transition: all 0.2s;
        }

        .master-org-card:hover {
            border-color: var(--accent-primary);
            box-shadow: 0 4px 20px rgba(57, 255, 20, 0.15);
        }

        .master-org-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 1rem;
        }

        .master-org-name {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .master-org-slug {
            font-size: 0.8rem;
            color: var(--text-muted);
            font-family: monospace;
        }

        .master-org-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.75rem;
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid var(--border-color);
        }

        .master-stat {
            text-align: center;
        }

        .master-stat-value {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--accent-primary);
        }

        .master-stat-label {
            font-size: 0.7rem;
            color: var(--text-muted);
            text-transform: uppercase;
        }

        /* ===== SCROLL COMPORTAMIENTO ===== */
        html {
            scroll-behavior: smooth;
        }

        /* Scrollbar personalizado */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg-secondary);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--bg-tertiary);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--accent-primary);
        }

        /* Firefox scrollbar */
        * {
            scrollbar-width: thin;
            scrollbar-color: var(--bg-tertiary) var(--bg-secondary);
        }
