        :root {
            --primary: #6366f1;
            --primary-dark: #4f46e5;
            --primary-light: #818cf8;
            --secondary: #ec4899;
            --accent: #06b6d4;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --dark: #0f172a;
            --dark-card: #1e293b;
            --dark-input: #334155;
            --text: #f1f5f9;
            --text-muted: #94a3b8;
            --border: #334155;
            --glass: rgba(30, 41, 59, 0.8);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: var(--dark);
            color: var(--text);
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* Background Animation */
        .bg-animation {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            overflow: hidden;
            pointer-events: none;
        }

        .bg-animation .orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.15;
            animation: float 20s infinite;
        }

        .bg-animation .orb:nth-child(1) {
            width: 600px;
            height: 600px;
            background: var(--primary);
            top: -200px;
            right: -200px;
            animation-delay: 0s;
        }

        .bg-animation .orb:nth-child(2) {
            width: 500px;
            height: 500px;
            background: var(--secondary);
            bottom: -200px;
            left: -200px;
            animation-delay: -7s;
        }

        .bg-animation .orb:nth-child(3) {
            width: 400px;
            height: 400px;
            background: var(--accent);
            top: 50%;
            left: 50%;
            animation-delay: -14s;
        }

        @keyframes float {
            0%, 100% { transform: translate(0, 0) scale(1); }
            25% { transform: translate(50px, -50px) scale(1.1); }
            50% { transform: translate(-30px, 30px) scale(0.9); }
            75% { transform: translate(30px, 50px) scale(1.05); }
        }

        /* Layout */
        #app {
            position: relative;
            z-index: 1;
            min-height: 100vh;
        }

        /* Navbar */
        .navbar {
            background: var(--glass);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border);
            padding: 0 2rem;
            height: 70px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .navbar-brand {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1.4rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--primary-light), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            cursor: pointer;
        }

        .navbar-brand i {
            font-size: 1.6rem;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .navbar-menu {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .nav-link {
            padding: 8px 16px;
            border-radius: 10px;
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.3s ease;
            cursor: pointer;
            border: none;
            background: none;
        }

        .nav-link:hover, .nav-link.active {
            color: var(--text);
            background: rgba(99, 102, 241, 0.15);
        }

        .nav-link.active {
            background: rgba(99, 102, 241, 0.25);
            color: var(--primary-light);
        }

        .nav-avatar {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--primary);
            cursor: pointer;
        }

        .nav-user {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 6px 12px;
            border-radius: 12px;
            background: rgba(99, 102, 241, 0.1);
            cursor: pointer;
            position: relative;
        }

        .nav-user-name {
            font-size: 0.85rem;
            font-weight: 600;
        }

        .dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 8px;
            background: var(--dark-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 8px;
            min-width: 180px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.4);
            z-index: 200;
        }

        .dropdown-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            border-radius: 8px;
            color: var(--text);
            text-decoration: none;
            font-size: 0.85rem;
            cursor: pointer;
            transition: background 0.2s;
            border: none;
            background: none;
            width: 100%;
        }

        .dropdown-item:hover {
            background: rgba(99, 102, 241, 0.15);
        }

        .dropdown-item.danger {
            color: var(--danger);
        }

        /* Container */
        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 2rem;
        }

        /* Cards */
        .card {
            background: var(--glass);
            backdrop-filter: blur(20px);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 2rem;
            transition: all 0.3s ease;
        }

        .card:hover {
            border-color: rgba(99, 102, 241, 0.3);
            box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1);
        }

        /* Hero Section */
        .hero {
            text-align: center;
            padding: 3rem 0;
        }

        .hero h1 {
            font-size: 3rem;
            font-weight: 800;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, #fff, var(--primary-light), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1.2;
        }

        .hero p {
            font-size: 1.1rem;
            color: var(--text-muted);
            max-width: 600px;
            margin: 0 auto 2rem;
        }

        /* Stats Grid */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2.5rem;
        }

        .stat-card {
            background: var(--glass);
            backdrop-filter: blur(20px);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 1.5rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            transition: all 0.3s ease;
        }

        .stat-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 40px rgba(0,0,0,0.2);
        }

        .stat-icon {
            width: 56px;
            height: 56px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
        }

        .stat-icon.purple { background: rgba(99, 102, 241, 0.2); color: var(--primary-light); }
        .stat-icon.pink { background: rgba(236, 72, 153, 0.2); color: var(--secondary); }
        .stat-icon.cyan { background: rgba(6, 182, 212, 0.2); color: var(--accent); }
        .stat-icon.green { background: rgba(16, 185, 129, 0.2); color: var(--success); }

        .stat-info h3 {
            font-size: 1.8rem;
            font-weight: 700;
        }

        .stat-info p {
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        /* Chart Section */
        .chart-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            margin-bottom: 2.5rem;
        }

        .chart-card {
            background: var(--glass);
            backdrop-filter: blur(20px);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 1.5rem;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .chart-card:hover {
            border-color: rgba(99, 102, 241, 0.3);
            box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
        }

        .chart-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            border-radius: 20px 20px 0 0;
        }

        .chart-card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1.2rem;
            gap: 8px;
        }

        .chart-card-header h2 {
            font-size: 1rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .chart-card-header h2 i {
            color: var(--primary-light);
            font-size: 0.95rem;
        }

        .chart-badge {
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 0.65rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .chart-badge.votes {
            background: rgba(99, 102, 241, 0.15);
            color: var(--primary-light);
        }

        .chart-canvas-wrap {
            position: relative;
            height: 260px;
            width: 100%;
        }

        .chart-canvas-wrap canvas {
            width: 100% !important;
            height: 100% !important;
        }

        .chart-center-label {
            position: absolute;
            top: 42%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            pointer-events: none;
        }

        .chart-center-label .number {
            font-size: 2rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--primary-light), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1.1;
        }

        .chart-center-label .label {
            font-size: 0.7rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 600;
        }

        .chart-empty {
            height: 260px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            gap: 0.5rem;
        }

        .chart-empty i {
            font-size: 2.5rem;
            opacity: 0.2;
        }

        .chart-empty p {
            font-size: 0.85rem;
        }

        /* Candidate Cards */
        .candidates-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .candidate-card {
            background: var(--glass);
            backdrop-filter: blur(20px);
            border: 1px solid var(--border);
            border-radius: 20px;
            overflow: hidden;
            transition: all 0.4s ease;
            position: relative;
        }

        .candidate-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
            border-color: var(--primary);
        }

        .candidate-card.voted {
            border-color: var(--success);
            box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
        }

        .candidate-header {
            position: relative;
            height: 180px;
            background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .candidate-header::before {
            content: '';
            position: absolute;
            inset: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        }

        .candidate-number {
            position: absolute;
            top: 12px;
            left: 12px;
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: rgba(255,255,255,0.2);
            backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 1rem;
        }

        .candidate-badge {
            position: absolute;
            top: 12px;
            right: 12px;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .badge-approved { background: rgba(16, 185, 129, 0.3); color: #6ee7b7; }
        .badge-pending { background: rgba(245, 158, 11, 0.3); color: #fcd34d; }
        .badge-rejected { background: rgba(239, 68, 68, 0.3); color: #fca5a5; }

        .candidate-photo {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid rgba(255,255,255,0.3);
            position: relative;
            z-index: 2;
        }

        .candidate-photo-placeholder {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: rgba(255,255,255,0.15);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5rem;
            color: rgba(255,255,255,0.6);
            border: 4px solid rgba(255,255,255,0.3);
            position: relative;
            z-index: 2;
        }

        .candidate-body {
            padding: 1.5rem;
        }

        .candidate-name {
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            text-align: center;
        }

        .candidate-vision {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-bottom: 1rem;
            line-height: 1.6;
        }

        .candidate-vision strong {
            color: var(--text);
            display: block;
            margin-bottom: 4px;
        }

        .vote-bar {
            background: var(--dark-input);
            border-radius: 10px;
            height: 12px;
            overflow: hidden;
            margin-bottom: 0.5rem;
        }

        .vote-bar-fill {
            height: 100%;
            border-radius: 10px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            transition: width 1s ease;
            min-width: 2px;
        }

        .vote-info {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-bottom: 1rem;
        }

        .vote-info .count {
            font-weight: 700;
            color: var(--primary-light);
        }

        /* Buttons */
        .btn {
            padding: 12px 24px;
            border-radius: 12px;
            border: none;
            font-family: 'Inter', sans-serif;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-decoration: none;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
        }

        .btn-secondary {
            background: var(--dark-input);
            color: var(--text);
            border: 1px solid var(--border);
        }

        .btn-secondary:hover {
            border-color: var(--primary);
            background: rgba(99, 102, 241, 0.1);
        }

        .btn-success {
            background: linear-gradient(135deg, var(--success), #059669);
            color: white;
            box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
        }

        .btn-success:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
        }

        .btn-danger {
            background: linear-gradient(135deg, var(--danger), #dc2626);
            color: white;
        }

        .btn-vote {
            width: 100%;
            padding: 14px;
            border-radius: 14px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            font-weight: 700;
            font-size: 1rem;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Inter', sans-serif;
        }

        .btn-vote:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
        }

        .btn-vote:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .btn-vote.voted {
            background: linear-gradient(135deg, var(--success), #059669);
        }

        .btn-sm {
            padding: 8px 16px;
            font-size: 0.8rem;
            border-radius: 8px;
        }

        .btn-block {
            width: 100%;
        }

        /* Forms */
        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-label {
            display: block;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-muted);
        }

        .form-input {
            width: 100%;
            padding: 14px 16px;
            border-radius: 12px;
            border: 1px solid var(--border);
            background: var(--dark-input);
            color: var(--text);
            font-family: 'Inter', sans-serif;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            outline: none;
        }

        .form-input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
        }

        .form-input::placeholder {
            color: var(--text-muted);
        }

        select.form-input {
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 16px center;
            padding-right: 40px;
        }

        select.form-input option {
            background: var(--dark-card);
            color: var(--text);
        }

        textarea.form-input {
            resize: vertical;
            min-height: 120px;
        }

        /* Auth Pages */
        .auth-container {
            min-height: calc(100vh - 70px);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
        }

        .auth-card {
            width: 100%;
            max-width: 440px;
            background: var(--glass);
            backdrop-filter: blur(20px);
            border: 1px solid var(--border);
            border-radius: 24px;
            padding: 2.5rem;
        }

        .auth-card h2 {
            font-size: 1.8rem;
            font-weight: 800;
            margin-bottom: 0.5rem;
            background: linear-gradient(135deg, #fff, var(--primary-light));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .auth-card .subtitle {
            color: var(--text-muted);
            margin-bottom: 2rem;
            font-size: 0.9rem;
        }

        .auth-divider {
            text-align: center;
            color: var(--text-muted);
            font-size: 0.85rem;
            margin: 1.5rem 0;
        }

        /* Photo Upload */
        .photo-upload {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            margin-bottom: 1.5rem;
        }

        .photo-preview {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            border: 3px dashed var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            cursor: pointer;
            transition: border-color 0.3s;
        }

        .photo-preview:hover {
            border-color: var(--primary);
        }

        .photo-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .photo-preview i {
            font-size: 2rem;
            color: var(--text-muted);
        }

        /* Alert */
        .alert {
            padding: 14px 18px;
            border-radius: 12px;
            margin-bottom: 1.5rem;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .alert-success {
            background: rgba(16, 185, 129, 0.15);
            border: 1px solid rgba(16, 185, 129, 0.3);
            color: #6ee7b7;
        }

        .alert-danger {
            background: rgba(239, 68, 68, 0.15);
            border: 1px solid rgba(239, 68, 68, 0.3);
            color: #fca5a5;
        }

        .alert-warning {
            background: rgba(245, 158, 11, 0.15);
            border: 1px solid rgba(245, 158, 11, 0.3);
            color: #fcd34d;
        }

        /* Modal */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            z-index: 500;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
        }

        .modal-content {
            background: var(--dark-card);
            border: 1px solid var(--border);
            border-radius: 24px;
            padding: 2.5rem;
            max-width: 500px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
        }

        .modal-content h2 {
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
        }

        /* Table */
        .data-table {
            width: 100%;
            border-collapse: collapse;
        }

        .data-table th {
            text-align: left;
            padding: 12px 16px;
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 1px solid var(--border);
        }

        .data-table td {
            padding: 14px 16px;
            font-size: 0.9rem;
            border-bottom: 1px solid rgba(51, 65, 85, 0.5);
        }

        .data-table tr:hover td {
            background: rgba(99, 102, 241, 0.05);
        }

        /* Status badges */
        .status-badge {
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .status-active { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
        .status-inactive { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }

        /* Tabs */
        .tabs {
            display: flex;
            gap: 4px;
            background: var(--dark-input);
            padding: 4px;
            border-radius: 14px;
            margin-bottom: 2rem;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            scroll-behavior: smooth;
            cursor: grab;
            user-select: none;
        }
        .tabs.dragging {
            cursor: grabbing;
            scroll-behavior: auto;
        }

        .tabs::-webkit-scrollbar {
            display: none;
        }

        .tab {
            padding: 10px 20px;
            border-radius: 10px;
            border: none;
            background: none;
            color: var(--text-muted);
            font-family: 'Inter', sans-serif;
            font-size: 0.85rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            flex: 0 0 auto;
            white-space: nowrap;
            text-align: center;
            white-space: nowrap;
            min-width: max-content;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .tab.active {
            background: var(--primary);
            color: white;
            box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
        }

        .tab:hover:not(.active) {
            color: var(--text);
            background: rgba(99, 102, 241, 0.08);
        }

        .tab i {
            font-size: 0.8rem;
        }

        /* Live indicator */
        .live-indicator {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--success);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .live-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--success);
            animation: pulse 1.5s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.5; transform: scale(1.5); }
        }

        /* Section Title */
        .section-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1.5rem;
        }

        .section-title h2 {
            font-size: 1.5rem;
            font-weight: 700;
        }

        /* Transition */
        .fade-enter-active,
        .fade-leave-active {
            transition: opacity 0.3s ease;
        }

        .fade-enter-from,
        .fade-leave-to {
            opacity: 0;
        }

        /* ===== Responsive Grid Utilities ===== */
        .election-stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        .admin-form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }
        .admin-btn-row {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
        }
        .settings-check-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 1rem;
            margin-bottom: 1rem;
        }
        .report-features-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.75rem;
        }

        /* ===== RESPONSIVE - Full Mobile Support ===== */
        
        /* Safe area for notch devices (iPhone X+) */
        @supports (padding: env(safe-area-inset-top)) {
            .navbar {
                padding-left: max(1rem, env(safe-area-inset-left));
                padding-right: max(1rem, env(safe-area-inset-right));
            }
            .container {
                padding-left: max(1rem, env(safe-area-inset-left));
                padding-right: max(1rem, env(safe-area-inset-right));
            }
        }

        /* ---- Large tablets / small desktops (≤1024px) ---- */
        @media (max-width: 1024px) {
            .container {
                padding: 1.5rem;
            }
            .candidates-grid {
                grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
                gap: 1rem;
            }
            .chart-canvas-wrap {
                height: 220px;
            }
        }

        /* ---- Tablets (≤768px) ---- */
        @media (max-width: 768px) {
            .chart-section {
                grid-template-columns: 1fr;
            }

            .hero h1 {
                font-size: 1.8rem;
            }
            .hero p {
                font-size: 0.95rem;
            }

            .navbar {
                padding: 0 0.75rem;
                height: 60px;
            }
            .navbar-brand {
                font-size: 1.1rem;
                gap: 8px;
            }
            .navbar-brand i {
                font-size: 1.2rem;
            }

            .container {
                padding: 1rem;
            }

            .candidates-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;
            }

            .navbar-menu .nav-link span {
                display: none;
            }
            .nav-link {
                padding: 8px 10px;
            }
            .nav-user-name {
                display: none;
            }

            .auth-card {
                padding: 1.5rem;
            }

            .card {
                padding: 1.25rem;
                border-radius: 16px;
            }

            .tabs {
                flex-wrap: nowrap;
                padding: 3px;
                border-radius: 12px;
            }

            .tab {
                flex: 0 0 auto;
                padding: 8px 12px;
                font-size: 0.78rem;
                border-radius: 9px;
            }

            .stat-card {
                padding: 1rem;
                border-radius: 12px;
            }
            .stat-icon {
                width: 44px;
                height: 44px;
                border-radius: 10px;
                font-size: 1.1rem;
            }
            .stat-info h3 {
                font-size: 1.4rem;
            }
            .stat-info p {
                font-size: 0.75rem;
            }

            .section-title {
                flex-wrap: wrap;
                gap: 0.5rem;
            }
            .section-title h2 {
                font-size: 1.2rem;
            }

            /* Election per-stats 3-col → responsive */
            .election-stats-grid {
                grid-template-columns: repeat(3, 1fr) !important;
                gap: 0.5rem !important;
            }

            .chart-card {
                padding: 1rem;
                border-radius: 16px;
            }
            .chart-canvas-wrap {
                height: 200px;
            }
            .chart-center-label .number {
                font-size: 1.5rem;
            }

            .candidate-header {
                height: 140px;
            }
            .candidate-photo, .candidate-photo-placeholder {
                width: 80px;
                height: 80px;
            }
            .candidate-body {
                padding: 1rem;
            }
            .candidate-name {
                font-size: 1.05rem;
            }

            /* Admin tables become scrollable */
            .data-table {
                font-size: 0.82rem;
            }
            .data-table th, .data-table td {
                padding: 10px 10px;
            }

            /* Admin forms 2-col → 1-col */
            .admin-form-grid {
                grid-template-columns: 1fr !important;
            }
            .settings-check-grid {
                grid-template-columns: 1fr 1fr !important;
            }
            .report-features-grid {
                grid-template-columns: 1fr !important;
            }

            .modal-content {
                padding: 1.5rem;
                border-radius: 16px;
                margin: 0.5rem;
            }

            .dropdown-menu {
                right: -1rem;
            }

            .btn {
                padding: 10px 18px;
                font-size: 0.85rem;
            }
            .btn-vote {
                padding: 12px;
                font-size: 0.92rem;
            }
        }

        /* ---- Small phones (≤480px) ---- */
        @media (max-width: 480px) {
            .hero {
                padding: 1.5rem 0;
            }
            .hero h1 {
                font-size: 1.5rem;
                line-height: 1.3;
            }
            .hero p {
                font-size: 0.85rem;
                margin-bottom: 1rem;
            }

            .navbar {
                padding: 0 0.5rem;
                height: 56px;
            }
            .navbar-brand {
                font-size: 1rem;
                gap: 6px;
            }
            .navbar-brand i {
                font-size: 1rem;
            }
            .navbar-menu {
                gap: 2px;
            }
            .nav-link {
                padding: 6px 8px;
                font-size: 0.82rem;
            }
            .nav-avatar {
                width: 32px;
                height: 32px;
            }
            .nav-user {
                padding: 4px 8px;
                border-radius: 10px;
            }

            .container {
                padding: 0.75rem;
            }

            .stats-grid {
                grid-template-columns: 1fr 1fr;
                gap: 0.5rem;
            }
            .stat-card {
                padding: 0.75rem;
                gap: 0.5rem;
            }
            .stat-icon {
                width: 38px;
                height: 38px;
                font-size: 0.9rem;
                border-radius: 8px;
            }
            .stat-info h3 {
                font-size: 1.15rem;
            }
            .stat-info p {
                font-size: 0.7rem;
            }

            .card {
                padding: 1rem;
                border-radius: 14px;
            }

            .tabs {
                margin-bottom: 1rem;
                gap: 2px;
            }
            .tab {
                padding: 7px 10px;
                font-size: 0.72rem;
                gap: 4px;
            }
            .tab i {
                font-size: 0.7rem;
            }

            .chart-card {
                padding: 0.75rem;
                border-radius: 14px;
            }
            .chart-card-header h2 {
                font-size: 0.85rem;
            }
            .chart-badge {
                font-size: 0.58rem;
                padding: 2px 6px;
            }
            .chart-canvas-wrap {
                height: 180px;
            }
            .chart-center-label .number {
                font-size: 1.3rem;
            }
            .chart-center-label .label {
                font-size: 0.6rem;
            }

            .section-title h2 {
                font-size: 1.05rem;
            }

            .candidates-grid {
                gap: 0.75rem;
            }
            .candidate-header {
                height: 120px;
            }
            .candidate-photo, .candidate-photo-placeholder {
                width: 70px;
                height: 70px;
                font-size: 2rem;
            }
            .candidate-number {
                width: 30px;
                height: 30px;
                font-size: 0.85rem;
                border-radius: 8px;
            }
            .candidate-body {
                padding: 0.85rem;
            }
            .candidate-name {
                font-size: 1rem;
            }
            .candidate-vision {
                font-size: 0.8rem;
                margin-bottom: 0.75rem;
            }
            .vote-bar {
                height: 10px;
            }
            .vote-info {
                font-size: 0.75rem;
            }
            .btn-vote {
                padding: 10px;
                font-size: 0.85rem;
                border-radius: 10px;
            }

            .auth-container {
                padding: 1rem 0.75rem;
                min-height: calc(100vh - 56px);
            }
            .auth-card {
                padding: 1.25rem;
                border-radius: 16px;
            }
            .auth-card h2 {
                font-size: 1.4rem;
            }

            .form-input {
                padding: 11px 13px;
                font-size: 0.9rem;
                border-radius: 10px;
            }
            .form-label {
                font-size: 0.8rem;
            }
            .form-group {
                margin-bottom: 1rem;
            }

            .btn {
                padding: 10px 14px;
                font-size: 0.82rem;
                border-radius: 10px;
            }
            .btn-sm {
                padding: 6px 10px;
                font-size: 0.72rem;
                border-radius: 6px;
            }

            /* Admin table compact */
            .data-table th, .data-table td {
                padding: 8px 6px;
                font-size: 0.75rem;
            }

            .empty-state {
                padding: 2rem 1rem;
            }
            .empty-state i {
                font-size: 2.5rem;
            }
            .empty-state h3 {
                font-size: 1rem;
            }

            .modal-overlay {
                padding: 0.75rem;
            }
            .modal-content {
                padding: 1.25rem;
                border-radius: 14px;
            }

            .live-indicator {

            .election-stats-grid {
                grid-template-columns: 1fr !important;
                gap: 0.5rem !important;
            }
            .settings-check-grid {
                grid-template-columns: 1fr !important;
            }
                font-size: 0.65rem;
            }
            .live-dot {
                width: 6px;
                height: 6px;
            }
        }

        /* ---- Very small phones (≤360px, older Android) ---- */
        @media (max-width: 360px) {
            .hero h1 {
                font-size: 1.3rem;
            }
            .hero p {
                font-size: 0.78rem;
            }
            .stats-grid {
                grid-template-columns: 1fr;
                gap: 0.5rem;
            }
            .stat-card {
                flex-direction: row;
                padding: 0.65rem;
            }
            .stat-icon {
                width: 36px;
                height: 36px;
                font-size: 0.85rem;
            }
            .stat-info h3 {
                font-size: 1.1rem;
            }

            .tab {
                padding: 6px 8px;
                font-size: 0.68rem;
            }

            .navbar-brand {
                font-size: 0.9rem;
            }

            .chart-canvas-wrap {
                height: 160px;
            }

            .candidate-header {
                height: 100px;
            }
            .candidate-photo, .candidate-photo-placeholder {
                width: 60px;
                height: 60px;
                font-size: 1.5rem;
                border-width: 3px;
            }
        }

        /* ---- Touch device optimizations ---- */
        @media (hover: none) and (pointer: coarse) {
            .stat-card:hover {
                transform: none;
                box-shadow: none;
            }
            .candidate-card:hover {
                transform: none;
                box-shadow: none;
            }
            .chart-card:hover {
                border-color: var(--border);
                box-shadow: none;
            }
            .card:hover {
                border-color: var(--border);
                box-shadow: none;
            }
            .btn-primary:hover {
                transform: none;
            }
            .btn-success:hover {
                transform: none;
            }
            .btn-vote:hover:not(:disabled) {
                transform: none;
            }

            /* Larger touch targets */
            .btn {
                min-height: 44px;
            }
            .btn-sm {
                min-height: 36px;
            }
            .form-input {
                min-height: 44px;
            }
            .nav-link {
                min-height: 40px;
            }
            .tab {
                min-height: 40px;
            }
            .dropdown-item {
                min-height: 44px;
            }
        }

        /* ---- Landscape phone ---- */
        @media (max-height: 500px) and (orientation: landscape) {
            .hero {
                padding: 1rem 0;
            }
            .hero h1 {
                font-size: 1.4rem;
            }
            .navbar {
                height: 48px;
            }
            .auth-container {
                min-height: auto;
                padding: 1rem;
            }
            .bg-animation .orb {
                display: none;
            }
        }

        /* ---- Reduce motion for accessibility ---- */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                transition-duration: 0.01ms !important;
            }
            .bg-animation .orb {
                animation: none;
            }
        }

        /* Loading spinner */
        .spinner {
            width: 40px;
            height: 40px;
            border: 3px solid var(--border);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin: 2rem auto;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .loading-overlay {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 300px;
            gap: 1rem;
            color: var(--text-muted);
        }

        /* Confetti effect for vote success */
        .vote-success-icon {
            font-size: 4rem;
            animation: bounceIn 0.6s ease;
        }

        @keyframes bounceIn {
            0% { transform: scale(0); opacity: 0; }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); opacity: 1; }
        }

        /* Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--dark);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--dark-input);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--border);
        }

        .empty-state {
            text-align: center;
            padding: 4rem 2rem;
            color: var(--text-muted);
        }

        .empty-state i {
            font-size: 4rem;
            margin-bottom: 1rem;
            opacity: 0.3;
        }

        .empty-state h3 {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
            color: var(--text);
        }
