        /* --- theme.css --- */
        /* Theme and Additional Styles */

        /* Voting Page Styles */
        .vote-section {
            padding: 2rem 0;
            min-height: calc(100vh - 80px);
        }

        .vote-header {
            text-align: center;
            margin-bottom: 3rem;
        }

        /* Vote Header Grid */
        .vote-header-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
            margin-bottom: 3rem;
        }

        .vote-nav {
            padding: 1rem 1.5rem;
            display: flex;
            align-items: center;
        }

        .vote-info {
            padding: 2.5rem 3rem;
            display: flex;
            align-items: center;
            gap: 2rem;
        }

        .poll-icon {
            font-size: 4rem;
            color: var(--primary);
            background: rgba(211, 47, 47, 0.2);
            width: 100px;
            height: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 20px;
            flex-shrink: 0;
        }

        .poll-details {
            flex: 1;
        }

        .poll-details h1 {
            font-size: 2.5rem;
            margin-bottom: 0.75rem;
            background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .poll-details p {
            font-size: 1.1rem;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        /* Vote Content Grid */
        .vote-content-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        .vote-form {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        .candidates-section {
            padding: 2.5rem;
        }

        .candidates-section h2 {
            font-size: 1.8rem;
            margin-bottom: 2rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            color: var(--primary);
            text-align: center;
            justify-content: center;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .candidates-section h2 i {
            font-size: 2rem;
        }

        .back-button {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--text-color);
            text-decoration: none;
            padding: 0.75rem 1.5rem;
            background: var(--surface-muted);
            border: 1px solid var(--card-border);
            border-radius: 10px;
            transition: all 0.3s ease;
            margin-bottom: 1.5rem;
        }

        .back-button:hover {
            background: #e2e8f0;
            transform: translateX(-5px);
        }

        .vote-header h1 {
            font-size: 2.5rem;
            margin-bottom: 0.5rem;
        }

        .alert {
            padding: 2rem;
            border-radius: 16px;
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }

        .alert i {
            font-size: 3rem;
        }

        .alert-info {
            background: rgba(59, 130, 246, 0.2);
            border: 1px solid rgba(59, 130, 246, 0.4);
        }

        .candidates-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 2.5rem;
            margin-bottom: 3rem;
            padding: 1rem 0;
        }

        .candidate-card {
            padding: 0;
            cursor: pointer;
            position: relative;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .candidate-card:hover .candidate-content {
            transform: translateY(-8px);
            box-shadow: 0 15px 40px rgba(211, 47, 47, 0.3);
        }

        .candidate-card input[type="radio"] {
            position: absolute;
            opacity: 0;
            cursor: pointer;
        }

        .candidate-card input[type="radio"]:checked~.candidate-content {
            background: rgba(211, 47, 47, 0.4);
            border-color: var(--primary);
            border-width: 3px;
            transform: scale(1.02);
            box-shadow: 0 0 30px rgba(211, 47, 47, 0.5), 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .candidate-card input[type="radio"]:checked~.candidate-content .checkmark {
            opacity: 1;
            transform: scale(1);
        }

        .candidate-content {
            padding: 2.5rem 2rem;
            border: 2px solid var(--card-border);
            border-radius: 20px;
            transition: all 0.4s ease;
            text-align: center;
            position: relative;
            min-height: 300px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: var(--surface);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
        }

        .candidate-icon {
            font-size: 5rem;
            color: var(--primary);
            margin-bottom: 1.5rem;
            transition: all 0.3s ease;
        }

        .candidate-card:hover .candidate-icon {
            transform: scale(1.1);
            filter: drop-shadow(0 0 20px rgba(211, 47, 47, 0.6));
        }

        .candidate-icon img {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid rgba(211, 47, 47, 0.3);
            transition: all 0.3s ease;
        }

        .candidate-card:hover .candidate-icon img {
            border-color: var(--primary);
            box-shadow: 0 0 25px rgba(211, 47, 47, 0.5);
        }

        .candidate-content h3 {
            font-size: 1.8rem;
            margin-bottom: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .candidate-content p {
            color: var(--text-secondary);
            font-size: 1rem;
            line-height: 1.5;
            margin-top: 0.5rem;
        }

        .checkmark {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            font-size: 2.5rem;
            color: var(--success);
            opacity: 0;
            transform: scale(0) rotate(-180deg);
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.8));
        }

        .vote-actions {
            text-align: center;
            padding: 2rem;
        }

        .vote-actions .btn-large {
            min-width: 300px;
            font-size: 1.3rem;
            padding: 1.5rem 3.5rem;
            box-shadow: 0 8px 20px rgba(211, 47, 47, 0.4);
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .vote-actions .btn-large:hover {
            box-shadow: 0 12px 30px rgba(211, 47, 47, 0.6);
            transform: translateY(-3px) scale(1.02);
        }

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

        .vote-actions .btn-large:hover::before {
            width: 400px;
            height: 400px;
        }

        /* Results Page Styles */
        .results-section {
            padding: 2rem 0;
            min-height: calc(100vh - 80px);
        }

        .results-header {
            text-align: center;
            margin-bottom: 3rem;
        }

        .results-header h1 {
            font-size: 2.5rem;
            margin-bottom: 0.5rem;
        }

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

        .stat-card {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            padding: 2rem;
        }

        .stat-card i {
            font-size: 3rem;
            color: var(--primary);
        }

        .stat-card h3 {
            font-size: 2rem;
            margin-bottom: 0.25rem;
        }

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

        .charts-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .chart-card {
            padding: 2rem;
        }

        .chart-card h3 {
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .chart-card canvas {
            max-height: 300px;
        }

        .candidates-results h3 {
            font-size: 1.8rem;
            margin-bottom: 2rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .results-list {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .result-item {
            padding: 2rem;
            display: flex;
            align-items: center;
            gap: 2rem;
        }

        .result-rank {
            font-size: 2rem;
            font-weight: 700;
            min-width: 50px;
            text-align: center;
        }

        .result-info {
            flex: 1;
        }

        .result-info h4 {
            font-size: 1.3rem;
            margin-bottom: 0.25rem;
        }

        .result-info p {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .result-stats {
            min-width: 250px;
        }

        .vote-count {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .progress-bar {
            height: 30px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            overflow: hidden;
            position: relative;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            padding: 0 1rem;
            transition: width 0.6s ease;
        }

        .percentage {
            font-weight: 600;
            font-size: 0.9rem;
        }

        /* Footer Link Styling */
        .footer a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .footer a:hover {
            color: var(--secondary);
            text-decoration: underline;
        }

        /* Admin Styles */
        .admin-section {
            padding: 2rem 0;
            min-height: calc(100vh - 80px);
        }

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

        .admin-header h1 {
            font-size: 2.5rem;
        }

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

        .stat-icon {
            width: 60px;
            height: 60px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: white;
        }

        .stat-details h3 {
            font-size: 2.5rem;
            margin-bottom: 0.25rem;
        }

        .stat-details p {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .admin-content {
            padding: 2rem;
        }

        .admin-content h2 {
            font-size: 1.8rem;
            margin-bottom: 2rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .table-responsive {
            overflow-x: auto;
        }

        .admin-table {
            width: 100%;
            border-collapse: collapse;
        }

        .admin-table thead {
            background: rgba(255, 255, 255, 0.05);
        }

        .admin-table th,
        .admin-table td {
            padding: 1rem;
            text-align: left;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .admin-table th {
            font-weight: 600;
            color: var(--primary);
        }

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

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

        /* Admin Polls Grid View */
        .polls-management {
            margin-top: 3rem;
        }

        .polls-management h2 {
            font-size: 1.8rem;
            margin-bottom: 2rem;
            display: flex;
            align-items: center;
        }

            .admin-polls-grid {
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
                gap: 2rem;
            }

            .admin-poll-card {
                padding: 2rem;
                transition: transform 0.3s ease;
                display: flex;
                flex-direction: column;
                gap: 1rem;
            }

            .admin-poll-card:hover {
                transform: translateY(-5px);
            }

            .admin-poll-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
            }

            .poll-id {
                font-weight: 600;
                color: var(--primary);
                font-size: 0.9rem;
            }

            .admin-poll-card h3 {
                font-size: 1.3rem;
                margin: 0;
                line-height: 1.4;
            }

            .poll-creator {
                display: flex;
                align-items: center;
                gap: 0.5rem;
                color: var(--text-secondary);
                font-size: 0.9rem;
                margin: 0;
            }

            .admin-poll-stats {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 1rem;
                margin: 1rem 0;
            }

            .admin-stat-item {
                display: flex;
                align-items: center;
                gap: 0.75rem;
                padding: 1rem;
                background: rgba(255, 255, 255, 0.05);
                border-radius: 10px;
            }

            .admin-stat-item i {
                font-size: 1.5rem;
                color: var(--primary);
            }

            .admin-stat-item div {
                display: flex;
                flex-direction: column;
                gap: 0.1rem;
            }

            .admin-stat-item strong {
                font-size: 1.4rem;
                line-height: 1;
            }

            .admin-stat-item span {
                font-size: 0.8rem;
                color: var(--text-secondary);
            }

            .poll-end-date {
                display: flex;
                align-items: center;
                gap: 0.5rem;
                color: var(--text-secondary);
                font-size: 0.9rem;
                padding: 0.75rem;
                background: rgba(255, 255, 255, 0.05);
                border-radius: 8px;
            }

            .poll-end-date i {
                color: var(--info);
            }

            .admin-poll-actions {
                display: flex;
                gap: 0.75rem;
                margin-top: 0.5rem;
            }

            .admin-poll-actions .btn {
                flex: 1;
                justify-content: center;
            }

            /* Create Poll Styles */
            .create-poll-section {
                padding: 2rem 0;
                min-height: calc(100vh - 80px);
            }

            .create-poll-header {
                text-align: center;
                margin-bottom: 3rem;
            }

            .create-poll-header h1 {
                font-size: 2.5rem;
                margin-bottom: 0.5rem;
            }

            .create-poll-form {
                max-width: 800px;
                margin: 0 auto;
                padding: 3rem;
            }

            .form-section {
                margin-bottom: 3rem;
            }

            .form-section h3 {
                font-size: 1.5rem;
                margin-bottom: 1.5rem;
                display: flex;
                align-items: center;
                gap: 10px;
                color: var(--primary);
            }

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

            .candidate-input {
                margin-bottom: 1rem;
            }

            .candidate-input .form-row {
                position: relative;
                grid-template-columns: 1fr 1.5fr auto;
                align-items: end;
            }

            .remove-candidate {
                margin-bottom: 1.4rem;
            }

            .form-actions {
                display: flex;
                gap: 1rem;
                justify-content: center;
                margin-top: 2rem;
            }

            /* Light Theme (Optional) */
            body.light-theme {
                --primary: #10b981;
                --primary-dark: #059669;
                --secondary: #34d399;
                --text-color: #1a1a1a;
                --text-secondary: rgba(0, 0, 0, 0.6);
                --card-bg: rgba(255, 255, 255, 0.95);
                --card-border: rgba(0, 0, 0, 0.1);
                --shadow: rgba(0, 0, 0, 0.1);
                --bg-gradient: linear-gradient(135deg, #10b981 0%, #34d399 100%);
                background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
            }

            body.light-theme::before {
                opacity: 0.2;
            }

            body.light-theme .glass-effect {
                background: var(--card-bg);
                box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
            }

            body.light-theme .nav-brand i {
                color: var(--primary);
            }

            body.light-theme .navbar {
                background: rgba(255, 255, 255, 0.9);
                border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            }

            body.light-theme .form-group input,
            body.light-theme .form-group textarea,
            body.light-theme .form-group select {
                background: rgba(0, 0, 0, 0.03);
                border: 1px solid rgba(0, 0, 0, 0.15);
                color: var(--text-color);
            }

            body.light-theme .form-group input:focus,
            body.light-theme .form-group textarea:focus,
            body.light-theme .form-group select:focus {
                background: rgba(0, 0, 0, 0.05);
                border-color: var(--primary);
            }

            body.light-theme .badge-secondary {
                background: rgba(0, 0, 0, 0.15);
                color: var(--text-color);
            }

            body.light-theme .admin-stat-item,
            body.light-theme .poll-end-date {
                background: rgba(16, 185, 129, 0.1);
            }

            body.light-theme .theme-toggle {
                background: rgba(0, 0, 0, 0.05);
                border-color: rgba(0, 0, 0, 0.15);
            }

            body.light-theme .theme-toggle:hover {
                background: rgba(0, 0, 0, 0.1);
            }

            body.light-theme .footer {
                border-top: 1px solid rgba(0, 0, 0, 0.1);
            }

            /* Responsive Styles */
            /* Responsive Styles */
            @media (max-width: 768px) {

                /* Vote Page Responsive */
                .vote-info {
                    flex-direction: column;
                    text-align: center;
                    padding: 2rem 1.5rem;
                }

                .poll-icon {
                    width: 80px;
                    height: 80px;
                    font-size: 3rem;
                }

                .poll-details h1 {
                    font-size: 1.8rem;
                }

                .poll-details p {
                    font-size: 1rem;
                }

                .candidates-section {
                    padding: 1.5rem;
                }

                .candidates-section h2 {
                    font-size: 1.4rem;
                    flex-direction: column;
                    gap: 0.5rem;
                }

                .candidates-grid {
                    grid-template-columns: 1fr;
                    gap: 1.5rem;
                }

                .candidate-content {
                    min-height: auto;
                    /* Allow auto height instead of fixed minimum */
                    padding: 1.5rem;
                }

                .candidate-icon {
                    font-size: 3rem;
                    /* Scaled down */
                }

                .candidate-icon img {
                    width: 80px;
                    /* Scaled down */
                    height: 80px;
                }

                .candidate-content h3 {
                    font-size: 1.3rem;
                }

                .vote-actions {
                    padding: 1.5rem;
                }

                .vote-actions .btn-large {
                    min-width: 100%;
                    font-size: 1.1rem;
                    padding: 1.2rem 2rem;
                }

                .score-options {
                    flex-direction: column;
                    /* Stack scoring options on mobile */
                    gap: 0.75rem;
                }

                .score-option {
                    width: 100%;
                }

                /* Results Page Responsive */
                .results-stats,
                .charts-container {
                    grid-template-columns: 1fr;
                }

                .result-item {
                    flex-direction: column;
                    text-align: center;
                }

                .result-stats {
                    width: 100%;
                }

                .leaderboard-table {
                    font-size: 0.85rem;
                }

                .leaderboard-table th,
                .leaderboard-table td {
                    padding: 0.75rem 0.5rem;
                }

                /* Wrap the leaderboard table in a responsive div in HTML if it overflows, but auto scroll here helps */
                .table-responsive {
                    overflow-x: auto;
                    -webkit-overflow-scrolling: touch;
                }

                /* Admin Page Responsive */
                .admin-header {
                    flex-direction: column;
                    gap: 1rem;
                }

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

                .candidate-input .form-row {
                    grid-template-columns: 1fr;
                }

                .remove-candidate {
                    margin-top: 0.5rem;
                }

                .admin-polls-grid {
                    grid-template-columns: 1fr;
                }

                .admin-poll-stats {
                    grid-template-columns: 1fr;
                }
            }

            @media (max-width: 480px) {
                .vote-nav {
                    padding: 0.75rem 1rem;
                }

                .back-button {
                    padding: 0.5rem 1rem;
                    font-size: 0.9rem;
                }

                .candidates-section h2 {
                    font-size: 1.2rem;
                }

                .candidate-content h3 {
                    font-size: 1.2rem;
                }

                .score-value {
                    font-size: 1.4rem;
                }

                .score-text {
                    font-size: 0.65rem;
                }

                .stat-card {
                    padding: 1.5rem 1rem;
                    flex-direction: column;
                    text-align: center;
                }

                .winner-card .trophy {
                    font-size: 3rem;
                }

                .winner-card h2 {
                    font-size: 1.5rem;
                }

                .winner-card .winner-score {
                    font-size: 2.5rem;
                }
            }

        #vt-loader-overlay {
            position: fixed;
            inset: 0;
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            background:
                radial-gradient(circle at 16% 12%, rgba(211, 47, 47, 0.24), transparent 34%),
                radial-gradient(circle at 84% 88%, rgba(183, 28, 28, 0.28), transparent 36%),
                linear-gradient(160deg, #090909 0%, #111111 55%, #1a0c0c 100%);
            font-family: "Poppins", sans-serif;
            transition: opacity 320ms ease, visibility 320ms ease;
        }

        #vt-loader-overlay.is-hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .vt-loader-content {
            width: min(92vw, 760px);
            text-align: center;
            padding: 18px;
        }

        .vt-loader-spinbox {
            width: 92px;
            height: 92px;
            margin: 0 auto 18px;
            border: 3px solid #d32f2f;
            border-radius: 22px;
            box-shadow: 0 0 20px rgba(211, 47, 47, 0.45);
            display: grid;
            place-items: center;
            animation: vtSpinBox 2.3s linear infinite;
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(2px);
        }

        .vt-loader-logo {
            width: 56px;
            height: 56px;
            object-fit: contain;
            filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
            animation: vtSpinLogo 1.4s linear infinite;
        }

        .vt-loader-glitch-wrap {
            margin-bottom: 10px;
        }

        .vt-loader-glitch {
            color: #ffffff;
            font-size: clamp(1rem, 2.4vw, 1.5rem);
            font-weight: 800;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            position: relative;
            display: inline-block;
            line-height: 1.2;
            text-shadow: 0 0 14px rgba(211, 47, 47, 0.55);
        }

        .vt-loader-glitch::before,
        .vt-loader-glitch::after {
            content: attr(data-text);
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            overflow: hidden;
            opacity: 0.8;
        }

        .vt-loader-glitch::before {
            transform: translate(1px, 0);
            color: rgba(211, 47, 47, 0.8);
            clip-path: inset(0 0 52% 0);
            animation: vtGlitchA 1.8s infinite linear alternate-reverse;
        }

        .vt-loader-glitch::after {
            transform: translate(-1px, 0);
            color: rgba(255, 255, 255, 0.75);
            clip-path: inset(58% 0 0 0);
            animation: vtGlitchB 2.2s infinite linear alternate-reverse;
        }

        .vt-loader-terminal {
            margin-top: 12px;
            color: #fca5a5;
            font-family: "Courier New", Courier, monospace;
            font-size: clamp(0.76rem, 1.4vw, 0.9rem);
            opacity: 0.95;
        }

        .vt-loader-cursor {
            display: inline-block;
            color: #ef4444;
            margin-right: 6px;
            animation: vtCursorBlink 0.85s infinite;
            font-weight: 700;
        }

        @keyframes vtSpinBox {
            0% {
                transform: rotate(0deg) scale(1);
                border-color: #d32f2f;
            }
            50% {
                transform: rotate(180deg) scale(1.05);
                border-color: #b71c1c;
                border-radius: 50%;
                box-shadow: 0 0 28px rgba(183, 28, 28, 0.6);
            }
            100% {
                transform: rotate(360deg) scale(1);
                border-color: #d32f2f;
            }
        }

        @keyframes vtSpinLogo {
            from { transform: rotate(0deg); }
            to { transform: rotate(-360deg); }
        }

        @keyframes vtCursorBlink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0; }
        }

        @keyframes vtGlitchA {
            0% { transform: translate(1px, 0); }
            50% { transform: translate(2px, -1px); }
            100% { transform: translate(-1px, 1px); }
        }

        @keyframes vtGlitchB {
            0% { transform: translate(-1px, 0); }
            50% { transform: translate(-2px, 1px); }
            100% { transform: translate(1px, -1px); }
        }

        @media (max-width: 640px) {
            .vt-loader-spinbox {
                width: 82px;
                height: 82px;
                border-radius: 18px;
            }

            .vt-loader-logo {
                width: 50px;
                height: 50px;
            }

            .vt-loader-content {
                padding: 14px;
            }
        }

        /* Admin nav dropdown fallback (kept here to avoid cache-miss styling issues) */
        .vt-admin-menu-btn {
            border: 1px solid rgba(15, 23, 42, 0.18);
            background: #fff;
            color: #1f2937;
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .vt-admin-menu {
            display: none;
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            min-width: 240px;
            max-height: calc(100vh - 90px);
            overflow-y: auto;
            background: linear-gradient(155deg, #111827, #7f1d1d);
            border: 1px solid rgba(248, 113, 113, 0.35);
            border-radius: 12px;
            box-shadow: 0 16px 30px rgba(15, 23, 42, 0.28);
            padding: 10px;
            z-index: 2200;
        }

        .vt-admin-menu.active {
            display: block;
        }

        .vt-admin-menu a {
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            color: #f8fafc;
            font-size: 0.86rem;
            font-weight: 700;
            padding: 10px 12px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.14);
            margin-bottom: 7px;
        }

        .vt-admin-menu a:last-child {
            margin-bottom: 0;
        }

        .vt-admin-menu a i {
            width: 20px;
            text-align: center;
            color: #fecaca;
        }

        .vt-admin-menu a:hover {
            background: rgba(255, 255, 255, 0.16);
            border-color: rgba(252, 165, 165, 0.45);
        }

        @media (max-width: 768px) {
            .vt-admin-menu {
                left: 10px;
                min-width: unset;
            }
        }

        .vt-install-banner {
            position: fixed;
            left: 50%;
            bottom: 14px;
            transform: translateX(-50%) translateY(20px);
            width: min(94vw, 560px);
            z-index: 10001;
            background: linear-gradient(150deg, rgba(17, 24, 39, 0.97), rgba(127, 29, 29, 0.95));
            border: 1px solid rgba(248, 113, 113, 0.35);
            border-radius: 14px;
            box-shadow: 0 14px 32px rgba(2, 6, 23, 0.4);
            color: #fff;
            padding: 12px;
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 10px;
            opacity: 0;
            visibility: hidden;
            transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
        }

        .vt-install-banner.show {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }

        .vt-install-copy {
            display: grid;
            gap: 3px;
        }

        .vt-install-title {
            font-size: 0.9rem;
            font-weight: 800;
            letter-spacing: 0.02em;
        }

        .vt-install-sub {
            color: rgba(255, 255, 255, 0.82);
            font-size: 0.78rem;
            font-weight: 600;
        }

        .vt-install-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .vt-install-btn {
            min-height: 38px;
            border: none;
            border-radius: 999px;
            padding: 0 14px;
            font-size: 0.78rem;
            font-weight: 800;
            cursor: pointer;
        }

        .vt-install-btn.primary {
            background: linear-gradient(135deg, #ef4444, #b91c1c);
            color: #fff;
        }

        .vt-install-btn.ghost {
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #fff;
        }

        @media (max-width: 640px) {
            .vt-install-banner {
                grid-template-columns: 1fr;
            }

            .vt-install-actions {
                justify-content: flex-end;
            }
        }

        /* Global flash fallback: keeps flash styling stable even if page CSS overrides */
        main.vt-container .vt-alert-stack {
            position: fixed !important;
            top: 74px !important;
            right: 14px !important;
            left: auto !important;
            width: min(420px, calc(100vw - 24px)) !important;
            display: grid !important;
            gap: 10px !important;
            margin: 0 !important;
            z-index: 10060 !important;
            pointer-events: none !important;
        }

        main.vt-container .vt-alert {
            display: grid !important;
            grid-template-columns: 40px 1fr auto !important;
            align-items: center !important;
            gap: 10px !important;
            padding: 12px 14px !important;
            border-radius: 14px !important;
            border: 1px solid rgba(255, 255, 255, 0.24) !important;
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)) !important;
            box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16) !important;
            pointer-events: auto !important;
        }

        main.vt-container .vt-alert__icon {
            width: 34px !important;
            height: 34px !important;
            border-radius: 11px !important;
            display: grid !important;
            place-items: center !important;
            font-size: 0.95rem !important;
        }

        main.vt-container .vt-alert__title {
            font-size: 0.93rem !important;
            font-weight: 800 !important;
            margin: 0 0 2px !important;
            line-height: 1.2 !important;
        }

        main.vt-container .vt-alert__message {
            font-size: 0.88rem !important;
            line-height: 1.35 !important;
            color: #475569 !important;
        }

        main.vt-container .vt-alert__close {
            min-width: 32px !important;
            min-height: 32px !important;
            border: none !important;
            background: transparent !important;
            border-radius: 8px !important;
            cursor: pointer !important;
            opacity: 0.75 !important;
        }

        main.vt-container .vt-alert__close:hover {
            background: rgba(15, 23, 42, 0.06) !important;
            opacity: 1 !important;
        }

        main.vt-container .vt-alert--success {
            background: linear-gradient(135deg, rgba(209, 250, 229, 0.92), rgba(236, 253, 245, 0.98)) !important;
            border-color: rgba(16, 185, 129, 0.36) !important;
            color: #065f46 !important;
        }

        main.vt-container .vt-alert--success .vt-alert__icon {
            background: rgba(16, 185, 129, 0.2) !important;
            color: #047857 !important;
        }

        main.vt-container .vt-alert--error {
            background: linear-gradient(135deg, rgba(254, 226, 226, 0.93), rgba(255, 241, 242, 0.98)) !important;
            border-color: rgba(239, 68, 68, 0.36) !important;
            color: #991b1b !important;
        }

        main.vt-container .vt-alert--error .vt-alert__icon {
            background: rgba(239, 68, 68, 0.2) !important;
            color: #b91c1c !important;
        }

        main.vt-container .vt-alert--warning {
            background: linear-gradient(135deg, rgba(254, 243, 199, 0.94), rgba(255, 251, 235, 0.98)) !important;
            border-color: rgba(245, 158, 11, 0.42) !important;
            color: #92400e !important;
        }

        main.vt-container .vt-alert--warning .vt-alert__icon {
            background: rgba(245, 158, 11, 0.23) !important;
            color: #b45309 !important;
        }

        main.vt-container .vt-alert--info {
            background: linear-gradient(135deg, rgba(219, 234, 254, 0.94), rgba(239, 246, 255, 0.98)) !important;
            border-color: rgba(59, 130, 246, 0.36) !important;
            color: #1e40af !important;
        }

        main.vt-container .vt-alert--info .vt-alert__icon {
            background: rgba(59, 130, 246, 0.22) !important;
            color: #1d4ed8 !important;
        }

        @media (max-width: 768px) {
            main.vt-container .vt-alert-stack {
                left: 10px !important;
                right: 10px !important;
                width: auto !important;
                top: 66px !important;
            }

            main.vt-container .vt-alert {
                grid-template-columns: 32px 1fr auto !important;
                padding: 10px 10px !important;
                border-radius: 12px !important;
            }

            main.vt-container .vt-alert__icon {
                width: 28px !important;
                height: 28px !important;
                border-radius: 8px !important;
                font-size: 0.85rem !important;
            }

            main.vt-container .vt-alert__title {
                font-size: 0.84rem !important;
            }

            main.vt-container .vt-alert__message {
                font-size: 0.8rem !important;
            }
        }
