:root {
    --vs-primary: #2563eb;
    --vs-primary-dark: #1d4ed8;
    --vs-primary-light: #dbeafe;
    --vs-success: #10b981;
    --vs-success-light: #d1fae5;
    --vs-warning: #f59e0b;
    --vs-danger: #ef4444;
    --vs-bg: #f8fafc;
    --vs-surface: #ffffff;
    --vs-border: #e2e8f0;
    --vs-text: #0f172a;
    --vs-text-muted: #64748b;
    --vs-sidebar: #0f172a;
    --vs-sidebar-hover: #1e293b;
    --vs-radius: 12px;
    --vs-radius-sm: 8px;
    --vs-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.06);
    --vs-shadow-lg: 0 8px 30px rgba(15, 23, 42, 0.1);
    --vs-transition: 0.2s ease;
}

* {
    -webkit-tap-highlight-color: transparent;
}

body.vs-body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: var(--vs-bg);
    color: var(--vs-text);
    min-height: 100vh;
}

body.vs-admin-body {
    background: var(--vs-bg);
}

/* Navbar */
.vs-navbar {
    background: linear-gradient(135deg, var(--vs-primary-dark) 0%, var(--vs-primary) 100%);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.25);
    padding: 0.75rem 0;
}

.vs-navbar .site-logo {
    height: 36px;
    width: auto;
}

.vs-nav-btn {
    min-height: 48px;
    padding: 0.5rem 1.25rem;
    border-radius: var(--vs-radius-sm);
    font-weight: 600;
    transition: var(--vs-transition);
}

/* Cards */
.vs-card {
    background: var(--vs-surface);
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius);
    box-shadow: var(--vs-shadow);
    overflow: hidden;
}

.vs-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--vs-border);
    background: var(--vs-surface);
}

.vs-card-header-primary {
    background: linear-gradient(135deg, var(--vs-primary-dark) 0%, var(--vs-primary) 100%);
    color: #fff;
    border-bottom: none;
}

.vs-card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn-vs-primary {
    background: var(--vs-primary);
    border-color: var(--vs-primary);
    color: #fff;
    min-height: 48px;
    font-weight: 600;
    border-radius: var(--vs-radius-sm);
    transition: var(--vs-transition);
}

.btn-vs-primary:hover,
.btn-vs-primary:focus {
    background: var(--vs-primary-dark);
    border-color: var(--vs-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-vs-success {
    background: var(--vs-success);
    border-color: var(--vs-success);
    color: #fff;
    min-height: 48px;
    font-weight: 600;
    border-radius: var(--vs-radius-sm);
}

.btn-vs-success:hover {
    background: #059669;
    border-color: #059669;
    color: #fff;
}

.btn-vs-success:disabled {
    opacity: 0.6;
    transform: none;
}

/* Forms */
.vs-form-control {
    min-height: 48px;
    border-radius: var(--vs-radius-sm);
    border: 1px solid var(--vs-border);
    padding: 0.625rem 1rem;
    transition: var(--vs-transition);
}

.vs-form-control:focus {
    border-color: var(--vs-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.vs-form-label {
    font-weight: 600;
    color: var(--vs-text);
    margin-bottom: 0.5rem;
}

/* Alerts / Flash */
.vs-alert {
    border: none;
    border-radius: var(--vs-radius-sm);
    padding: 1rem 1.25rem;
    font-weight: 500;
}

.vs-alert-success {
    background: var(--vs-success-light);
    color: #065f46;
}

.vs-alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.vs-alert-info {
    background: var(--vs-primary-light);
    color: #1e40af;
}

/* Login */
.vs-auth-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.vs-auth-card {
    max-width: 440px;
    width: 100%;
}

.vs-auth-header {
    text-align: center;
    padding: 2.5rem 2rem 2rem;
    background: linear-gradient(135deg, var(--vs-primary-dark) 0%, var(--vs-primary) 100%);
    color: #fff;
}

.vs-auth-header .site-logo {
    height: 44px;
    margin-bottom: 1rem;
}

.vs-auth-body {
    padding: 2rem;
}

/* Voter dashboard */
.vs-welcome-banner {
    background: linear-gradient(135deg, var(--vs-primary-dark) 0%, var(--vs-primary) 100%);
    color: #fff;
    border-radius: var(--vs-radius);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--vs-shadow-lg);
}

.vs-welcome-banner h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.vs-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
}

.vs-round-card {
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius);
    background: var(--vs-surface);
    box-shadow: var(--vs-shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.vs-round-header {
    padding: 1.25rem 1.5rem;
    background: var(--vs-surface);
    border-bottom: 1px solid var(--vs-border);
}

.vs-round-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    color: var(--vs-text);
}

.vs-vote-limit {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--vs-primary-light);
    color: var(--vs-primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* Candidate selection cards */
.vs-candidate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.vs-candidate-card {
    position: relative;
    border: 2px solid var(--vs-border);
    border-radius: var(--vs-radius);
    padding: 1.25rem 1rem;
    cursor: pointer;
    transition: var(--vs-transition);
    background: var(--vs-surface);
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.vs-candidate-card:hover {
    border-color: var(--vs-primary);
    box-shadow: var(--vs-shadow);
    transform: translateY(-2px);
}

.vs-candidate-card.selected {
    border-color: var(--vs-primary);
    background: var(--vs-primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.vs-candidate-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.vs-candidate-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vs-candidate-photo {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    border: 3px solid var(--vs-border);
    flex-shrink: 0;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
    cursor: zoom-in;
    background: var(--vs-bg);
}

.vs-candidate-body {
    width: 100%;
}

.vs-modal-candidate-photo {
    width: min(320px, 72vw);
    height: min(320px, 72vw);
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    border: 4px solid var(--vs-border);
    box-shadow: var(--vs-shadow-lg);
    margin-bottom: 1rem;
    background: var(--vs-bg);
}

.vs-admin-candidate-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    border: 2px solid var(--vs-border);
    background: var(--vs-bg);
}

.vs-admin-candidate-photo-lg {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    border: 3px solid var(--vs-border);
    box-shadow: var(--vs-shadow);
    background: var(--vs-bg);
}

.vs-candidate-card.selected .vs-candidate-photo {
    border-color: var(--vs-primary);
}

.vs-candidate-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--vs-text);
}

.vs-candidate-bank {
    font-size: 0.8125rem;
    color: var(--vs-primary);
    font-weight: 600;
}

.vs-candidate-info {
    font-size: 0.8125rem;
    color: var(--vs-text-muted);
    margin-top: 0.25rem;
    line-height: 1.4;
}

.vs-selection-check {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--vs-border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: var(--vs-transition);
}

.vs-candidate-card.selected .vs-selection-check {
    background: var(--vs-primary);
    border-color: var(--vs-primary);
    color: #fff;
}

.vs-vote-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--vs-border);
}

.vs-selection-counter {
    font-weight: 600;
    color: var(--vs-text-muted);
}

.vs-selection-counter strong {
    color: var(--vs-primary);
}

.vs-voted-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--vs-success-light);
    border-radius: var(--vs-radius-sm);
    color: #065f46;
    font-weight: 500;
}

/* Loading spinner on submit */
.btn-vs-success .vs-spinner {
    display: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vs-spin 0.7s linear infinite;
    margin-right: 0.5rem;
}

.btn-vs-success.loading .vs-spinner {
    display: inline-block;
}

.btn-vs-success.loading .vs-btn-text {
    opacity: 0.85;
}

@keyframes vs-spin {
    to { transform: rotate(360deg); }
}

/* Admin sidebar */
.vs-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: var(--vs-sidebar);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.vs-sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vs-sidebar-brand .site-logo {
    height: 36px;
    margin-bottom: 0.75rem;
}

.vs-sidebar-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 1rem 1.5rem 0.5rem;
}

.vs-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0.75rem;
}

.vs-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border-radius: var(--vs-radius-sm);
    font-weight: 500;
    transition: var(--vs-transition);
    min-height: 48px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.vs-sidebar-link:hover {
    background: var(--vs-sidebar-hover);
    color: #fff;
}

.vs-sidebar-link.active {
    background: var(--vs-primary);
    color: #fff;
}

