@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette - ONPE Light Theme & Glassmorphism */
    --bg-dark: #f0f4f8; /* Light blue-gray background */
    --bg-card: rgba(255, 255, 255, 0.85); /* Clean white frosted glass */
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-color: rgba(0, 43, 73, 0.08); /* Soft navy border */
    --border-glow: rgba(0, 159, 227, 0.3); /* Cyan highlight on hover */
    
    --text-primary: #002b49; /* ONPE deep navy blue */
    --text-secondary: #475569; /* Slate gray */
    --text-muted: #64748b;
    
    /* Party Colors */
    --color-jp: #e11d48; /* Red */
    --color-jp-glow: rgba(225, 29, 72, 0.15);
    --color-fp: #f97316; /* Orange */
    --color-fp-glow: rgba(249, 115, 22, 0.15);
    
    --color-live: #10b981; /* Emerald green */
    --color-live-glow: rgba(16, 185, 129, 0.2);
    
    /* Font Families */
    --font-header: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Outfit", "Segoe UI", sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(225, 29, 72, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(249, 115, 22, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 159, 227, 0.04) 0%, transparent 60%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.47059;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Apple Sticky Frosted Glass Navbar */
.apple-navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: rgba(0, 43, 73, 0.95); /* ONPE Deep Navy */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 2px solid #009fe3; /* ONPE Cyan */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.apple-navbar-content {
    max-width: 1100px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 22px;
}

.apple-navbar-brand {
    display: flex;
    align-items: center;
    font-family: var(--font-header);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #f5f5f7;
    cursor: pointer;
}

.apple-navbar-links {
    display: flex;
    gap: 24px;
}

.apple-navbar-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.apple-navbar-links a:hover {
    color: #ffffff;
}

.apple-navbar-links a.active {
    color: #ffffff;
    font-weight: 500;
}

.apple-navbar-actions {
    display: flex;
    align-items: center;
}

.navbar-status-badge {
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.3);
    color: var(--color-live);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Header Section */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.header-title-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.header-badge-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

h1 {
    font-family: var(--font-header);
    font-size: 3.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #002b49 30%, #009fe3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 0.25rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.live-indicator-badge {
    background: rgba(0, 159, 227, 0.1);
    border: 1px solid rgba(0, 159, 227, 0.3);
    color: #009fe3;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-family: var(--font-header);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 10px rgba(0, 159, 227, 0.15);
}

.connection-status-badge {
    background: rgba(0, 43, 73, 0.05);
    border: 1px solid rgba(0, 43, 73, 0.15);
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-family: var(--font-header);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.connection-status-badge.api-mode {
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.3);
    color: var(--color-live);
    box-shadow: 0 0 10px rgba(52, 199, 89, 0.15);
}

.connection-status-badge.sim-mode {
    background: rgba(255, 149, 0, 0.1);
    border: 1px solid rgba(255, 149, 0, 0.3);
    color: var(--color-fp);
    box-shadow: 0 0 10px rgba(255, 149, 0, 0.15);
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-live);
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 var(--color-live-glow);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px transparent;
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 transparent;
    }
}

.meta-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.meta-val {
    font-family: var(--font-header);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(25px) saturate(190%);
    -webkit-backdrop-filter: blur(25px) saturate(190%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.25rem;
    box-shadow: 
        0 15px 35px rgba(0, 43, 73, 0.06), 
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: 
        0 25px 50px rgba(0, 43, 73, 0.12), 
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Main Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.full-width {
    grid-column: span 12;
}

.col-8 {
    grid-column: span 8;
}

.col-4 {
    grid-column: span 4;
}

@media (max-width: 1024px) {
    .col-8, .col-4 {
        grid-column: span 12;
    }
}

/* Escrutinio Summary Card (Hero Widget) */
.hero-results-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-results-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-jp) 0%, #ffffff 50%, var(--color-fp) 100%);
}

.actas-progress-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 43, 73, 0.03); /* Light navy tint */
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 43, 73, 0.06);
}

.actas-label-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.actas-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.actas-percent {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.actas-bar-bg {
    flex-grow: 1;
    max-width: 300px;
    height: 8px;
    background: rgba(0, 43, 73, 0.08); /* Light navy tint bg */
    border-radius: 9999px;
    margin: 0 1.5rem;
    overflow: hidden;
    display: none; /* Default hide on small devices, show on desktop */
}

@media (min-width: 768px) {
    .actas-bar-bg {
        display: block;
    }
}

.actas-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-live), #34d399);
    border-radius: 9999px;
    width: 0%; /* Dynamic */
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.actas-details-text {
    font-size: 0.825rem;
    color: var(--text-muted);
}

/* Matchup Section */
.candidates-matchup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

.candidate-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.candidate-block.jp-side {
    align-items: flex-start;
}

.candidate-block.fp-side {
    align-items: flex-end;
    text-align: right;
}

.candidate-party-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 0.25rem;
    font-family: var(--font-header);
    font-size: 0.675rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    text-transform: uppercase;
}

.candidate-party-badge.jp {
    background-color: var(--color-jp);
    box-shadow: 0 0 10px var(--color-jp-glow);
}

.candidate-party-badge.fp {
    background-color: var(--color-fp);
    box-shadow: 0 0 10px var(--color-fp-glow);
}

.candidate-name {
    font-family: var(--font-header);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.candidate-vote-pct {
    font-family: var(--font-header);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin: 0.25rem 0;
}

.jp-side .candidate-vote-pct {
    color: var(--color-jp);
    text-shadow: 0 0 20px var(--color-jp-glow);
}

.fp-side .candidate-vote-pct {
    color: var(--color-fp);
    text-shadow: 0 0 20px var(--color-fp-glow);
}

.candidate-vote-count {
    font-family: var(--font-header);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.versus-divider {
    font-family: var(--font-header);
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .candidates-matchup {
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
    }
    .candidate-block.fp-side {
        align-items: flex-start;
        text-align: left;
    }
    .versus-divider {
        align-self: center;
    }
}

/* Comparative Votes Bar */
.comparative-bar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comparative-bar-outer {
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    border: 1px solid var(--border-color);
}

.comp-bar-fill {
    height: 100%;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.comp-bar-fill.jp {
    background: linear-gradient(90deg, #b91c1c, var(--color-jp));
    box-shadow: inset -5px 0 10px rgba(0,0,0,0.3);
}

.comp-bar-fill.fp {
    background: linear-gradient(90deg, var(--color-fp), #ea580c);
    box-shadow: inset 5px 0 10px rgba(0,0,0,0.3);
}

.comp-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Margin/Difference banner */
.margin-ticker-banner {
    background: rgba(0, 159, 227, 0.08); /* Frosted Cyan */
    border: 1.5px solid rgba(0, 159, 227, 0.25);
    padding: 0.85rem 1.5rem;
    border-radius: 9999px;
    text-align: center;
    font-size: 0.95rem;
    font-family: var(--font-header);
    color: var(--text-primary);
    box-shadow: 0 5px 15px rgba(0, 43, 73, 0.04);
    max-width: 800px;
    margin: 1.5rem auto 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.margin-highlight {
    font-family: var(--font-header);
    font-weight: 850;
    color: var(--text-primary);
}

/* Card Titles */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.card-title {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-icon {
    color: var(--text-muted);
}

/* Chart Widget */
.chart-container {
    position: relative;
    height: 350px;
    width: 100%;
}

/* News Live Feed Widget */
.feed-widget {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feed-items-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    max-height: 350px;
    padding-right: 0.5rem;
}

.feed-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    animation: slideIn 0.5s ease-out forwards;
}

.feed-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feed-time-dot-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.feed-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
    margin-top: 0.4rem;
}

.feed-dot.new-alert {
    background-color: var(--color-live);
    box-shadow: 0 0 8px var(--color-live-glow);
}

.feed-line {
    width: 2px;
    flex-grow: 1;
    background-color: rgba(255, 255, 255, 0.05);
    margin-top: 0.25rem;
}

.feed-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.feed-time {
    font-family: var(--font-header);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.feed-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.feed-text {
    font-size: 0.825rem;
    color: var(--text-secondary);
}

/* Regional Breakdown Table Widget */
.regional-widget {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.search-input-wrapper {
    position: relative;
    flex-grow: 1;
    max-width: 300px;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem 0.5rem 2.25rem;
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--border-glow);
    background: rgba(255, 255, 255, 0.06);
}

.search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.filter-btn-group {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.85rem;
    border-radius: 0.5rem;
    color: var(--text-secondary);
    font-family: var(--font-header);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--text-primary);
    color: var(--bg-dark);
    border-color: var(--text-primary);
}

/* Table Design */
.table-wrapper {
    overflow-x: auto;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}

th {
    background: rgba(255, 255, 255, 0.02);
    padding: 0.75rem 1rem;
    font-family: var(--font-header);
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    cursor: pointer;
}

th.sortable:hover {
    color: var(--text-primary);
    background: rgba(0, 43, 73, 0.04);
}

td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(0, 43, 73, 0.05);
    color: var(--text-secondary);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(0, 43, 73, 0.02);
    color: var(--text-primary);
}

.dept-name {
    font-family: var(--font-header);
    font-weight: 600;
    color: var(--text-primary);
}

.dept-highlight {
    background: rgba(249, 115, 22, 0.05) !important; /* Visual highlight for key areas like Extranjero */
    border-left: 3px solid var(--color-fp);
}

.dept-highlight-jp {
    border-left: 3px solid var(--color-jp);
}

.table-pct-cell {
    font-family: var(--font-header);
    font-weight: 700;
}

.table-pct-cell.jp-color {
    color: var(--color-jp);
}

.table-pct-cell.fp-color {
    color: var(--color-fp);
}

.winner-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.35rem;
}

.winner-indicator-dot.jp-win {
    background-color: var(--color-jp);
    box-shadow: 0 0 6px var(--color-jp);
}

.winner-indicator-dot.fp-win {
    background-color: var(--color-fp);
    box-shadow: 0 0 6px var(--color-fp);
}

.mini-progress-track {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.mini-progress-fill {
    height: 100%;
    border-radius: 2px;
}

/* Footer Section */
footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-disclaimer {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Candidate Layout Styles (with photos) */
.candidate-header-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}

.candidate-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid;
    transition: all 0.3s ease;
    background: #0f172a;
}

.candidate-photo.jp {
    border-color: var(--color-jp);
    box-shadow: 0 0 15px var(--color-jp-glow);
}

.candidate-photo.fp {
    border-color: var(--color-fp);
    box-shadow: 0 0 15px var(--color-fp-glow);
}

.candidate-photo:hover {
    transform: scale(1.05);
}

.fp-side .candidate-header-wrapper {
    flex-direction: row-reverse;
}

/* CORS Blocker Overlay */
.cors-blocker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 10, 19, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99999;
    display: none; /* Controlled by JS */
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.cors-modal-card {
    max-width: 600px;
    width: 100%;
    background: rgba(17, 25, 44, 0.85);
    border: 1px solid var(--border-glow);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.cors-modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-jp) 0%, var(--color-fp) 100%);
}

.cors-modal-title {
    font-family: var(--font-header);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cors-modal-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cors-cmd-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-family: monospace;
    font-size: 0.85rem;
    color: #60a5fa;
    user-select: all;
    margin-bottom: 1.5rem;
    word-break: break-all;
    text-align: left;
}

/* Dragon Ball Z Kamehameha Clash (Dynamic HTML/CSS) */
.kamehameha-clash-container {
    position: relative;
    height: 300px;
    background: #1e293b; /* Fallback slate color */
    background-image: 
        linear-gradient(to right, rgba(225, 29, 72, 0.25) 0%, transparent 35%, transparent 65%, rgba(249, 115, 22, 0.25) 100%),
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url('peru_town_clash_bg.png');
    background-size: cover;
    background-position: center;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin: 2.5rem 0;
    box-shadow: 
        0 15px 35px rgba(0, 43, 73, 0.2), 
        inset 0 0 60px rgba(0, 0, 0, 0.8);
}

.energy-source {
    position: absolute;
    bottom: -15px;
    height: 120%;
    width: 250px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

/* Floating Wrappers and Levitating Shadows for DBZ Fighters */
.clash-fighter-wrap {
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 6;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    animation: float-levitate 2.2s infinite alternate ease-in-out;
}

.clash-fighter-wrap.jp {
    animation-delay: 0s;
}

.clash-fighter-wrap.fp {
    animation-delay: -1.1s; /* Out of phase levitation */
}

@keyframes float-levitate {
    0% { transform: translateY(0); }
    100% { transform: translateY(-16px); } /* Levitate up by 16px */
}

.energy-source::before {
    content: '';
    position: absolute;
    bottom: 25px; /* Sits stationary below the floating candidate */
    width: 110px;
    height: 10px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 50%;
    filter: blur(4px);
    z-index: 4;
    transition: all 0.3s ease;
    pointer-events: none;
}

.energy-source.jp-side-fighter::before {
    box-shadow: 0 0 10px rgba(225, 29, 72, 0.45);
    animation: shadow-pulsate-jp 2.2s infinite alternate ease-in-out;
}

.energy-source.fp-side-fighter::before {
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.45);
    animation: shadow-pulsate-fp 2.2s infinite alternate ease-in-out;
    animation-delay: -1.1s;
}

@keyframes shadow-pulsate-jp {
    0% { transform: scale(1); opacity: 1; filter: blur(4px); }
    100% { transform: scale(0.7); opacity: 0.4; filter: blur(6px); } /* Fades and shrinks as they rise */
}

@keyframes shadow-pulsate-fp {
    0% { transform: scale(1); opacity: 1; filter: blur(4px); }
    100% { transform: scale(0.7); opacity: 0.4; filter: blur(6px); }
}

.energy-source.jp-side-fighter {
    left: -10px;
}

.energy-source.fp-side-fighter {
    right: -10px;
}

/* Speech Balloons (Anime/Manga style with Premium Glassmorphism) */
.speech-bubble-wrapper {
    position: absolute;
    top: 50px;
    width: 210px;
    z-index: 30;
    pointer-events: none;
}

.speech-bubble-wrapper.jp {
    left: 155px;
}

.speech-bubble-wrapper.fp {
    right: 155px;
}

.speech-bubble {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid #002b49; /* ONPE Navy */
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    font-family: var(--font-body);
    font-size: 0.825rem;
    line-height: 1.35;
    font-weight: 550;
    color: #002b49;
    box-shadow: 
        0 8px 20px rgba(0, 43, 73, 0.25), 
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: scale(0.8) translateY(12px);
    transition: opacity 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.speech-bubble.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.speech-bubble-wrapper.jp .speech-bubble strong {
    font-weight: 800;
    color: var(--color-jp);
}

.speech-bubble-wrapper.fp .speech-bubble strong {
    font-weight: 800;
    color: var(--color-fp);
}

/* Speech bubble pointers (tails) */
.speech-bubble-wrapper.jp .speech-bubble::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: -10px;
    border-width: 8px 10px 8px 0;
    border-style: solid;
    border-color: transparent rgba(255, 255, 255, 0.96) transparent transparent;
    display: block;
    width: 0;
    z-index: 2;
}

.speech-bubble-wrapper.jp .speech-bubble::before {
    content: '';
    position: absolute;
    bottom: 11px;
    left: -12px;
    border-width: 9px 12px 9px 0;
    border-style: solid;
    border-color: transparent #002b49 transparent transparent;
    display: block;
    width: 0;
    z-index: 1;
}

.speech-bubble-wrapper.fp .speech-bubble::after {
    content: '';
    position: absolute;
    bottom: 12px;
    right: -10px;
    border-width: 8px 0 8px 10px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.96);
    display: block;
    width: 0;
    z-index: 2;
}

