/* ==========================================================================
   E-VOTING KONTINGEN JUMBARA XIV PMI KARAWANG - DESIGN SYSTEM
   ========================================================================== */

:root {
    --bg-dark: #0d1527;
    --bg-card: rgba(24, 37, 65, 0.88);
    --bg-card-solid: #16233b;
    --bg-input: rgba(13, 22, 40, 0.95);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #64748b;
    
    /* PMI Red & Wira Crimson */
    --wira-red: #e11d48;
    --wira-gradient: linear-gradient(135deg, #f43f5e, #e11d48, #9f1239);
    --wira-glow: rgba(225, 29, 72, 0.35);
    
    /* Madya Cyan / Royal Blue */
    --madya-blue: #0284c7;
    --madya-gradient: linear-gradient(135deg, #38bdf8, #0284c7, #1d4ed8);
    --madya-glow: rgba(2, 132, 199, 0.35);
    
    /* Voter & Admin Global Themes */
    --voter-cyan: #06b6d4;
    --voter-gradient: linear-gradient(135deg, #0284c7, #2563eb, #1d4ed8);
    --admin-gold: #f59e0b;
    --admin-gradient: linear-gradient(135deg, #f59e0b, #d97706, #b45309);

    --success: #10b981;
    --danger: #ef4444;
    
    --border-glass: rgba(255, 255, 255, 0.09);
    --border-voter: rgba(6, 182, 212, 0.35);
    --border-admin: rgba(245, 158, 11, 0.35);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --font-heading: 'Outfit', sans-serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* AMBIENT BACKGROUND GLOWS */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}

.glow-1 { top: -10%; left: 5%; width: 600px; height: 600px; background: radial-gradient(circle, #e11d48, transparent 70%); }
.glow-2 { top: 20%; right: 5%; width: 550px; height: 550px; background: radial-gradient(circle, #0284c7, transparent 70%); }
.glow-3 { bottom: 5%; left: 30%; width: 600px; height: 600px; background: radial-gradient(circle, #f59e0b, transparent 70%); opacity: 0.25; }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: #fff;
    line-height: 1.25;
}

.gradient-text {
    background: linear-gradient(135deg, #fb7185 0%, #38bdf8 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-cyan { color: var(--voter-cyan); }
.text-gold { color: var(--admin-gold); }
.text-wira { color: #fb7185; }
.text-madya { color: #38bdf8; }

/* BADGES FOR WIRA & MADYA */
.badge-level {
    display: inline-block;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.badge-wira {
    background: rgba(225, 29, 72, 0.2);
    border: 1px solid rgba(225, 29, 72, 0.45);
    color: #fb7185;
}

.badge-madya {
    background: rgba(2, 132, 199, 0.2);
    border: 1px solid rgba(2, 132, 199, 0.45);
    color: #38bdf8;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 10, 20, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.85rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    text-decoration: none;
    cursor: pointer;
}

.logo-badge-official {
    width: 46px;
    height: 46px;
    background: #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.35);
}

.header-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
}

.brand-subtitle {
    font-size: 0.7rem;
    font-weight: 700;
    color: #fcd34d;
    letter-spacing: 1.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.btn-voter-nav {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #38bdf8;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-voter-nav:hover {
    background: rgba(6, 182, 212, 0.25);
    color: #fff;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.btn-admin-nav {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-admin-nav:hover {
    background: rgba(245, 158, 11, 0.25);
    color: #fff;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   COVER SECTION
   ========================================================================== */
.hero-cover-section {
    padding: 2.5rem 2rem 3rem;
    position: relative;
    z-index: 1;
}

.cover-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.25rem;
}

.cover-hero-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    width: 100%;
    max-width: 1050px;
}

.cover-logo-wrapper {
    flex-shrink: 0;
}

.logo-glow-card {
    width: 140px;
    height: 180px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(225, 29, 72, 0.35);
    border: 3px solid rgba(255, 255, 255, 0.2);
    animation: floatEmblem 4s ease-in-out infinite;
}

@keyframes floatEmblem {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.cover-official-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cover-header-text {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.event-pill {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(225, 29, 72, 0.15);
    border: 1px solid rgba(225, 29, 72, 0.4);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 800;
    color: #fb7185;
    letter-spacing: 1px;
    width: fit-content;
}

.cover-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
}

.cover-sub-title {
    font-size: 1.05rem;
    color: #fcd34d;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.official-banner-frame {
    width: 100%;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(225, 29, 72, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.12);
}

.official-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.event-meta-card {
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.meta-item { display: flex; align-items: center; gap: 0.85rem; }
.meta-icon { font-size: 1.6rem; }
.meta-label { display: block; font-size: 0.76rem; color: var(--text-muted); font-weight: 600; }
.meta-val { font-size: 0.92rem; color: #fff; font-weight: 700; }
.meta-divider { width: 1px; height: 40px; background: var(--border-glass); }

.countdown-meta {
    background: rgba(10, 16, 30, 0.7);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.cover-cd-digits {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--voter-cyan);
    font-size: 0.95rem;
}

/* CATEGORY TEASER (MADYA VS WIRA) */
.category-teaser-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
}

.cat-teaser-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid var(--border-glass);
    transition: var(--transition);
}

.cat-madya { border-left: 5px solid #0284c7; }
.cat-wira { border-left: 5px solid #e11d48; }

.cat-icon { font-size: 2.2rem; }
.cat-info h3 { font-size: 1.15rem; font-weight: 800; margin: 0.3rem 0; }
.cat-info p { font-size: 0.85rem; color: var(--text-muted); }

/* ==========================================================================
   DUAL PORTALS SECTION
   ========================================================================== */
.portals-section {
    padding: 2rem 2rem 4.5rem;
    position: relative;
    z-index: 1;
}

.portal-header-note { text-align: center; margin-bottom: 2.5rem; }
.portal-select-title { font-size: 1.85rem; font-weight: 800; letter-spacing: 1px; }
.portal-select-subtitle { font-size: 0.95rem; color: var(--text-muted); margin-top: 0.35rem; }

.portals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 1180px;
    margin: 0 auto;
}

.portal-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    transition: var(--transition);
}

.voter-portal-card {
    border: 2px solid var(--border-voter);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.12);
}

.admin-portal-card {
    border: 2px solid var(--border-admin);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.12);
}

.portal-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    width: fit-content;
}

.voter-tag { background: rgba(6, 182, 212, 0.15); border: 1px solid rgba(6, 182, 212, 0.4); color: #38bdf8; }
.admin-tag { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.4); color: #fbbf24; }

.portal-intro { display: flex; flex-direction: column; gap: 0.4rem; }
.portal-icon-wrap { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 0.5rem; }
.icon-cyan { background: rgba(6, 182, 212, 0.15); border: 1px solid rgba(6, 182, 212, 0.3); }
.icon-gold { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); }

.portal-title { font-size: 1.55rem; font-weight: 800; }
.portal-desc { font-size: 0.88rem; color: var(--text-muted); }

.portal-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}

.pf-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: #cbd5e1; }
.pf-icon { font-weight: 800; color: var(--success); }

.portal-form { display: flex; flex-direction: column; gap: 1.15rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.82rem; font-weight: 600; color: #cbd5e1; }

.input-group { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 1rem; font-size: 1rem; pointer-events: none; }

.form-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    transition: var(--transition);
}

.form-input:focus { outline: none; background: rgba(15, 23, 42, 0.98); }
.voter-input:focus { border-color: var(--voter-cyan); box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2); }
.admin-input:focus { border-color: var(--admin-gold); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); }

.btn-toggle-pwd { position: absolute; right: 0.85rem; background: transparent; border: none; cursor: pointer; font-size: 1rem; }
.form-select { appearance: none; cursor: pointer; }
.select-wrapper::after { content: '▼'; font-size: 0.65rem; position: absolute; right: 1.25rem; color: var(--text-muted); pointer-events: none; }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-block { width: 100%; }
.btn-sm { padding: 0.45rem 0.95rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

.btn-voter-submit { background: var(--voter-gradient); color: #fff; box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4); }
.btn-voter-submit:hover { box-shadow: 0 10px 25px rgba(2, 132, 199, 0.6); transform: translateY(-2px); }

.btn-admin-submit { background: var(--admin-gradient); color: #fff; box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4); }
.btn-admin-submit:hover { box-shadow: 0 10px 25px rgba(217, 119, 6, 0.6); transform: translateY(-2px); }

.btn-secondary { background: rgba(255, 255, 255, 0.08); color: #cbd5e1; border: 1px solid rgba(255, 255, 255, 0.12); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

.btn-outline-light { background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); }

.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.demo-fill-wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.btn-fill-demo { padding: 0.4rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.76rem; font-weight: 600; cursor: pointer; border: 1px dashed; transition: var(--transition); }
.voter-demo-btn { border-color: rgba(6, 182, 212, 0.25); background: rgba(6, 182, 212, 0.08); color: #38bdf8; }
.voter-demo-btn:hover { background: rgba(6, 182, 212, 0.18); }
.admin-demo-btn { border-color: rgba(245, 158, 11, 0.25); background: rgba(245, 158, 11, 0.08); color: #fcd34d; }
.admin-demo-btn:hover { background: rgba(245, 158, 11, 0.18); }
.saksi-demo-btn { border-color: rgba(168, 85, 247, 0.25); background: rgba(168, 85, 247, 0.08); color: #d8b4fe; }

/* ==========================================================================
   VOTER & ADMIN DASHBOARD HEADER BAR
   ========================================================================== */
.dashboard-header-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
}

.voter-bar { background: rgba(7, 12, 24, 0.95); border-bottom-color: var(--border-voter); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); }
.admin-bar { background: rgba(14, 10, 5, 0.95); border-bottom-color: var(--border-admin); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); }

.dash-user-info { display: flex; align-items: center; gap: 1rem; }
.dash-logo-mini { width: 48px; height: 48px; background: #fff; border-radius: var(--radius-md); padding: 4px; object-fit: contain; }
.dash-title { font-size: 1.35rem; font-weight: 800; }
.dash-subtitle { font-size: 0.85rem; color: var(--text-muted); }

.badge-active { background: rgba(16, 185, 129, 0.2); color: #34d399; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; }
.badge-admin-role { background: rgba(245, 158, 11, 0.2); color: #fbbf24; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 800; }
.admin-top-actions { display: flex; gap: 0.75rem; }
.dashboard-container { max-width: 1200px; margin: 2.5rem auto; padding: 0 2rem; }

/* SCHOOL LEVEL SWITCHER */
.school-level-switcher-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.switcher-intro h2 { font-size: 1.55rem; color: #fff; margin-bottom: 0.35rem; }
.switcher-intro p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }

.level-tabs-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 780px;
    margin: 0 auto;
}

.level-tab-btn {
    background: rgba(10, 16, 30, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.level-tab-btn .lt-icon { font-size: 2rem; }
.level-tab-btn .lt-text strong { display: block; font-size: 1.05rem; font-family: var(--font-heading); }
.level-tab-btn .lt-text span { font-size: 0.78rem; color: var(--text-muted); }
.level-tab-btn .lt-count { margin-left: auto; font-size: 0.74rem; padding: 2px 8px; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }

/* ACTIVE LEVEL TAB STYLES */
.tab-btn-wira.active {
    background: rgba(225, 29, 72, 0.18);
    border-color: #e11d48;
    box-shadow: 0 0 25px rgba(225, 29, 72, 0.35);
}
.tab-btn-wira.active strong { color: #fb7185; }
.tab-btn-wira.active .lt-count { background: #e11d48; color: #fff; font-weight: 700; }

.tab-btn-madya.active {
    background: rgba(2, 132, 199, 0.18);
    border-color: #0284c7;
    box-shadow: 0 0 25px rgba(2, 132, 199, 0.35);
}
.tab-btn-madya.active strong { color: #38bdf8; }
.tab-btn-madya.active .lt-count { background: #0284c7; color: #fff; font-weight: 700; }

/* NEUTRALITY RULE BOX */
.neutrality-rule-box {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.n-alert-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.n-alert-text strong {
    color: #fbbf24;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.2rem;
}

.n-alert-text p {
    font-size: 0.88rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.45;
}

/* CATEGORY HEADER BANNER */
.category-header-banner {
    border-radius: var(--radius-md);
    padding: 1.25rem 1.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid;
}

.wira-banner { background: rgba(225, 29, 72, 0.1); border-color: rgba(225, 29, 72, 0.3); }
.madya-banner { background: rgba(2, 132, 199, 0.1); border-color: rgba(2, 132, 199, 0.3); }

.cat-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}
.pill-wira { background: #e11d48; color: #fff; }
.pill-madya { background: #0284c7; color: #fff; }

.category-header-banner h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.25rem; }
.category-header-banner p { font-size: 0.85rem; color: var(--text-muted); }

/* SCHOOL BALLOT CARDS */
.candidates-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ballot-card {
    background: var(--bg-card);
    border: 2px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.ballot-card:hover {
    transform: translateY(-5px);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.wira-card:hover { border-color: rgba(225, 29, 72, 0.5); }
.madya-card:hover { border-color: rgba(2, 132, 199, 0.5); }

.ballot-card.selected.wira-card {
    border-color: #e11d48;
    background: rgba(225, 29, 72, 0.15);
    box-shadow: 0 0 30px rgba(225, 29, 72, 0.4);
}

.ballot-card.selected.madya-card {
    border-color: #0284c7;
    background: rgba(2, 132, 199, 0.15);
    box-shadow: 0 0 30px rgba(2, 132, 199, 0.4);
}

.ballot-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ballot-no {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
}

.candidate-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.25rem; }
.candidate-origin { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.75rem; }

.candidate-achieve {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}
.candidate-achieve span { font-size: 0.76rem; color: #cbd5e1; font-weight: 600; }

.candidate-quote { font-size: 0.78rem; font-style: italic; color: #94a3b8; line-height: 1.4; border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 0.5rem; }

.ballot-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 0.75rem;
}

.select-hint { font-size: 0.76rem; color: var(--text-muted); }

.ballot-check-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: transparent;
    transition: var(--transition);
}

.ballot-card.selected .circle-wira { background: #e11d48; border-color: #e11d48; color: #fff; font-weight: 900; }
.ballot-card.selected .circle-madya { background: #0284c7; border-color: #0284c7; color: #fff; font-weight: 900; }

/* ==========================================================================
   FORMULIR PENILAIAN KONTINGEN TERFAVORIT (1 SEKOLAH 1 PENILAI)
   ========================================================================== */
.voter-flow-panel {
    max-width: 960px;
    margin: 0 auto;
}

.fade-in-anim {
    animation: fadeInStep 0.35s ease-out forwards;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* STEP 1 HEADER BANNER */
.step-header-banner {
    background: linear-gradient(135deg, rgba(14, 25, 48, 0.95), rgba(7, 12, 24, 0.98));
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: var(--radius-lg);
    padding: 2rem 2.25rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.step-header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--voter-gradient);
}

.step-pill {
    margin-bottom: 0.75rem;
}

.step-pill span {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--voter-cyan);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-full);
    display: inline-block;
}

.step-main-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.4rem;
}

.step-sub-title {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.step-sub-title strong {
    color: #38bdf8;
}

/* STEP 2: CHOSEN SCHOOL SPOTLIGHT BAR */
.chosen-school-bar {
    background: linear-gradient(135deg, rgba(14, 25, 48, 0.95), rgba(7, 12, 24, 0.98));
    border: 2px solid var(--voter-cyan);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(6, 182, 212, 0.25);
    position: sticky;
    top: 80px;
    z-index: 50;
    backdrop-filter: blur(15px);
}

.chosen-school-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cs-label {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.cs-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cs-title-row h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 900;
    margin: 0;
}

/* FORM LAYOUT */
.evaluation-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* HEADER CARD */
.eval-header-card {
    background: linear-gradient(135deg, rgba(14, 25, 48, 0.95), rgba(7, 12, 24, 0.98));
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    text-align: center;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(6, 182, 212, 0.1);
    position: relative;
    overflow: hidden;
}

.eval-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--voter-gradient);
}

.eval-badge-wrap {
    margin-bottom: 0.85rem;
}

.badge-eval-protocol {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(6, 182, 212, 0.15);
    color: var(--voter-cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.eval-header-card h2 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.35rem;
    letter-spacing: -0.5px;
}

.eval-subtext {
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
}

.eval-rule-note {
    margin-top: 1.25rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    display: inline-block;
    color: #fcd34d;
    font-size: 0.85rem;
}

/* IDENTITY SUMMARY CARD (AUTO METADATA) */
.eval-id-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.eval-id-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.eid-icon {
    font-size: 1.6rem;
}

.eid-lbl {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

.eid-val {
    font-size: 1.05rem;
    font-weight: 800;
}

.eval-id-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* SECTION CARDS */
.eval-section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.eval-section-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

.eval-section-title {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sec-number {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: var(--voter-gradient);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}

.eval-section-title h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.25rem;
}

.eval-section-title p {
    font-size: 0.86rem;
    color: var(--text-muted);
}

.eval-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.readonly-input {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #38bdf8 !important;
    font-weight: 600;
    cursor: default;
}

.form-textarea {
    resize: vertical;
    min-height: 85px;
    line-height: 1.6;
}

/* CRITERIA LIST & SLIDERS */
.criteria-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.criteria-card {
    background: rgba(10, 16, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.5rem;
    transition: var(--transition);
}

.criteria-card:hover {
    background: rgba(10, 16, 30, 0.95);
    border-color: rgba(6, 182, 212, 0.25);
}

.criteria-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.official-sec-tag {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--voter-cyan);
    letter-spacing: 1px;
    margin-bottom: 0.35rem;
    display: inline-block;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    padding: 2px 8px;
    border-radius: 4px;
}

.bobot-total-pill-bar {
    background: rgba(10, 16, 30, 0.8);
    border: 1px dashed rgba(6, 182, 212, 0.3);
    border-radius: var(--radius-md);
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.btp-item strong {
    color: #38bdf8;
}

.btp-divider {
    color: var(--text-muted);
}

.crit-title-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.crit-num-badge {
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 900;
    color: #38bdf8;
    font-size: 0.95rem;
}

.crit-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.badge-bobot {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    border: 1px solid;
}

.bobot-20 {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
    color: #f87171;
}

.bobot-15 {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

.bobot-10 {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.35);
    color: #38bdf8;
}

.crit-title-group h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.crit-desc {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: block;
}

.crit-desc strong {
    color: #94a3b8;
}

.crit-score-badge {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--voter-cyan);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}

.crit-score-badge span {
    font-size: 1.4rem;
    color: #fff;
    line-height: 1;
}

.weighted-sub {
    font-size: 0.72rem;
    color: #38bdf8;
    font-weight: 700;
    margin-top: 3px;
}

.range-slider-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.crit-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
    transition: background 0.2s;
    cursor: pointer;
}

.crit-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--voter-cyan);
    cursor: pointer;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.8);
    transition: transform 0.15s ease;
}

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

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* SCORE SUMMARY BAR */
.score-summary-bar {
    background: linear-gradient(135deg, rgba(14, 25, 48, 0.95), rgba(7, 12, 24, 0.98));
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: var(--radius-md);
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 1.75rem;
}

.score-sum-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.ss-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ss-val {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.ss-val-highlight {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: #38bdf8;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.score-sum-divider {
    width: 1px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
}

/* INTEGRITY CHECKBOX */
.integrity-checkbox-wrap {
    margin-top: 1.25rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--success);
    cursor: pointer;
    margin-top: 2px;
}

.integrity-text {
    font-size: 0.86rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.integrity-text strong {
    color: #34d399;
}

.eval-submit-container {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.btn-voter-submit {
    min-width: 360px;
}

/* CANDIDATES SHOWCASE & BALLOT CARDS */
.candidates-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.ballot-card {
    background: rgba(10, 16, 30, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.ballot-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.ballot-card.selected {
    border-color: var(--voter-cyan);
    background: rgba(6, 182, 212, 0.12);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.35);
}

.ballot-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
}

.ballot-no {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 900;
}

.candidate-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.3rem;
}

.candidate-origin {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.candidate-achieve {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.85rem;
}

.candidate-achieve span {
    font-size: 0.76rem;
    color: #cbd5e1;
}

.candidate-quote {
    font-size: 0.78rem;
    font-style: italic;
    color: #94a3b8;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 0.5rem;
    margin-bottom: 1rem;
}

.ballot-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.select-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.ballot-check-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: transparent;
    transition: var(--transition);
}

.ballot-card.selected .ballot-check-circle {
    background: var(--voter-cyan);
    border-color: var(--voter-cyan);
    color: #fff;
    font-weight: 800;
}

.ballot-card.selected .select-hint {
    color: var(--voter-cyan);
    font-weight: 700;
}

.neutrality-rule-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.n-alert-icon { font-size: 1.5rem; }
.n-alert-text strong { color: #fbbf24; font-size: 0.92rem; display: block; margin-bottom: 0.2rem; }
.n-alert-text p { font-size: 0.85rem; color: #cbd5e1; margin: 0; }

.category-header-banner {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.04);
}
.category-header-banner h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 0.4rem;
}

.cat-pill {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}
.pill-wira { background: rgba(225, 29, 72, 0.2); color: #fb7185; }
.pill-madya { background: rgba(2, 132, 199, 0.2); color: #38bdf8; }

/* ==========================================================================
   REAL-TIME STATS - DIAGRAM LINGKARAN (PIE / DONUT CHART) STYLES
   ========================================================================== */
.stats-header-center {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 2.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.live-pulse-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 999px;
    color: #34d399;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: liveBlink 1.5s infinite;
}

@keyframes liveBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.85); }
}

.stats-title-main {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.stats-sub-main {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.chart-filter-tabs {
    display: inline-flex;
    background: rgba(10, 16, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.35rem;
    border-radius: var(--radius-md);
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.chart-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.chart-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.chart-tab-btn.active {
    background: linear-gradient(135deg, var(--primary), #e11d48);
    color: #fff;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
}

/* PIE CHART GLASS PANEL */
.pie-chart-glass-panel {
    background: rgba(13, 21, 38, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.pie-chart-glass-panel::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.15), transparent 70%);
    pointer-events: none;
}

.pie-chart-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(10, 15, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
}

.pie-chart-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pie-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s ease;
}

.pie-slice {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s, stroke-width 0.25s;
    cursor: pointer;
    transform-origin: 180px 180px;
}

.pie-slice:hover,
.pie-slice.active-slice {
    transform: scale(1.045);
    stroke: #ffffff;
    stroke-width: 2.5px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
}

.pie-pct-label {
    fill: #ffffff;
    font-family: var(--font-heading), sans-serif;
    font-weight: 900;
    pointer-events: none;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.9));
    user-select: none;
}

.donut-center-hole {
    position: absolute;
    width: 170px;
    height: 170px;
    background: rgba(10, 16, 30, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.8), 0 0 25px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 2;
    transition: var(--transition);
}

.dch-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.dch-val {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 900;
    color: #38bdf8;
    line-height: 1.1;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.dch-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 3px;
}

.pie-chart-caption {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.78rem;
    color: #94a3b8;
}

/* RIGHT: DYNAMIC RANKING & LEGEND LIST */
.pie-chart-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
}

.legend-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legend-header-bar h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.pie-legend-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: 290px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.pie-legend-list::-webkit-scrollbar {
    width: 6px;
}
.pie-legend-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.pie-legend-row {
    background: rgba(10, 16, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.pie-legend-row:hover,
.pie-legend-row.active-row {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateX(4px);
}

.legend-rank-badge {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    flex-shrink: 0;
}

.rank-1 .legend-rank-badge { background: #f59e0b; color: #1e1b4b; box-shadow: 0 0 10px rgba(245, 158, 11, 0.5); }
.rank-2 .legend-rank-badge { background: #94a3b8; color: #0f172a; }
.rank-3 .legend-rank-badge { background: #b45309; color: #fff; }

.legend-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
}

.legend-info-col {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.legend-school-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.legend-school-sub {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: #94a3b8;
}

.legend-progress-wrap,
.legend-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 3px;
}

.legend-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.legend-stat-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.legend-pct-pill {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    color: #38bdf8;
}

.legend-vote-count {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* MINI STATS SUMMARY GRID */
.pie-mini-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pms-box {
    background: rgba(10, 16, 30, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pms-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

.pms-val {
    font-size: 0.88rem;
    font-weight: 800;
}

/* ==========================================================================
   VOTER 2-STEP FLOW & EVALUATOR SUMMARY STYLES
   ========================================================================== */
.voter-step-card {
    background: rgba(13, 21, 38, 0.75);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.step-header-banner {
    margin-bottom: 1.75rem;
}

.step-pill {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: var(--radius-full);
    color: var(--voter-cyan);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.step-main-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.35rem;
}

.step-sub-title {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* CHOSEN SCHOOL STICKY BAR */
.chosen-school-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(13, 21, 38, 0.95));
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.chosen-school-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.chosen-tag {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--voter-cyan);
    letter-spacing: 1px;
}

.chosen-school-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
}

.chosen-school-meta {
    font-size: 0.82rem;
    color: #cbd5e1;
}

.btn-back-step {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-back-step:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #fff;
}

/* EVALUATOR ID SUMMARY CARD (AUTOMATIC) */
.eval-id-summary-card {
    background: rgba(10, 16, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.eval-id-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.eval-id-lbl {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eval-id-val {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
}

.eval-id-divider {
    width: 1px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
}

/* MODAL & TOAST */
.modal-overlay { position: fixed; inset: 0; background: rgba(3, 7, 18, 0.88); backdrop-filter: blur(10px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.modal-card { background: var(--bg-card-solid); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); width: 100%; max-width: 540px; box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8); overflow: hidden; }
.success-view { text-align: center; padding: 2rem; }
.receipt-logo-stamp { width: 75px; height: 95px; object-fit: contain; margin: 0 auto 1rem; background: #fff; padding: 6px; border-radius: var(--radius-md); }
.success-title { font-size: 1.45rem; font-weight: 800; margin-bottom: 0.35rem; }
.success-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.receipt-box { background: rgba(10, 16, 30, 0.9); border: 1px solid var(--border-glass); border-radius: var(--radius-md); padding: 1.25rem; text-align: left; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; font-size: 0.85rem; }
.receipt-row { display: flex; justify-content: space-between; align-items: center; padding-bottom: 0.4rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.receipt-row:last-child { border-bottom: none; }
.receipt-row span { color: var(--text-muted); }
.hash-code { background: rgba(6, 182, 212, 0.15); color: var(--voter-cyan); padding: 2px 6px; border-radius: 4px; font-size: 0.78rem; }

.toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 1100; display: flex; flex-direction: column; gap: 0.75rem; }
.toast { background: #0d1527; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-md); padding: 0.9rem 1.25rem; display: flex; align-items: center; gap: 0.75rem; color: #fff; font-size: 0.88rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); }
.toast.toast-success { border-left: 4px solid var(--success); }
.toast.toast-danger { border-left: 4px solid var(--danger); }
.toast.toast-info { border-left: 4px solid var(--voter-cyan); }

/* ==========================================================================
   ADMIN / PANITIA DASHBOARD STYLING
   ========================================================================== */
.admin-bar {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 2px solid rgba(245, 158, 11, 0.4);
}

.badge-admin-role {
    background: rgba(245, 158, 11, 0.2);
    color: #fde047;
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.admin-top-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ADMIN SUBTAB NAVIGATION (PREMIUM SEGMENTED TABS) */
.admin-tab-nav {
    display: flex;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    padding: 0.5rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0 2rem 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.adm-tab {
    padding: 0.7rem 1.25rem;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.adm-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.adm-tab.active {
    color: #0f172a;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    border-color: #fde047;
}

.admin-subtab-content {
    animation: fadeIn 0.3s ease forwards;
}

/* TALLY CARDS & GRID */
.tally-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.tally-section-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}

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

.tally-card {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.tally-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.tally-card.border-wira {
    border-top: 4px solid #f43f5e;
}

.tally-card.border-wira:hover {
    border-color: rgba(244, 63, 94, 0.4);
    border-top-color: #f43f5e;
}

.tally-card.border-madya {
    border-top: 4px solid #0284c7;
}

.tally-card.border-madya:hover {
    border-color: rgba(2, 132, 199, 0.4);
    border-top-color: #0284c7;
}

.tally-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tally-num {
    font-size: 1.85rem;
    font-weight: 900;
    font-family: var(--font-heading);
    min-width: 44px;
    line-height: 1;
}

.tally-header h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.25rem 0;
}

.tally-region {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.tally-body {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 0.25rem;
}

.tally-votes {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}

.tally-pct {
    font-size: 1.45rem;
    font-weight: 900;
    color: #38bdf8;
    font-family: var(--font-heading);
}

.progress-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fill-wira {
    background: linear-gradient(90deg, #e11d48, #fb7185);
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.6);
}

.fill-madya {
    background: linear-gradient(90deg, #0284c7, #38bdf8);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

/* DPT & AUDIT TABLES & CARDS */
.admin-table-card,
.dpt-card,
.audit-card {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.table-actions-bar,
.dpt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.table-actions-bar h3,
.dpt-card-header h3,
.audit-card h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}

.table-filters-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.table-select,
.table-search {
    background: rgba(10, 16, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.table-select:focus,
.table-search:focus {
    border-color: #38bdf8;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
    scrollbar-width: thin;
}

.access-table,
.dpt-table,
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.88rem;
}

.access-table th,
.dpt-table th,
.data-table th {
    background: rgba(30, 41, 59, 0.8);
    color: #cbd5e1;
    font-weight: 700;
    text-align: left;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.access-table td,
.dpt-table td,
.data-table td {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    vertical-align: middle;
}

.access-table tr:hover td,
.dpt-table tr:hover td,
.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.badge-status-waiting {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

.badge-status-done {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

.badge-active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* AUDIT STREAM LOGS */
.audit-stream {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.audit-item {
    background: rgba(10, 16, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid #38bdf8;
    border-radius: 10px;
    padding: 0.85rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.audit-time {
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.8rem;
    font-family: monospace;
}

.audit-type {
    color: #38bdf8;
    font-weight: 800;
    font-size: 0.8rem;
    font-family: monospace;
}

.audit-text {
    color: #e2e8f0;
    flex-grow: 1;
}

.audit-text code {
    background: rgba(0, 0, 0, 0.5);
    color: #fde047;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.82rem;
}

/* ADMIN STATS SUMMARY PILLS */
.admin-stats-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.stat-mini-pill {
    background: rgba(10, 16, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-mini-pill:hover {
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
}

.stat-pill-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-pill-val {
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
    font-family: var(--font-heading);
}

.table-actions-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-xs {
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #34d399;
    color: #fff;
}

.btn-success:hover {
    background: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #f87171;
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: #fbbf24;
    color: #0f172a;
    font-weight: 800;
}

.btn-warning:hover {
    background: #d97706;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* MODALS FOR ADMIN CRUD */
.modal-card-wide {
    max-width: 680px;
    width: 100%;
}

.modal-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: rgba(30, 41, 59, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-close-modal {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-close-modal:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: #ef4444;
}

.modal-body-pad {
    padding: 1.5rem;
    max-height: 80vh;
    overflow-y: auto;
}

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

.modal-actions-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* PRINTABLE VOTER CARDS */
.voter-cards-print-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-height: 480px;
    overflow-y: auto;
    padding: 0.5rem;
}

.print-voter-card {
    background: rgba(10, 16, 30, 0.95);
    border: 2px dashed rgba(56, 189, 248, 0.4);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    color: #fff;
    font-size: 0.82rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.print-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.4rem;
}

.print-card-school {
    font-size: 0.95rem;
    font-weight: 800;
    color: #38bdf8;
    margin: 0;
}

.print-card-credentials {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* EXCEL DROPZONE STYLING */
.excel-dropzone {
    background: rgba(15, 23, 42, 0.7);
    border: 2px dashed rgba(56, 189, 248, 0.4);
    border-radius: 14px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.excel-dropzone:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: #38bdf8;
    transform: scale(1.01);
}

.excel-dropzone.dragover {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
}

.dropzone-icon {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
    animation: bounceSlow 2s infinite ease-in-out;
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.dropzone-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.dropzone-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .cover-hero-header { flex-direction: column; text-align: center; gap: 1.5rem; }
    .cover-header-text { align-items: center; }
    .event-meta-card { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .meta-divider { display: none; }
    .category-teaser-grid { grid-template-columns: 1fr; }
    .level-tabs-container { grid-template-columns: 1fr; }
    .portals-grid { grid-template-columns: 1fr; }
    .cover-main-title { font-size: 2.2rem; }
    .candidates-showcase { grid-template-columns: 1fr; }
    .tally-grid { grid-template-columns: 1fr; }
    .pie-chart-glass-panel { grid-template-columns: 1fr; }
    .pie-mini-stats-grid { grid-template-columns: 1fr; }
    .table-actions-bar { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .nav-menu { display: none; }
    .eval-grid-2 { grid-template-columns: 1fr; }
    .btn-voter-submit { min-width: 100%; }
    .chosen-school-bar { flex-direction: column-reverse; align-items: flex-start; gap: 1rem; }
    .chosen-school-info { text-align: left; align-items: flex-start; }
    .eval-id-summary-card { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .eval-id-divider { display: none; }
    .admin-tab-nav { flex-direction: column; }
    .admin-top-actions { width: 100%; justify-content: flex-start; }
    .form-grid-2 { grid-template-columns: 1fr; }
}

@media print {
    body * {
        visibility: hidden;
    }
    #modalPrintVoterCards,
    #modalPrintVoterCards *,
    #modalBeritaAcara,
    #modalBeritaAcara #beritaAcaraPaper,
    #modalBeritaAcara #beritaAcaraPaper * {
        visibility: visible;
    }
    #modalPrintVoterCards,
    #modalBeritaAcara {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: #fff !important;
        color: #000 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .modal-card {
        max-width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        background: #fff !important;
    }
    .modal-body-pad {
        background: #fff !important;
        padding: 0 !important;
    }
    .berita-acara-paper {
        box-shadow: none !important;
        padding: 0 !important;
        color: #000 !important;
    }
    .print-voter-card {
        background: #fff !important;
        color: #000 !important;
        border: 2px solid #000 !important;
        page-break-inside: avoid;
    }
    .print-card-school {
        color: #000 !important;
    }
    .modal-header-bar,
    .modal-actions-footer,
    .btn-close-modal {
        display: none !important;
    }
}

/* ==========================================================================
   TURNOUT PROGRESS BANNER & PARTICIPATION STATS
   ========================================================================== */
.turnout-progress-banner {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(9, 14, 28, 0.98));
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.turnout-progress-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #38bdf8, #f59e0b);
}

.turnout-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.turnout-title-block {
    flex: 1;
    min-width: 260px;
}

.turnout-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.turnout-heading {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.turnout-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.turnout-pct-badge {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

.turnout-pct-val {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: #34d399;
    line-height: 1;
    text-shadow: 0 0 15px rgba(52, 211, 153, 0.4);
}

.turnout-pct-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* TURNOUT PROGRESS TRACK */
.turnout-progress-track {
    width: 100%;
    height: 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
    margin-bottom: 1.25rem;
}

.turnout-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399, #38bdf8);
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.turnout-progress-glow {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: rgba(255, 255, 255, 0.6);
    filter: blur(4px);
    border-radius: 999px;
}

/* QUICK STATS CHIPS */
.turnout-quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.turnout-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #cbd5e1;
    transition: var(--transition);
}

.turnout-chip:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-done { background: #34d399; box-shadow: 0 0 8px #34d399; }
.dot-waiting { background: #fde047; box-shadow: 0 0 8px #fde047; }
.dot-wira { background: #fb7185; box-shadow: 0 0 8px #fb7185; }
.dot-madya { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }

