*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; width: 100%; }
                :root {
            --bg-color: #f4f6f9;
            --sidebar-bg: #ffffff;
            --sidebar-hover: #f3f4f6;
            --sidebar-text: #4b5563;
            --sidebar-active: #007bff;
            --card-bg: #ffffff;
            --text-main: #333333;
            --text-muted: #6c757d;
            --success: #28a745;
            --accent: #dc3545;
            --primary: #007bff;
            --secondary: #17a2b8;
            --header-bg: #ffffff;
            --border-color: #dee2e6;
        }

        /* Custom Modal & Toast */
        .custom-modal-overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px);
            display: none; align-items: center; justify-content: center;
            z-index: 9999; opacity: 0; transition: opacity 0.3s;
        }
        .custom-modal-overlay.active { display: flex; opacity: 1; }
        .custom-modal {
            background: var(--card-bg); border: 1px solid var(--border-color);
            border-radius: 16px; padding: 25px 30px; width: 90%; max-width: 400px;
            text-align: center; box-shadow: 0 15px 30px rgba(0,0,0,0.5);
            transform: translateY(20px); transition: transform 0.3s;
        }
        .custom-modal-overlay.active .custom-modal { transform: translateY(0); }
        .custom-modal-title { font-size: 1.3rem; color: var(--text-main); margin-bottom: 10px; font-weight: 700; }
        .custom-modal-text { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 25px; }
        .custom-modal-actions { display: flex; gap: 15px; justify-content: center; }
        .custom-modal-btn {
            padding: 10px 20px; border-radius: 8px; border: none;
            font-family: 'Prompt', sans-serif; font-weight: 600; cursor: pointer; flex: 1;
            transition: opacity 0.2s;
        }
        .custom-modal-btn:hover { opacity: 0.8; }
        .btn-cancel { background: #e5e7eb; color: #374151; }
        .btn-confirm { background: #ef4444; color: #ffffff; }

        .toast-container {
            position: fixed; top: 20px; right: 20px; display: flex;
            flex-direction: column; gap: 10px; z-index: 99999;
        }
        .custom-toast {
            color: #ffffff; padding: 12px 20px; border-radius: 8px; font-weight: 600;
            font-size: 0.9rem; display: flex; align-items: center; gap: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            animation: toast-in 0.3s forwards, toast-out 0.3s forwards 2.7s;
        }
        .toast-success { background: #3b82f6; }
        .toast-error { background: #ef4444; }

        @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; } }
        
        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        ::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.2); 
            border-radius: 10px;
        }
        ::-webkit-scrollbar-thumb {
            background: rgba(0, 198, 255, 0.5); /* var(--primary) with opacity */
            border-radius: 10px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary); 
        }
        body {
            font-family: 'Prompt', sans-serif;
            background: var(--bg-color);
            color: var(--text-main);
            margin: 0;
            padding: 0;
            min-height: 100vh;
            display: flex;
            box-sizing: border-box;
            overflow-x: hidden;
        
            overflow-x: hidden !important;
        }
        .container {
            width: 100%;
        }
        .app-wrapper {
            display: flex;
            width: 100%;
            min-height: 100vh;
        }
        
        /* Sidebar Styles */
        .main-sidebar {
            border-right: 1px solid var(--border-color);
            width: 250px;
            background: var(--sidebar-bg);
            color: var(--sidebar-text);
            display: flex;
            flex-direction: column;
            transition: all 0.3s;
            position: fixed;
            height: 100vh;
            z-index: 1000;
            left: 0;
            top: 0;
        }
        .sidebar-header {
            padding: 20px;
            text-align: center;
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-main);
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .close-sidebar {
            display: none;
            cursor: pointer;
            font-size: 1.5rem;
            color: var(--text-main);
        }
        .sidebar-user {
            padding: 20px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .sidebar-menu {
            list-style: none;
            padding: 0;
            margin: 0;
            flex: 1;
            overflow-y: auto;
        }
        .sidebar-menu li {
            border-bottom: 1px solid var(--border-color);
        }
        .sidebar-menu a {
            display: block;
            padding: 15px 20px;
            color: var(--sidebar-text);
            text-decoration: none;
            transition: all 0.2s;
            font-size: 0.95rem;
        }
        .sidebar-menu a:hover {
            background: var(--sidebar-hover);
            color: var(--primary);
        }
        .sidebar-menu a.active {
            background: var(--sidebar-active);
            color: #fff;
            border-left: 4px solid #fff;
        }
        .sidebar-footer {
            padding: 20px;
            border-top: 1px solid rgba(255,255,255,0.1);
        }
        
        /* Main Content Styles */
        .main-content {
            flex: 1;
            margin-left: 250px;
            display: flex;
            flex-direction: column;
            transition: all 0.3s;
            min-height: 100vh;
            width: calc(100% - 250px);
        }
        .top-navbar {
            background: var(--header-bg);
            padding: 15px 20px;
            display: flex;
            align-items: center;
            border-bottom: 1px solid var(--border-color);
            box-shadow: 0 2px 4px rgba(0,0,0,0.04);
            position: sticky;
            top: 0;
            z-index: 999;
        }
        .hamburger-btn {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--text-main);
            margin-right: 15px;
            display: none;
        }
        .content-wrapper {
            padding: 30px;
            background: var(--bg-color);
            flex: 1;
        }
        
        
        .user-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }
        .user-card {
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            display: flex;
            flex-direction: column;
            position: relative;
            transition: box-shadow 0.2s;
        }
        .user-card:hover {
            box-shadow: 0 8px 15px rgba(0,0,0,0.1);
        }
        .user-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px dashed var(--border-color);
        }
        .user-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: #f3f4f6;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: #9ca3af;
            overflow: hidden;
            border: 2px solid #e5e7eb;
        }
        .user-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .user-info {
            flex: 1;
            overflow: hidden;
        }
        .user-name {
            font-weight: 600;
            color: var(--text-main);
            font-size: 1.05rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .user-email {
            color: var(--text-muted);
            font-size: 0.85rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .user-uid {
            font-size: 0.75rem;
            color: #6b7280;
            font-family: monospace;
            background: #f3f4f6;
            padding: 3px 8px;
            border-radius: 6px;
            margin-top: 5px;
            display: inline-block;
            border: 1px solid #e5e7eb;
        }
        .user-uid:hover {
            background: #e5e7eb;
        }
        .user-body {
            flex: 1;
            font-size: 0.9rem;
            color: var(--text-main);
        }
        .user-stat {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }
        .user-stat-label {
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .user-stat-label i {
            width: 16px;
            text-align: center;
            color: #9ca3af;
        }
        .badge {
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 600;
        }
        .badge-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
        .badge-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
        .badge-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
        .badge-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
        .badge-gray { background: #f3f4f6; color: #4b5563; border: 1px solid #e5e7eb; }
        .user-footer {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .btn-delete-user {
            background: #fff;
            color: #ef4444;
            border: 1px solid #fecaca;
            padding: 8px 15px;
            border-radius: 6px;
            cursor: pointer;
            font-family: 'Prompt', sans-serif;
            font-size: 0.85rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s;
        }
        .btn-delete-user:hover {
            background: #fee2e2;
            border-color: #fca5a5;
        }

          /* Card Sections */
        #lotto-admin-section, #lao-admin-section, #promo-admin-section, #fcm-admin-section, #user-admin-section {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 30px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            margin-bottom: 30px;
        }
        
        @media (max-width: 768px) {
            .hamburger-btn { display: inline-block; }
            .main-sidebar {
            border-right: 1px solid var(--border-color);
                left: -250px;
            }
            .main-sidebar.mobile-open {
                left: 0;
            }
            .main-content {
                margin-left: 0;
                width: 100%;
            }
            .close-sidebar {
                display: block;
            }
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        h1 { text-align: left; font-size: 2rem; margin-bottom: 20px; margin-top: 0; color: var(--primary); }
        
        .header-actions {
            display: flex;
            justify-content: flex-end;
            margin-bottom: 20px;
        }
        .btn-logout {
            background: rgba(255, 75, 43, 0.2);
            border: 1px solid rgba(255, 75, 43, 0.5);
            color: #ff8a75;
            padding: 8px 16px;
            border-radius: 8px;
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s;
            cursor: pointer;
        }
        .btn-logout:hover {
            background: rgba(255, 75, 43, 0.4);
            color: var(--text-main);
        }
        .form-group {
            display: flex;
            gap: 10px;
            margin-bottom: 30px;
            justify-content: center;
            flex-wrap: wrap;
        }
        .form-group input[type="text"], .check-input { flex: 1; min-width: 180px; padding: 12px 20px; border-radius: 8px; border: 1px solid var(--border-color); background: #fff; color: var(--text-main);
            font-family: 'Prompt', sans-serif;
            font-size: 1rem;
            outline: none;
        }
        .form-group button, .btn-check, .btn-archive, .btn-login {
            padding: 15px 30px;
            border-radius: 50px;
            border: none;
            background: linear-gradient(to right, var(--primary), var(--secondary));
            color: var(--text-main);
            font-family: 'Prompt', sans-serif;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
            justify-content: center;
        }
        .btn-archive {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #fff;
        }
        .btn-archive:hover {
            background: rgba(255, 255, 255, 0.2);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }
        .form-group button:hover, .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0, 114, 255, 0.4);
        }
        .form-group button:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        .main-layout {
            display: grid;
            grid-template-columns: 1fr;
            gap: 30px;
        }
        @media (min-width: 900px) {
            .main-layout {
                grid-template-columns: 320px 1fr;
            }
        }
        
        .archive-sidebar {
            background: #f8f9fa;
            border-radius: 16px;
            padding: 20px;
            border: 1px solid rgba(255,255,255,0.05);
            max-height: 800px;
            overflow-y: auto;
        }
        .sidebar h3 {
            margin-top: 0;
            color: var(--primary);
            font-size: 1.1rem;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            padding-bottom: 15px;
            margin-bottom: 15px;
        }
        .saved-item { background: #fff; border-radius: 12px; padding: 15px; margin-bottom: 12px; border: 1px solid var(--border-color); box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            transition: all 0.2s;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .saved-item:hover { background: #f1f5f9; box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            transform: translateX(5px);
        }
        .saved-title {
            font-weight: 600;
            color: var(--text-main);
        }
        .saved-meta {
            font-size: 0.8rem;
            color: var(--text-muted);
        }
        .btn-view {
            background: rgba(0, 198, 255, 0.1);
            color: var(--primary);
            border: 1px solid rgba(0, 198, 255, 0.3);
            padding: 8px 10px;
            border-radius: 6px;
            text-decoration: none;
            font-size: 0.85rem;
            text-align: center;
            transition: all 0.2s;
            font-weight: 600;
            cursor: pointer;
            border: none;
            width: 100%;
        }
        .btn-view:hover {
            background: rgba(0, 198, 255, 0.3);
            color: var(--text-main);
        }

        .status-box {
            padding: 20px;
            border-radius: 12px;
            text-align: center;
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 30px;
        }
        .status-success {
            background-color: rgba(16, 185, 129, 0.1);
            color: var(--success);
            border: 1px solid rgba(16, 185, 129, 0.3);
        }
        .status-error {
            background-color: rgba(255, 75, 43, 0.1);
            color: var(--accent);
            border: 1px solid rgba(255, 75, 43, 0.3);
        }
        .status-loading {
            background-color: rgba(0, 198, 255, 0.1);
            color: var(--primary);
            border: 1px solid rgba(0, 198, 255, 0.3);
        }
        
        .data-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }
        .data-card { background: #fff; border-radius: 16px; padding: 20px; text-align: center; border: 1px solid var(--border-color); box-shadow: 0 2px 5px rgba(0,0,0,0.02);
        }
        .data-card h3 {
            margin: 0 0 10px 0;
            color: var(--primary);
            font-size: 1.1rem;
        }
        .data-card .number {
            font-size: 1.6rem;
            font-weight: 700;
            letter-spacing: 2px;
            color: var(--text-main);
        }
        
        .prize-section { margin-top: 20px; background: #f8f9fa; border-radius: 12px; padding: 20px; border: 1px solid var(--border-color);
        }
        .prize-title {
            color: var(--secondary);
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 10px;
            margin-bottom: 15px;
            margin-top: 0;
            font-size: 1.1rem;
        }
        .prize-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
            gap: 10px;
        }
        .prize-number { background: #fff; padding: 8px 5px; text-align: center; border-radius: 6px; font-family: monospace; font-size: 1rem; color: var(--text-main); border: 1px solid var(--border-color); font-weight: bold;
        }
        
        .spinner {
            border: 4px solid rgba(255,255,255,0.1);
            border-left-color: var(--primary);
            border-radius: 50%;
            width: 24px;
            height: 24px;
            animation: spin 1s linear infinite;
            display: inline-block;
            vertical-align: middle;
            margin-right: 10px;
        }
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

        .archive-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 15px;
        }
        .archive-item { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; background: #fff; border: 1px solid var(--border-color); box-shadow: 0 2px 4px rgba(0,0,0,0.02);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s;
            text-align: center;
        }
        .archive-item:hover { background: #e0f2fe; border-color: #bae6fd;
            transform: translateY(-3px);
        }
        .archive-item span.title {
            font-size: 1.1rem;
            color: var(--text-main);
            margin-bottom: 5px;
            font-weight: 600;
        }
        .archive-item span.code {
            color: var(--text-muted);
            font-size: 0.9em;
        }

        #login-section, #app-section {
            display: none;
        }
        
        /* Admin Form Styles */
        .admin-form-group { margin-bottom: 15px; text-align: left; }
        .admin-form-group label { display: block; margin-bottom: 5px; color: var(--primary); font-weight: 600; }
        .admin-form-group input, .admin-form-group textarea, .admin-form-group select { width: 100%; padding: 10px; border-radius: 8px; background: #fff; border: 1px solid var(--border-color); color: var(--text-main); font-family: 'Prompt', sans-serif; box-sizing: border-box; }
        .admin-form-group textarea { min-height: 80px; resize: vertical; }

        /* Promo Card Layout */
        .promo-card {
            background: white; 
            border: 1px solid var(--border-color); 
            border-radius: 8px; 
            padding: 12px 15px; 
            display: grid; 
            grid-template-columns: 2fr 1.5fr auto; 
            gap: 10px; 
            align-items: center; 
            box-shadow: 0 1px 3px rgba(0,0,0,0.02); 
            margin-bottom: 0; 
            transition: transform 0.2s;
        }
        .promo-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        }
        .promo-col-2 {
            border-left: 1px dashed #cbd5e1; 
            padding-left: 15px; 
            height: 100%; 
            display: flex; 
            flex-direction: column; 
            justify-content: center;
        }
        .promo-col-3 {
            display: flex; 
            gap: 8px;
        }
        
        @media (max-width: 768px) {
            .promo-card {
                grid-template-columns: 1fr;
                gap: 12px;
                padding: 15px;
            }
            .promo-col-2 {
                border-left: none;
                border-top: 1px dashed #cbd5e1;
                padding-left: 0;
                padding-top: 12px;
            }
            .promo-col-3 {
                justify-content: flex-end;
                margin-top: 5px;
            }
        }

        /* App Landing Page Styles */
        .hero-section {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 40px;
            text-align: left;
            padding: 20px;
        }
        @media (max-width: 768px) {
            .hero-section {
                flex-direction: column;
                text-align: center;
            }
        }
        .hero-content {
            flex: 1;
        }
        .hero-content h1 {
            text-align: left;
            font-size: 3rem;
            margin-bottom: 20px;
            line-height: 1.2;
            background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        @media (max-width: 768px) {
            .hero-content h1 { text-align: center; font-size: 2.2rem; }
        }
        .hero-content p {
            font-size: 1.1rem;
            color: var(--text-muted);
            margin-bottom: 30px;
            line-height: 1.6;
        }
        .hero-badges {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }
        @media (max-width: 768px) {
            .hero-badges { justify-content: center; }
        }
        .play-badge {
            display: inline-block;
            transition: transform 0.2s;
        }
        .play-badge:hover {
            transform: scale(1.05);
        }
        .hero-image {
            flex: 1;
            display: flex;
            justify-content: center;
        }
        .hero-image img {
            max-width: 100%;
            height: auto;
            border-radius: 24px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.4);
            border: 4px solid rgba(255,255,255,0.1);
        }
        
        /* Secret Footer */
        .secret-footer {
            margin-top: 50px;
            text-align: center;
            font-size: 0.85rem;
            color: rgba(255,255,255,0.2);
            user-select: none;
            cursor: default;
        }

        /* Secret Admin Modal */
        .admin-modal {
            display: none;
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.85);
            backdrop-filter: blur(8px);
            z-index: 9999;
            align-items: center;
            justify-content: center;
        }
        .admin-modal-content {
            background: var(--bg-color);
            border: 1px solid rgba(255,255,255,0.1);
            padding: 40px;
            border-radius: 24px;
            max-width: 400px;
            width: 90%;
            text-align: center;
            box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
            position: relative;
        }
        .close-modal {
            position: absolute;
            top: 15px; right: 20px;
            color: var(--text-muted);
            font-size: 1.5rem;
            cursor: pointer;
        }
        .close-modal:hover { color: var(--text-main); }
    
        /* Landing Page Styles */
        .landing-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            min-height: 100vh;
            padding: 40px 20px;
            gap: 60px;
            position: relative;
            z-index: 10;
        }
        .landing-content {
            flex: 1;
            max-width: 550px;
            animation: slideInLeft 0.8s ease-out;
        }
        .landing-content h1 {
            font-size: 4rem;
            font-weight: 800;
            line-height: 1.1;
            color: var(--text-main);
            margin-bottom: 24px;
            background: linear-gradient(135deg, #0ea5e9, #2563eb);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .landing-content p {
            font-size: 1.15rem;
            color: var(--text-muted);
            margin-bottom: 40px;
            line-height: 1.6;
        }
        .landing-image-wrapper {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            animation: slideInRight 0.8s ease-out;
            position: relative;
        }
        .landing-image-wrapper::before {
            content: '';
            position: absolute;
            width: 120%;
            height: 120%;
            background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(255,255,255,0) 70%);
            z-index: -1;
            top: -10%;
            left: -10%;
        }
        .landing-image-wrapper img {
            width: 100%;
            max-width: 500px;
            border-radius: 24px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            border: 1px solid rgba(255,255,255,0.5);
        }
        .store-badge img {
            height: 60px;
            transition: transform 0.2s;
        }
        .store-badge:hover img {
            transform: scale(1.05);
        }
        .landing-footer {
            position: absolute;
            bottom: 30px;
            left: 0;
            width: 100%;
            text-align: center;
            color: var(--text-muted);
            font-size: 0.9rem;
            z-index: 10;
        }
        .landing-footer a {
            color: var(--text-muted);
            text-decoration: none;
            margin-left: 10px;
        }
        .landing-footer a:hover {
            color: var(--primary);
        }
        @keyframes slideInLeft {
            from { opacity: 0; transform: translateX(-50px); }
            to { opacity: 1; transform: translateX(0); }
        }
        @keyframes slideInRight {
            from { opacity: 0; transform: translateX(50px); }
            to { opacity: 1; transform: translateX(0); }
        }
        @media (max-width: 900px) {
            .landing-container {
                flex-direction: column;
                text-align: center;
                justify-content: center;
                gap: 40px;
            }
            .landing-content h1 {
                font-size: 3rem;
            }
        }


        /* Dashboard Styles */
        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-bottom: 20px;
        }
        .dashboard-card {
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }
        .dashboard-card h3 {
            font-size: 0.85rem;
            color: var(--text-muted);
            text-transform: uppercase;
            font-weight: 600;
            margin-top: 0;
            margin-bottom: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .dashboard-card h3 i.fa-check-circle {
            color: #10b981;
        }
        .active-users-big {
            font-size: 3rem;
            font-weight: 300;
            color: var(--text-main);
            margin-bottom: 5px;
        }
        .active-users-label {
            font-size: 0.75rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 1px dashed var(--border-color);
            padding-bottom: 15px;
            margin-bottom: 15px;
        }
        .dashboard-table-2col {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
        .dash-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.9rem;
        }
        .dash-table th {
            text-align: left;
            color: var(--text-muted);
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.75rem;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border-color);
        }
        .dash-table td {
            padding: 12px 0;
            color: var(--text-main);
            border-bottom: 1px solid rgba(0,0,0,0.02);
        }
        @media (max-width: 1024px) {
            .dashboard-grid { grid-template-columns: 1fr; }
            .dashboard-table-2col { grid-template-columns: 1fr; }
        }

        @media (max-width: 768px) {
            .dash-table thead { display: none; }
            .dash-table tbody { display: block; width: 100%; }
            .dash-table tr { 
                display: flex; 
                flex-direction: column; 
                border: 1px solid var(--border-color) !important; 
                border-radius: 12px; 
                margin-bottom: 15px; 
                padding: 10px; 
                background: #fff;
                box-shadow: 0 2px 4px rgba(0,0,0,0.02);
            }
            .dash-table td { 
                display: flex; 
                justify-content: space-between; 
                align-items: center; 
                border-bottom: 1px dashed var(--border-color) !important; 
                padding: 12px 10px !important; 
                text-align: right;
            }
            .dash-table td:last-child { border-bottom: none !important; justify-content: flex-end; gap: 10px; }
            .dash-table td::before { 
                content: attr(data-label); 
                font-weight: 600; 
                color: var(--text-muted); 
                font-size: 0.85rem; 
                text-transform: uppercase;
            }
        }