.speech-bubble-wrapper.fp .speech-bubble::before {
    content: '';
    position: absolute;
    bottom: 11px;
    right: -12px;
    border-width: 9px 0 9px 12px;
    border-style: solid;
    border-color: transparent transparent transparent #002b49;
    display: block;
    width: 0;
    z-index: 1;
}

.clash-fighter {
    height: 100%;
    width: 100%;
    object-fit: contain;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: all 0.25s ease;
}

.clash-fighter.jp {
    object-position: bottom left;
    transform: scaleX(-1); /* Mirror Sanchez so he faces right */
    animation: shake-heavy-reverse 0.15s infinite alternate, jp-aura-glow 1.5s infinite alternate;
}

.clash-fighter.fp {
    object-position: bottom right;
    transform: scaleX(-1); /* Mirror Keiko so she faces left */
    animation: shake-heavy-reverse 0.15s infinite alternate, fp-aura-glow 1.5s infinite alternate;
}

.fighter-tag {
    position: absolute;
    top: 20px;
    width: auto;
    z-index: 15;
    font-family: var(--font-header);
    font-weight: 850;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 0.35rem 1rem;
    border-radius: 6px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

.fighter-tag.jp {
    left: 250px;
    background: linear-gradient(135deg, #e11d48, #991b1b);
    box-shadow: 0 0 15px rgba(225, 29, 72, 0.5);
}

.fighter-tag.fp {
    right: 250px;
    background: linear-gradient(135deg, #f97316, #c2410c);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.5);
}

.clash-battleground {
    position: absolute;
    left: 110px; /* Bridge the gap to the fighters' hands */
    right: 110px; /* Bridge the gap to the fighters' hands */
    height: 52px; /* Thicker, more epic beams! */
    z-index: 8;
    background: rgba(0, 0, 0, 0.65);
    border: 2.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 26px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(0, 0, 0, 0.9);
    overflow: visible;
    top: 60%;
    transform: translateY(-50%);
}

.beam-track {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    border-radius: 24px;
    overflow: hidden;
}

.kamehameha-beam {
    height: 100%;
    position: relative;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.kamehameha-beam.jp-beam {
    background: linear-gradient(90deg, #991b1b 10%, #e11d48 75%, #ffffff 100%);
    box-shadow: 0 0 30px #e11d48, inset 0 0 12px rgba(255, 255, 255, 0.8);
}

.kamehameha-beam.fp-beam {
    background: linear-gradient(-90deg, #c2410c 10%, #f97316 75%, #ffffff 100%);
    box-shadow: 0 0 30px #f97316, inset 0 0 12px rgba(255, 255, 255, 0.8);
}

/* Energy flow waves inside beams */
.energy-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0px,
        rgba(255, 255, 255, 0) 40px,
        rgba(255, 255, 255, 0.45) 50px,
        rgba(255, 255, 255, 0) 60px
    );
    opacity: 0.8;
}

.jp-beam .energy-waves {
    animation: flow-right 0.4s linear infinite;
}

.fp-beam .energy-waves {
    animation: flow-left 0.4s linear infinite;
}

/* Clash Energy Spark (meet point) */
.clash-spark {
    position: absolute;
    top: 50%;
    width: 100px;
    height: 100px;
    transform: translate(-50%, -50%);
    z-index: 10;
    transition: left 1s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.spark-core {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #ffffff 35%, #93c5fd 65%, rgba(225, 29, 72, 0.8) 85%, rgba(249, 115, 22, 0.8) 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 35px 20px #ffffff, 
        0 0 65px 35px #60a5fa, 
        0 0 95px 45px rgba(225, 29, 72, 0.85),
        0 0 115px 55px rgba(249, 115, 22, 0.85);
    animation: spark-pulse 0.1s linear infinite alternate;
}

.spark-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(147,197,253,0.75) 45%, rgba(225,29,72,0) 80%);
    animation: rotate-glow 0.3s linear infinite;
}

/* Lightning arcs at the clash point */
.lightning-arc {
    position: absolute;
    top: -25px;
    left: -25px;
    width: 150px;
    height: 150px;
    border: 3px dashed rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    animation: lightning-crackle 0.08s steps(2) infinite;
}

/* Aura Glow Animations */
@keyframes jp-aura-glow {
    0% { filter: drop-shadow(0 0 5px rgba(225, 29, 72, 0.6)) drop-shadow(0 0 10px rgba(225, 29, 72, 0.3)); }
    100% { filter: drop-shadow(0 0 20px rgba(225, 29, 72, 0.95)) drop-shadow(0 0 35px rgba(225, 29, 72, 0.5)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.8)); }
}

@keyframes fp-aura-glow {
    0% { filter: drop-shadow(0 0 5px rgba(249, 115, 22, 0.6)) drop-shadow(0 0 10px rgba(249, 115, 22, 0.3)); }
    100% { filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.95)) drop-shadow(0 0 35px rgba(249, 115, 22, 0.5)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.8)); }
}