.vs-sidebar-link i {
    width: 20px;
    text-align: center;
}

.vs-admin-main {
    margin-left: 260px;
    min-height: 100vh;
}

.vs-admin-topbar {
    background: var(--vs-surface);
    border-bottom: 1px solid var(--vs-border);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.vs-admin-topbar h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.vs-admin-content {
    padding: 1.5rem;
}

/* Stat cards */
.vs-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vs-stat-card {
    background: var(--vs-surface);
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--vs-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--vs-transition);
}

.vs-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--vs-shadow-lg);
}

.vs-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: var(--vs-text);
}

.vs-stat-label {
    font-size: 0.875rem;
    color: var(--vs-text-muted);
    margin-top: 0.25rem;
}

.vs-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--vs-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.vs-stat-icon.blue { background: var(--vs-primary-light); color: var(--vs-primary); }
.vs-stat-icon.green { background: var(--vs-success-light); color: var(--vs-success); }
.vs-stat-icon.amber { background: #fef3c7; color: #d97706; }
.vs-stat-icon.cyan { background: #cffafe; color: #0891b2; }

/* Admin tables */
.vs-table-card {
    background: var(--vs-surface);
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius);
    box-shadow: var(--vs-shadow);
    overflow: hidden;
}

.vs-table-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--vs-border);
}

.vs-table-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

.vs-table {
    margin: 0;
}

.vs-table thead th {
    background: var(--vs-bg);
    border-bottom: 1px solid var(--vs-border);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vs-text-muted);
    padding: 0.875rem 1.25rem;
}

.vs-table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--vs-border);
}

.vs-table tbody tr:last-child td {
    border-bottom: none;
}

.vs-table tbody tr:hover {
    background: #f8fafc;
}

.vs-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.vs-badge-success { background: var(--vs-success-light); color: #065f46; }
.vs-badge-secondary { background: #f1f5f9; color: #475569; }
.vs-badge-active { background: var(--vs-success-light); color: #065f46; }
.vs-badge-inactive { background: #f1f5f9; color: #64748b; }

.vs-round-candidate-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
    padding: 0.25rem;
}

.vs-round-candidate-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 2px solid var(--vs-border);
    border-radius: var(--vs-radius-sm);
    background: var(--vs-surface);
    cursor: pointer;
    transition: var(--vs-transition);
}

.vs-round-candidate-option:hover {
    border-color: var(--vs-primary);
    background: var(--vs-primary-light);
}

.vs-round-candidate-option:has(input:checked) {
    border-color: var(--vs-primary);
    background: var(--vs-primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.vs-round-candidate-option-body {
    flex: 1;
    min-width: 0;
}

.vs-action-btn {
    min-width: 36px;
    min-height: 36px;
    padding: 0.375rem 0.5rem;
    border-radius: var(--vs-radius-sm);
}

.vs-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--vs-text-muted);
}

.vs-empty-state i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Quick actions */
.vs-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.vs-quick-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--vs-surface);
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius);
    text-decoration: none;
    color: var(--vs-text);
    transition: var(--vs-transition);
    min-height: 48px;
}

.vs-quick-action:hover {
    border-color: var(--vs-primary);
    box-shadow: var(--vs-shadow);
    transform: translateY(-2px);
    color: var(--vs-primary);
}

.vs-quick-action-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--vs-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

/* Footer */
.vs-footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--vs-text-muted);
    font-size: 0.8125rem;
    border-top: 1px solid var(--vs-border);
    margin-top: 2rem;
}

/* Mobile sidebar toggle */
.vs-sidebar-toggle {
    display: none;
    background: none;
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius-sm);
    padding: 0.5rem 0.75rem;
    color: var(--vs-text);
}

.vs-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1035;
}

@media (max-width: 991.98px) {
    .vs-sidebar {
        transform: translateX(-100%);
    }

    .vs-sidebar.open {
        transform: translateX(0);
    }

    .vs-sidebar-overlay.show {
        display: block;
    }

    .vs-admin-main {
        margin-left: 0;
    }

    .vs-sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .vs-candidate-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .vs-candidate-photo {
        width: 128px;
        height: 128px;
    }
}