/* Admin Action Buttons (for Lotto fetching section) */
.btn-admin-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Prompt', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-admin-action svg {
    flex-shrink: 0;
}

.btn-admin-action.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
}
.btn-admin-action.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(0, 114, 255, 0.3);
    transform: translateY(-2px);
}

.btn-admin-action.btn-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}
.btn-admin-action.btn-success:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

.btn-admin-action.btn-pink {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.2);
    color: #ec4899;
}
.btn-admin-action.btn-pink:hover {
    background: rgba(236, 72, 153, 0.15);
    border-color: rgba(236, 72, 153, 0.3);
    transform: translateY(-2px);
}


@media (max-width: 768px) {
    .user-profile-cell { justify-content: flex-end; text-align: right; width: 100%; }
    .user-profile-cell > div:last-child div { text-align: right !important; }
    .user-action-cell { justify-content: flex-end !important; }
}


.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    backdrop-filter: blur(2px);
}
@media (max-width: 768px) {
    .sidebar-overlay.active { display: block; }
    .main-sidebar.mobile-open { z-index: 1000; }
}


@media (max-width: 768px) {
    .content-wrapper {
        padding: 2px !important;
    }
    
    #user-admin-section > div:nth-child(2),
    #lotto-admin-section > div,
    #fcm-admin-section > div,
    #lao-admin-section > div,
    #promo-admin-section > div,
    #transaction-admin-section > div,
    #saved-tickets-admin-section > div {
        padding: 2px !important;
    }
}

@media (max-width: 768px) {
    .top-navbar {
        left: 0;
        width: 100%;
    }
    .content-wrapper {
        padding-top: 80px !important; 
    }
}