@keyframes flow-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

@keyframes flow-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes spark-pulse {
    0% { transform: scale(0.85); }
    100% { transform: scale(1.25); }
}

@keyframes rotate-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes lightning-crackle {
    0% { transform: scale(0.9) rotate(0deg); border-color: rgba(255,255,255,0.9); }
    50% { transform: scale(1.15) rotate(90deg); border-color: #60a5fa; }
    100% { transform: scale(1) rotate(180deg); border-color: #e11d48; }
}

/* Shaking animations for candidates during heavy clash */
@keyframes shake-heavy {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -1px) rotate(-1deg); }
    20% { transform: translate(-2px, 0px) rotate(1deg); }
    30% { transform: translate(0px, 1px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 1px) rotate(-1deg); }
    60% { transform: translate(-2px, 1px) rotate(0deg); }
    70% { transform: translate(1px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 1px) rotate(0deg); }
    100% { transform: translate(1px, -1px) rotate(-1deg); }
}

@keyframes shake-heavy-reverse {
    0% { transform: translate(-1px, -1px) rotate(-1deg) scaleX(-1); }
    10% { transform: translate(1px, 1px) rotate(0deg) scaleX(-1); }
    20% { transform: translate(1px, 1px) rotate(0deg) scaleX(-1); }
    30% { transform: translate(-1px, -1px) rotate(1deg) scaleX(-1); }
    40% { transform: translate(-2px, 1px) rotate(0deg) scaleX(-1); }
    50% { transform: translate(1px, -1px) rotate(1deg) scaleX(-1); }
    60% { transform: translate(0px, 1px) rotate(0deg) scaleX(-1); }
    70% { transform: translate(-2px, 0px) rotate(1deg) scaleX(-1); }
    80% { transform: translate(-1px, 1px) rotate(-1deg) scaleX(-1); }
    90% { transform: translate(1px, -1px) rotate(-1deg) scaleX(-1); }
    100% { transform: translate(1px, 1px) rotate(-1deg) scaleX(-1); }
}

@media (max-width: 768px) {
    .kamehameha-clash-container {
        height: 180px;
        margin: 1.5rem 0;
    }
    .energy-source {
        width: 120px;
        height: 115%;
        bottom: -10px;
    }
    .energy-source.jp-side-fighter {
        left: -10px;
    }
    .energy-source.fp-side-fighter {
        right: -10px;
    }
    .clash-fighter {
        height: 100%;
        width: 100%;
    }
    .clash-battleground {
        left: 95px;
        right: 95px;
        height: 28px;
        border-radius: 14px;
        top: 65%;
    }
    .beam-track {
        border-radius: 12px;
    }
    .clash-spark {
        width: 55px;
        height: 55px;
    }
    .spark-core {
        width: 55px;
        height: 55px;
        box-shadow: 
            0 0 20px 8px #ffffff, 
            0 0 35px 15px #60a5fa, 
            0 0 55px 22px rgba(225, 29, 72, 0.8),
            0 0 65px 28px rgba(249, 115, 22, 0.8);
    }
    .spark-glow {
        width: 65px;
        height: 65px;
        top: -5px;
        left: -5px;
    }
    .lightning-arc {
        width: 80px;
        height: 80px;
        top: -12px;
        left: -12px;
    }
    .clash-diff-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
        border-radius: 4px;
        border-width: 1px;
    }
    .fighter-tag {
        top: 10px;
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
    .fighter-tag.jp {
        left: 95px;
    }
    .fighter-tag.fp {
        right: 95px;
    }
    
    /* Responsive Speech Balloons */
    .speech-bubble-wrapper {
        top: 25px;
        width: 125px;
    }
    .speech-bubble-wrapper.jp {
        left: 70px;
    }
    .speech-bubble-wrapper.fp {
        right: 70px;
    }
    .speech-bubble {
        font-size: 0.6rem;
        padding: 0.35rem 0.5rem;
        border-width: 1.5px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 43, 73, 0.2);
    }
    .speech-bubble-wrapper.jp .speech-bubble::after {
        bottom: 8px;
        left: -6px;
        border-width: 5px 6px 5px 0;
        border-color: transparent rgba(255, 255, 255, 0.96) transparent transparent;
    }
    .speech-bubble-wrapper.jp .speech-bubble::before {
        bottom: 7px;
        left: -8px;
        border-width: 6px 8px 6px 0;
        border-color: transparent #002b49 transparent transparent;
    }
    .speech-bubble-wrapper.fp .speech-bubble::after {
        bottom: 8px;
        right: -6px;
        border-width: 5px 0 5px 6px;
        border-color: transparent transparent transparent rgba(255, 255, 255, 0.96);
    }
    .speech-bubble-wrapper.fp .speech-bubble::before {
        bottom: 7px;
        right: -8px;
        border-width: 6px 0 6px 8px;
        border-color: transparent transparent transparent #002b49;
    }
}