/* Public results pages */
.vs-results-hero {
    background: linear-gradient(135deg, var(--vs-primary-dark) 0%, var(--vs-primary) 100%);
    color: #fff;
    border-radius: var(--vs-radius);
    padding: 1.75rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.vs-results-hero h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.vs-results-hero p {
    margin: 0;
    opacity: 0.9;
}

.vs-results-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.vs-results-toolbar-meta {
    font-size: 0.875rem;
    opacity: 0.95;
}

.vs-results-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.vs-results-toolbar-actions .form-select {
    min-width: 130px;
    border-radius: var(--vs-radius-sm);
    border: none;
    font-size: 0.875rem;
    padding: 0.45rem 2rem 0.45rem 0.75rem;
}

.vs-results-round {
    background: var(--vs-surface);
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius);
    box-shadow: var(--vs-shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.vs-results-round-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--vs-border);
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.vs-results-round-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.vs-results-round-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.vs-results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.vs-results-stat {
    background: var(--vs-bg);
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius-sm);
    padding: 0.875rem 1rem;
    text-align: center;
}

.vs-results-stat-value {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--vs-primary);
    line-height: 1.2;
}

.vs-results-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--vs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.25rem;
}

.vs-results-table-wrap {
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius-sm);
    overflow: hidden;
}

.vs-results-table {
    width: 100%;
    margin: 0;
}

.vs-results-table thead th {
    background: var(--vs-bg);
    border-bottom: 1px solid var(--vs-border);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vs-text-muted);
    padding: 0.875rem 1rem;
}

.vs-results-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--vs-border);
}

.vs-results-table tbody tr:last-child td {
    border-bottom: none;
}

.vs-results-table tbody tr:hover {
    background: #f8fafc;
}

.vs-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 800;
}

.vs-rank-1 {
    background: #fef3c7;
    color: #92400e;
    box-shadow: 0 0 0 2px #fde68a;
}

.vs-rank-2 {
    background: #e2e8f0;
    color: #334155;
}

.vs-rank-3 {
    background: #ffedd5;
    color: #9a3412;
}

.vs-rank-other {
    background: #f1f5f9;
    color: #64748b;
}

.vs-results-candidate {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.vs-results-candidate-name {
    font-weight: 700;
    color: var(--vs-text);
    margin-bottom: 0.15rem;
}

.vs-results-candidate-info {
    font-size: 0.8125rem;
    color: var(--vs-text-muted);
    line-height: 1.4;
}

.vs-results-vote-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: var(--vs-primary-light);
    color: var(--vs-primary-dark);
    font-weight: 700;
    font-size: 0.875rem;
}

.vs-results-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 140px;
}

.vs-results-progress-track {
    flex: 1;
    height: 0.5rem;
    background: var(--vs-bg);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--vs-border);
}

.vs-results-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--vs-primary) 0%, #60a5fa 100%);
    transition: width 0.3s ease;
}

.vs-results-progress-bar.vs-rank-1-bar {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.vs-results-progress-pct {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--vs-text);
    min-width: 3rem;
    text-align: right;
}

.vs-results-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--vs-text-muted);
}

.vs-results-empty i {
    font-size: 2rem;
    opacity: 0.45;
    margin-bottom: 0.75rem;
}

.vs-results-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

@media (max-width: 767.98px) {
    .vs-results-table thead {
        display: none;
    }

    .vs-results-table tbody tr {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--vs-border);
    }

    .vs-results-table tbody td {
        display: block;
        padding: 0.35rem 0;
        border: none;
    }

    .vs-results-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.6875rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--vs-text-muted);
        margin-bottom: 0.25rem;
    }

    .vs-results-progress {
        min-width: 0;
    }
}

/* Modal polish */
.vs-modal .modal-content {
    border: none;
    border-radius: var(--vs-radius);
    box-shadow: var(--vs-shadow-lg);
}

.vs-modal .modal-header {
    border-bottom: 1px solid var(--vs-border);
    padding: 1.25rem 1.5rem;
}

.vs-modal .modal-body {
    padding: 1.5rem;
}
