* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(to bottom, #081120, #132238);
    color: white;
}

header {
    background: linear-gradient(135deg, #ff512f, #dd2476);
    padding: 50px 20px;
    text-align: center;
}

.header-overlay h1 {
    font-size: 48px;
    font-weight: bold;
}

.header-overlay p {
    margin-top: 10px;
    font-size: 18px;
}

.live-badge {
    margin-top: 15px;
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
}

.eci-status-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    padding: 20px;
    background: #020617;
}

.status-item {
    background: rgba(255,255,255,0.08);
    padding: 18px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
}

.status-item span {
    display: block;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.status-item strong {
    font-size: 24px;
    color: #ffd700;
}

.headline-strip {
    background: #ffd700;
    color: black;
    padding: 10px;
    font-weight: bold;
}

.top-bar,
.analytics-grid,
.highlight-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 25px;
}

.card,
.analytics-card,
.highlight-box,
.news-card,
.party-card {
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.card:hover,
.analytics-card:hover,
.highlight-box:hover,
.party-card:hover,
.news-card:hover {
    transform: translateY(-5px);
}

.gradient-blue {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
}

.gradient-red {
    background: linear-gradient(135deg, #cb2d3e, #ef473a);
}

.gradient-green {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.gradient-purple {
    background: linear-gradient(135deg, #654ea3, #eaafc8);
}

.card h2 {
    margin-bottom: 10px;
}

.card p {
    font-size: 42px;
    font-weight: bold;
}

.analytics-card {
    background: rgba(255,255,255,0.08);
    text-align: center;
}

.analytics-number {
    font-size: 40px;
    margin: 15px 0;
    font-weight: bold;
    color: #ffd700;
}

.section-header {
    padding: 20px;
}

.section-header h2 {
    font-size: 32px;
}

.section-header p {
    color: #cbd5e1;
    margin-top: 8px;
}

.party-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.party-card {
    background: linear-gradient(135deg, #141e30, #243b55);
    text-align: center;
}

.party-card h3 {
    font-size: 28px;
}

.party-card p {
    font-size: 42px;
    margin-top: 10px;
    color: #ffd700;
}

.highlight-box {
    text-align: center;
}

.winner-box {
    background: linear-gradient(135deg, #134e5e, #71b280);
}

.trend-box {
    background: linear-gradient(135deg, #42275a, #734b6d);
}

.turnout-box {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: black;
}

.seat-progress-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 25px;
}

.progress-card {
    background: rgba(255,255,255,0.08);
    padding: 25px;
    border-radius: 20px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
}

.gov-status {
    font-size: 28px;
    margin-top: 20px;
    color: #00ff95;
    font-weight: bold;
}

.search-box {
    padding: 20px;
}

.search-box input {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
}

.table-container {
    overflow-x: auto;
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    overflow: hidden;
}

th {
    background: #ff512f;
    padding: 18px;
    text-align: left;
}

tr:nth-child(even) {
    background: rgba(255,255,255,0.03);
}

tr:hover {
    background: rgba(255,255,255,0.08);
}

td {
    padding: 16px;
}

.won {
    color: #00ff95;
    font-weight: bold;
}

.leading-status {
    color: #ffd700;
    font-weight: bold;
}

.news-panel {
    padding: 25px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.news-card {
    background: rgba(255,255,255,0.08);
}

footer {
    text-align: center;
    padding: 30px;
    margin-top: 40px;
    background: #020617;
}

@media(max-width:768px){

    .header-overlay h1 {
        font-size: 30px;
    }

    .card p,
    .analytics-number,
    .party-card p {
        font-size: 30px;
    }
}

.votes-cell {
    font-weight: bold;
    color: #00d9ff;
    font-size: 15px;
}

.hero-election-panel {
    overflow: hidden;
}
.hero-election-panel222 {
    background: linear-gradient(135deg, #02142b, #000814);
    margin: 20px;
    border-radius: 30px;
    padding: 30px;
    border: 2px solid rgba(255,215,0,0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.hero-top-strip {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.update-badge,
.hero-live-badge {
    background: #ffb703;
    color: black;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: bold;
}

.hero-title-section {
    text-align: center;
    margin-bottom: 30px;
}

.hero-title-section h1 {
    color: #ffd60a;
    font-size: 42px;
    font-weight: bold;
}

.hero-title-section p {
    color: #ffd60a;
    letter-spacing: 4px;
    margin-top: 10px;
}

.hero-summary-boxes {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.summary-mini-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,215,0,0.3);
    padding: 15px 30px;
    border-radius: 14px;
    text-align: center;
}

.summary-mini-box strong {
    display: block;
    color: #ffd60a;
    font-size: 28px;
}

.party-war-room {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    align-items: stretch;
    margin-top: 20px;
}

.leader-card {
    background: linear-gradient(180deg,#11284a,#081120);
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    min-height: 380px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.leader-card h3 {
    margin-bottom: 15px;
    font-size: 28px;
}

.leader-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 20px;
    border: 3px solid #00e5ff;
    margin: 0 auto 20px;
    display: block;
}

.leader-stats {
    display: flex;
    justify-content: space-around;
    background: rgba(0,0,0,0.4);
    padding: 15px;
    border-radius: 12px;
}

.leader-stats span {
    display: block;
    font-size: 12px;
    color: #cbd5e1;
}

.leader-stats strong {
    font-size: 42px;
    color: #00ff95;
}

.party-progress-panel {
    background: rgba(255,255,255,0.04);
    border-radius: 20px;
    padding: 25px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.progress-party-row {
    margin-bottom: 25px;
}

.party-row-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
}

.mini-progress-bar {
    height: 18px;
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
}

.dmk-fill {
    background: linear-gradient(90deg,#2ec4b6,#06d6a0);
}

.admk-fill {
    background: linear-gradient(90deg,#3a86ff,#4cc9f0);
}

.tvk-fill {
    background: linear-gradient(90deg,#ff006e,#fb5607);
}

.top-result-banner {
    background: linear-gradient(135deg,#1a2a6c,#b21f1f,#fdbb2d);
    padding: 30px;
    margin: 20px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.banner-overlay {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.banner-results {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.banner-title {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
}

.banner-results {
    display: flex;
    gap: 20px;
}

.banner-party {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    width: 100px;
    transition: 0.3s;
}

.banner-party img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
}

.banner-party span {
    display: block;
    margin-top: 10px;
    font-size: 28px;
    font-weight: bold;
}

/* 🏆 Leading party highlight */
.leading-party {
    transform: scale(1.15);
    box-shadow: 0 0 20px gold;
    border: 2px solid gold;
}

/* ✨ animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.leading-party {
    animation: pulse 1.5s infinite;
}

.banner-party {
    width: 80px;
}

@media (max-width: 768px) {

    .banner-overlay {
        flex-direction: column;
        text-align: center;
    }

    .banner-title {
        font-size: 24px;
    }

    .leader-card img {
        width: 90px;
        height: 90px;
    }

    .leader-stats strong {
        font-size: 28px;
    }

    .hero-title-section h1 {
        font-size: 26px;
    }
}

.state-dashboard {
    padding: 20px;
}

.state-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.state-card {
    background: #ffffff;
    color: black;
    border-radius: 20px;
    padding: 20px;
}

.state-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.state-stats {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.state-badge {
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 12px;
}

.lead-badge {
    background: orange;
    color: white;
}

.won-badge {
    background: green;
    color: white;
}

.party-row {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    background: #f1f1f1;
    padding: 10px;
    border-radius: 10px;
}

.party-name {
    font-weight: bold;
}

.party-values {
    display: flex;
    gap: 10px;
}

.party-lead {
    color: orange;
}

.party-won {
    color: green;
}

.chart-section {
    padding: 20px;
}

.chart-section h2 {
    margin-bottom: 15px;
}

#voteChart {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 20px;
}