/* Clash Vote Difference Badge */
.clash-diff-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-header);
    font-weight: 900;
    font-size: 0.85rem;
    color: #ffffff;
    text-shadow: 
        -2px -2px 0 #000,  
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000,
         0 0 10px rgba(0, 0, 0, 0.9);
    background: rgba(11, 15, 25, 0.85);
    border: 2px solid #e2e8f0;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 25;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.05em;
}

/* Live Clash History Log styles */
.clash-history-card {
    background: rgba(0, 43, 73, 0.02);
    border: 1px solid rgba(0, 43, 73, 0.08);
    border-radius: 10px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    box-shadow: inset 0 0 15px rgba(0, 43, 73, 0.02);
}

.history-title {
    font-family: var(--font-header);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
    border-bottom: 1px solid rgba(0, 43, 73, 0.08);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-log-container {
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-right: 0.5rem;
}

.history-log-container::-webkit-scrollbar {
    width: 6px;
}
.history-log-container::-webkit-scrollbar-thumb {
    background: rgba(0, 43, 73, 0.1);
    border-radius: 3px;
}
.history-log-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 43, 73, 0.25);
}

.history-log-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 43, 73, 0.06);
    border-radius: 6px;
    font-size: 0.85rem;
    border-left: 4px solid transparent;
    animation: logSlideIn 0.3s ease-out forwards;
    gap: 1rem;
}

@keyframes logSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.history-log-row:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 159, 227, 0.2);
}

.history-log-row.jp-lead {
    border-left-color: var(--color-jp);
}

.history-log-row.fp-lead {
    border-left-color: var(--color-fp);
}

.history-log-time {
    color: var(--text-muted);
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 500;
}

.history-log-actas {
    font-weight: 500;
    color: var(--text-secondary);
}

.history-log-actas strong {
    color: var(--text-primary);
}

.history-log-counts {
    color: var(--text-secondary);
}

.history-log-diff {
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.5);
}

.history-log-diff.jp-color {
    color: var(--color-jp);
    border: 1px solid rgba(225, 29, 72, 0.25);
}

.history-log-diff.fp-color {
    color: var(--color-fp);
    border: 1px solid rgba(249, 115, 22, 0.25);
}

.history-log-placeholder {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
    padding: 1.5rem 0;
    font-style: italic;
}

/* Intro Animation States */
.kamehameha-clash-container.clash-intro-charging .clash-fighter.jp {
    animation: charging-aura-jp 0.08s infinite alternate, jp-charging-glow 0.6s infinite alternate !important;
}

.kamehameha-clash-container.clash-intro-charging .clash-fighter.fp {
    animation: charging-aura-fp 0.08s infinite alternate, fp-charging-glow 0.6s infinite alternate !important;
}

.kamehameha-clash-container.clash-intro-charging .kamehameha-beam {
    width: 0% !important;
    opacity: 0.1;
}

.kamehameha-clash-container.clash-intro-charging .clash-spark {
    transform: translate(-50%, -50%) scale(0) !important;
    opacity: 0;
}

.kamehameha-clash-container.clash-intro-charging .speech-bubble-wrapper {
    opacity: 0 !important;
    transform: scale(0.5) translateY(20px) !important;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Firing state transitions */
.kamehameha-clash-container.clash-intro-firing .kamehameha-beam {
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.kamehameha-clash-container.clash-intro-firing .clash-spark {
    animation: spark-burst 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Animations for charging and firing */
@keyframes charging-aura-jp {
    0% { transform: scaleX(-1) translate(1.5px, 1.5px) scale(1.03); }
    100% { transform: scaleX(-1) translate(-1.5px, -1.5px) scale(1.07); }
}

@keyframes charging-aura-fp {
    0% { transform: scaleX(-1) translate(-1.5px, 1.5px) scale(1.03); }
    100% { transform: scaleX(-1) translate(1.5px, -1.5px) scale(1.07); }
}

@keyframes jp-charging-glow {
    0% { filter: drop-shadow(0 0 8px rgba(225, 29, 72, 0.7)) saturate(1.4); }
    100% { filter: drop-shadow(0 0 38px rgba(225, 29, 72, 1)) saturate(1.8) brightness(1.15); }
}

@keyframes fp-charging-glow {
    0% { filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.7)) saturate(1.4); }
    100% { filter: drop-shadow(0 0 38px rgba(249, 115, 22, 1)) saturate(1.8) brightness(1.15); }
}

@keyframes spark-burst {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(2.4); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Extra Mobile Responsiveness Enhancements (Above the Fold Layout) */
@media (max-width: 768px) {
    /* 1. Global Page Padding */
    .container {
        padding: 0.5rem 0.5rem !important;
    }
    
    .glass-card {
        padding: 0.75rem 0.5rem !important;
        border-radius: 12px !important;
    }

    /* 2. Header and Metadata Compact Layout */
    header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 0.45rem !important;
        padding-bottom: 0.4rem !important;
        gap: 0.35rem !important;
    }
    
    .header-title-container {
        align-items: center !important;
        gap: 0.15rem !important;
    }
    
    .header-badge-row {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.25rem !important;
    }
    
    h1 {
        font-size: 1.45rem !important;
        line-height: 1.15 !important;
        margin-top: 0.1rem !important;
        text-align: center !important;
    }
    
    .subtitle {
        display: none !important; /* Hide subtitle to save space */
    }
    
    .meta-stats {
        width: 100% !important;
        justify-content: space-around !important;
        gap: 0.5rem !important;
        margin-top: 0.15rem !important;
        border-top: 1px solid rgba(0, 43, 73, 0.05) !important;
        padding-top: 0.2rem !important;
    }
    
    .meta-item {
        flex: 1 !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .meta-label {
        font-size: 0.6rem !important;
    }
    
    .meta-val {
        font-size: 0.85rem !important;
    }

    /* 3. Actas Progress slim layout */
    .actas-progress-banner {
        padding: 0.35rem 0.65rem !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    
    .actas-label-group {
        gap: 0.35rem !important;
    }
    
    .actas-title {
        font-size: 0.7rem !important;
        font-weight: 700 !important;
    }
    
    .actas-percent {
        font-size: 1.05rem !important;
    }
    
    .actas-details-text {
        font-size: 0.625rem !important;
        text-align: right !important;
    }
    
    .actas-bar-bg {
        display: none !important; /* Hide progress bar on mobile */
    }

    /* 4. Horizontal Candidates Layout (Side-by-Side) */
    .candidates-matchup {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0.2rem !important;
        margin: 0.35rem 0 !important;
    }
    
    .candidate-block {
        flex: 1 !important;
        align-items: center !important;
        text-align: center !important;
        gap: 0.15rem !important;
    }
    
    .candidate-header-wrapper {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.25rem !important;
    }
    
    .fp-side .candidate-header-wrapper {
        flex-direction: column !important;
    }
    
    .candidate-photo {
        width: 44px !important;
        height: 44px !important;
        border-width: 2px !important;
    }
    
    .candidate-name {
        font-size: 0.825rem !important;
        font-weight: 700 !important;
        line-height: 1.1 !important;
    }
    
    .candidate-party-badge {
        font-size: 0.55rem !important;
        padding: 0.05rem 0.25rem !important;
        border-radius: 3px !important;
        white-space: nowrap !important;
    }
    
    .candidate-vote-pct {
        font-size: 1.4rem !important;
        margin: 0 !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .candidate-vote-count {
        font-size: 0.725rem !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .versus-divider {
        font-size: 0.7rem !important;
        width: 26px !important;
        height: 26px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    /* 5. Clash Widget Compact layout */
    .kamehameha-clash-container {
        height: 165px !important;
        margin: 0.5rem 0 !important;
    }
    
    .energy-source {
        bottom: -10px !important;
        width: 110px !important;
    }
    
    .clash-fighter {
        transform: scaleX(-1) scale(1.05) !important;
    }
    
    .fighter-tag {
        top: 6px !important;
        font-size: 0.575rem !important;
        padding: 0.15rem 0.45rem !important;
    }
    
    .fighter-tag.jp {
        left: 10px !important;
    }
    
    .fighter-tag.fp {
        right: 10px !important;
    }
    
    .clash-battleground {
        left: 55px !important; /* Bridge the gap to the fighters' hands on mobile */
        right: 55px !important; /* Bridge the gap to the fighters' hands on mobile */
        height: 24px !important;
        border-radius: 12px !important;
        top: 70% !important;
    }
    
    .clash-spark {
        width: 45px !important;
        height: 45px !important;
    }
    
    .spark-core {
        width: 45px !important;
        height: 45px !important;
    }
    
    .spark-glow {
        width: 55px !important;
        height: 55px !important;
    }
    
    .lightning-arc {
        width: 70px !important;
        height: 70px !important;
    }
    
    .clash-diff-badge {
        font-size: 0.625rem !important;
        padding: 0.1rem 0.35rem !important;
    }

    /* 6. Speech Bubbles Scaled */
    .speech-bubble-wrapper {
        top: 24px !important;
        width: 105px !important;
    }
    
    .speech-bubble-wrapper.jp {
        left: 70px !important;
    }
    
    .speech-bubble-wrapper.fp {
        right: 70px !important;
    }
    
    .speech-bubble {
        font-size: 0.575rem !important;
        padding: 0.3rem 0.4rem !important;
        border-width: 1.5px !important;
        border-radius: 8px !important;
    }
    
    .speech-bubble-wrapper.jp .speech-bubble::after {
        bottom: 6px !important;
        left: -5px !important;
        border-width: 4px 5px 4px 0 !important;
    }
    
    .speech-bubble-wrapper.jp .speech-bubble::before {
        bottom: 5px !important;
        left: -7px !important;
        border-width: 5px 7px 5px 0 !important;
    }
    
    .speech-bubble-wrapper.fp .speech-bubble::after {
        bottom: 6px !important;
        right: -5px !important;
        border-width: 4px 0 4px 5px !important;
    }
    
    .speech-bubble-wrapper.fp .speech-bubble::before {
        bottom: 5px !important;
        right: -7px !important;
        border-width: 5px 0 5px 7px !important;
    }

    /* 7. Margin Ticker slimmed down */
    .margin-ticker-banner {
        margin: 0.5rem auto 0 auto !important;
        padding: 0.35rem 0.75rem !important;
        font-size: 0.75rem !important;
        border-radius: 6px !important;
    }
    
    /* 8. Regional Table adjustments */
    th, td {
        padding: 0.45rem 0.45rem !important;
        font-size: 0.7rem !important;
    }
    .mini-progress-track {
        width: 35px !important;
    }

    /* 9. Mobile Floating & Shadows overrides */
    .clash-fighter-wrap {
        animation: float-levitate-mobile 2.2s infinite alternate ease-in-out !important;
    }
    
    @keyframes float-levitate-mobile {
        0% { transform: translateY(0); }
        100% { transform: translateY(-8px) !important; }
    }
    
    .energy-source::before {
        bottom: 12px !important;
        width: 60px !important;
        height: 6px !important;
        filter: blur(3px) !important;
    }
    
    .energy-source.jp-side-fighter::before {
        animation: shadow-pulsate-jp-mobile 2.2s infinite alternate ease-in-out !important;
    }
    
    .energy-source.fp-side-fighter::before {
        animation: shadow-pulsate-fp-mobile 2.2s infinite alternate ease-in-out !important;
        animation-delay: -1.1s !important;
    }
    
    @keyframes shadow-pulsate-jp-mobile {
        0% { transform: scale(1); opacity: 1; filter: blur(3px); }
        100% { transform: scale(0.75); opacity: 0.4; filter: blur(5px); }
    }
    
    @keyframes shadow-pulsate-fp-mobile {
        0% { transform: scale(1); opacity: 1; filter: blur(3px); }
        100% { transform: scale(0.75); opacity: 0.4; filter: blur(5px); }
    }
}

/* History rows grid layout */
@media (max-width: 600px) {
    .history-log-row {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        row-gap: 0.2rem !important;
        column-gap: 0.5rem !important;
        padding: 0.45rem 0.65rem !important;
    }
    .history-log-time {
        grid-column: 1 !important;
        grid-row: 1 !important;
        font-size: 0.725rem !important;
    }
    .history-log-actas {
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-self: start !important;
        margin-left: 5.5rem !important;
        font-size: 0.725rem !important;
    }
    .history-log-counts {
        grid-column: 1 !important;
        grid-row: 2 !important;
        font-size: 0.725rem !important;
        text-align: left !important;
    }
    .history-log-diff {
        grid-column: 2 !important;
        grid-row: 1 / span 2 !important;
        align-self: center !important;
        font-size: 0.725rem !important;
        padding: 0.15rem 0.35rem !important;
    }
}

@media (max-width: 480px) {
    .apple-navbar-links {
        gap: 8px !important;
    }
    .apple-navbar-links a {
        font-size: 9.5px !important;
    }
    .apple-navbar-brand span {
        display: none !important;
    }
}

/* ==========================================================================
   Timeline Scrubber (Time Travel) and Pending Actas Card Styles
   ========================================================================== */

/* Timeline Scrubber Container */
.timeline-scrubber-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 43, 73, 0.08);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 43, 73, 0.03);
    transition: all 0.3s ease;
    z-index: 100;
}

.timeline-scrubber-card:hover {
    box-shadow: 0 6px 18px rgba(0, 43, 73, 0.06);
    border-color: rgba(0, 159, 227, 0.2);
}

/* Timeline Header Layout */
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Mode Indicator Badge */
.timeline-mode-badge {
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.25);
    color: var(--color-live);
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 750;
    font-family: var(--font-header);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(52, 199, 89, 0.08);
}

.timeline-mode-badge.historical {
    background: rgba(255, 149, 0, 0.08) !important;
    border-color: rgba(255, 149, 0, 0.25) !important;
    color: #e67e22 !important;
    box-shadow: 0 2px 6px rgba(255, 149, 0, 0.08) !important;
}

.timeline-mode-badge.historical .live-dot {
    background-color: #e67e22 !important;
    box-shadow: 0 0 6px rgba(255, 149, 0, 0.4) !important;
    animation: pulse-amber 1.8s infinite !important;
}

@keyframes pulse-amber {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255, 149, 0, 0.4); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 5px transparent; }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 transparent; }
}

/* Timestamp display */
.timeline-timestamp {
    font-family: var(--font-header);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(0, 43, 73, 0.03);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 43, 73, 0.05);
}

/* Button to return to live mode */
.btn-live-resume {
    background: linear-gradient(135deg, #002b49 0%, #009fe3 100%);
    color: #ffffff;
    border: none;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-family: var(--font-header);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 159, 227, 0.2);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    animation: bounce-in 0.35s forwards;
}

.btn-live-resume:hover {
    transform: translateY(-1.5px) scale(1.03);
    box-shadow: 0 6px 14px rgba(0, 159, 227, 0.35);
}

.btn-live-resume:active {
    transform: translateY(0) scale(0.98);
}

@keyframes bounce-in {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* Slider Track and Thumb Styling */
.timeline-slider-wrapper {
    position: relative;
    width: 100%;
    margin-top: 0.45rem;
    pointer-events: auto !important;
}

.timeline-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 7px;
    border-radius: 9999px;
    background: linear-gradient(90deg, rgba(0, 43, 73, 0.1) 0%, rgba(0, 159, 227, 0.25) 100%);
    outline: none;
    transition: background 0.3s;
    cursor: pointer;
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
}

/* Runnable track styling to fix click/drag events in webkit and firefox */
.timeline-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 7px;
    cursor: pointer;
    background: transparent;
    border: none;
}

.timeline-slider::-moz-range-track {
    width: 100%;
    height: 7px;
    cursor: pointer;
    background: transparent;
    border: none;
}

/* Customize range slider thumb */
.timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #009fe3;
    box-shadow: 0 0 10px rgba(0, 159, 227, 0.5), inset 0 1px 0 rgba(255,255,255,1);
    cursor: pointer;
    transition: all 0.2s;
    margin-top: -6.5px;
}

.timeline-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #009fe3;
    box-shadow: 0 0 10px rgba(0, 159, 227, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}

/* JP Lead Slider Thumb */
.timeline-slider.jp-lead-thumb::-webkit-slider-thumb {
    border-color: var(--color-jp);
    box-shadow: 0 0 12px rgba(225, 29, 72, 0.7), inset 0 1px 0 rgba(255,255,255,1);
}
.timeline-slider.jp-lead-thumb::-moz-range-thumb {
    border-color: var(--color-jp);
    box-shadow: 0 0 12px rgba(225, 29, 72, 0.7);
}

/* FP Lead Slider Thumb */
.timeline-slider.fp-lead-thumb::-webkit-slider-thumb {
    border-color: var(--color-fp);
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.7), inset 0 1px 0 rgba(255,255,255,1);
}
.timeline-slider.fp-lead-thumb::-moz-range-thumb {
    border-color: var(--color-fp);
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.7);
}

.timeline-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.timeline-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* Timeline ticks */
.timeline-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.35rem;
    pointer-events: none;
    user-select: none;
}

.tick-label {
    white-space: nowrap;
}

.tick-label.left {
    text-align: left;
}

.tick-label.center {
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.75;
}

.tick-label.right {
    text-align: right;
    font-weight: 700;
    color: var(--color-live);
}

/* Pending Actas Report Card */
.actas-pendientes-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    margin: 1.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 43, 73, 0.04);
    transition: all 0.3s ease;
}

.actas-pendientes-card.enlarged {
    border-color: rgba(0, 159, 227, 0.15);
}

.actas-pendientes-card.enlarged:hover {
    border-color: var(--border-glow);
    box-shadow: 0 15px 40px rgba(0, 43, 73, 0.08);
}

.actas-pendientes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 43, 73, 0.05);
    padding-bottom: 0.85rem;
}

.title-section {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.actas-pendientes-title {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.actas-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Summary breakdown pills */
.actas-pendientes-summary {
    display: flex;
    gap: 0.55rem;
}

.summary-pill {
    display: flex;
    flex-direction: column;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid;
    text-align: center;
    min-width: 105px;
}

.summary-pill.total {
    background: rgba(0, 43, 73, 0.03);
    border-color: rgba(0, 43, 73, 0.1);
    color: var(--text-primary);
}

.summary-pill.queue {
    background: rgba(0, 159, 227, 0.05);
    border-color: rgba(0, 159, 227, 0.15);
    color: #009fe3;
}

.summary-pill.jee {
    background: rgba(255, 149, 0, 0.05);
    border-color: rgba(255, 149, 0, 0.15);
    color: #ea580c;
}

.summary-label {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.8;
}

.summary-value {
    font-family: var(--font-header);
    font-size: 0.95rem;
    font-weight: 850;
}

/* Two-column layout */
.actas-pendientes-content-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.75rem;
    margin-top: 1.15rem;
}

.column-section-title {
    font-family: var(--font-header);
    font-size: 0.85rem;
    font-weight: 750;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Region pills grid (scrolling container) */
.pending-regions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    max-height: 295px;
    overflow-y: auto;
    padding-right: 0.45rem;
}

/* Scrollbar customization for cards */
.pending-regions-grid::-webkit-scrollbar,
.feed-items-container::-webkit-scrollbar {
    width: 6px;
}
.pending-regions-grid::-webkit-scrollbar-track,
.feed-items-container::-webkit-scrollbar-track {
    background: rgba(0, 43, 73, 0.02);
    border-radius: 99px;
}
.pending-regions-grid::-webkit-scrollbar-thumb,
.feed-items-container::-webkit-scrollbar-thumb {
    background: rgba(0, 43, 73, 0.08);
    border-radius: 99px;
}
.pending-regions-grid::-webkit-scrollbar-thumb:hover,
.feed-items-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 159, 227, 0.3);
}

/* Individual region pills - detailed view */
.region-pending-pill {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 43, 73, 0.05);
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
    font-size: 0.75rem;
    transition: all 0.25s ease;
}

.region-pending-pill:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(1.5px);
    box-shadow: 0 4px 10px rgba(0, 43, 73, 0.04);
}

.region-pending-pill.region-lead-jp {
    border-left: 4.5px solid var(--color-jp);
}

.region-pending-pill.region-lead-fp {
    border-left: 4.5px solid var(--color-fp);
}

.region-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.region-title {
    font-family: var(--font-header);
    font-size: 0.85rem;
    font-weight: 750;
    color: var(--text-primary);
}

.region-pct-badge {
    font-family: var(--font-header);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.region-lead-jp .region-pct-badge {
    background: rgba(225, 29, 72, 0.1);
    color: var(--color-jp);
}

.region-lead-fp .region-pct-badge {
    background: rgba(249, 115, 22, 0.1);
    color: var(--color-fp);
}

.region-bottom-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--text-secondary);
    border-top: 1px dashed rgba(0, 43, 73, 0.04);
    padding-top: 0.3rem;
    margin-top: 0.2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.region-count-item strong {
    color: var(--text-primary);
    font-weight: 700;
}

.pending-empty-state {
    text-align: center;
    padding: 2.5rem;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.825rem;
}

/* Probability Meter Section */
.probability-meter-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 43, 73, 0.05);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.prob-labels-row, .prob-values-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prob-label {
    font-family: var(--font-header);
    font-size: 0.725rem;
    font-weight: 700;
}

.prob-label.jp, .prob-val.jp {
    color: var(--color-jp);
}

.prob-label.fp, .prob-val.fp {
    color: var(--color-fp);
}

.prob-bar-track {
    height: 14px;
    background: rgba(0, 43, 73, 0.05);
    border-radius: 99px;
    overflow: hidden;
    display: flex;
    margin: 0.45rem 0;
    border: 1px solid rgba(0, 43, 73, 0.06);
}

.prob-bar-fill {
    height: 100%;
    transition: width 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

.prob-bar-fill.jp {
    background: linear-gradient(90deg, #b91c1c, var(--color-jp));
    border-radius: 99px 0 0 99px;
}

.prob-bar-fill.fp {
    background: linear-gradient(-90deg, #ea580c, var(--color-fp));
    border-radius: 0 99px 99px 0;
}

.prob-val {
    font-family: var(--font-header);
    font-size: 1rem;
    font-weight: 850;
}

/* Scenarios list */
.scenarios-container {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.scenario-item {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(0, 43, 73, 0.04);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    transition: all 0.2s ease;
}

.scenario-item:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 43, 73, 0.03);
}

.scenario-item.border-jp {
    border-left: 4px solid var(--color-jp);
}

.scenario-item.border-fp {
    border-left: 4px solid var(--color-fp);
}

.scenario-item.border-tie {
    border-left: 4px solid var(--text-muted);
}

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

.scenario-title {
    font-family: var(--font-header);
    font-size: 0.725rem;
    font-weight: 750;
}

.scenario-title.jp { color: var(--color-jp); }
.scenario-title.fp { color: var(--color-fp); }
.scenario-title.tie { color: var(--text-secondary); }

.scenario-probability {
    font-family: var(--font-header);
    font-size: 0.725rem;
    font-weight: 800;
}

.scenario-text {
    font-size: 0.68rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

/* Responsive Styles for Timeline and Pending Cards */
@media (max-width: 768px) {
    .timeline-scrubber-card {
        padding: 0.65rem 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .timeline-header {
        gap: 0.5rem;
    }
    
    .timeline-timestamp {
        font-size: 0.75rem;
        padding: 0.15rem 0.5rem;
    }
    
    .btn-live-resume {
        padding: 0.25rem 0.65rem;
        font-size: 0.68rem;
    }
    
    .timeline-ticks {
        font-size: 0.6rem;
    }

    .actas-pendientes-card {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .actas-pendientes-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }
    
    .actas-pendientes-summary {
        width: 100%;
        justify-content: space-between;
    }
    
    .summary-pill {
        flex: 1;
        min-width: unset;
        padding: 0.2rem 0.45rem;
    }
    
    .summary-value {
        font-size: 0.8rem;
    }
    
    .pending-regions-grid {
        grid-template-columns: 1fr;
        max-height: 150px;
    }
}

/* Foco Crítico (Consulados y JEEs locales) */
.foco-critico-section {
    margin-top: 1.25rem;
    border-top: 1px dashed rgba(0, 43, 73, 0.08);
    padding-top: 1rem;
}

.foco-critico-title {
    font-family: var(--font-header);
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.65rem;
}

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

.foco-critico-item {
    background: rgba(0, 43, 73, 0.02);
    border: 1px solid rgba(0, 43, 73, 0.05);
    border-radius: 6px;
    padding: 0.35rem 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.7rem;
    transition: all 0.2s;
}

.foco-critico-item:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 159, 227, 0.15);
}

.foco-critico-item.lead-jp {
    border-left: 3.5px solid var(--color-jp);
}

.foco-critico-item.lead-fp {
    border-left: 3.5px solid var(--color-fp);
}

.foco-name {
    font-weight: 700;
    color: var(--text-primary);
}

.foco-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.foco-count {
    color: var(--text-muted);
}

.foco-count strong {
    color: var(--text-secondary);
}

.foco-lead {
    font-family: var(--font-header);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.05rem 0.25rem;
    border-radius: 3px;
}

.lead-jp .foco-lead {
    background: rgba(225, 29, 72, 0.08);
    color: var(--color-jp);
}

.lead-fp .foco-lead {
    background: rgba(249, 115, 22, 0.08);
    color: var(--color-fp);
}

.foco-empty-state {
    text-align: center;
    padding: 1rem;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.725rem;
}





