.svs-frontend-box {
    max-width: 900px; margin: 40px auto; background: #fff; border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1); overflow: hidden; font-family: 'Inter', sans-serif;
}
.svs-header-label { background: #2c3e50; color: #fff; padding: 20px; text-align: center; font-weight: 700; text-transform: uppercase; }

/* Grid for Comparison Results */
.res-comparison-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; padding: 40px; background: #fff;
}
.res-candidate-box { text-align: center; border: 1px solid #eee; padding: 20px; border-radius: 12px; background: #fafafa; }
.leader-box { border: 2px solid #f1c40f; background: #fffdf5; }

/* Square Photo Frames - No Blurring */
.res-photo-square { width: 100%; height: 250px; overflow: hidden; border-radius: 8px; margin-bottom: 20px; background: #eee; }
.res-photo-square img { width: 100%; height: 100%; object-fit: cover; image-rendering: -webkit-optimize-contrast; }

.res-text-info h3 { margin: 10px 0; font-size: 1.3rem; color: #2c3e50; }
.res-vote-display { font-size: 2rem; font-weight: 800; color: #27ae60; }
.res-vote-display small { font-size: 0.9rem; font-weight: 400; color: #777; }

/* Centralized Status Dashboard (Total & Difference) */
.res-stats-dashboard {
    display: flex; justify-content: center; align-items: center;
    background: #2c3e50; color: #fff; padding: 25px; margin: 0 40px 40px 40px;
    border-radius: 15px; text-align: center; gap: 40px;
}
.stat-item { flex: 1; }
.stat-label { display: block; font-size: 0.85rem; text-transform: uppercase; color: #bdc3c7; margin-bottom: 5px; }
.stat-value { display: block; font-size: 1.8rem; font-weight: 700; }
.diff-value { color: #f1c40f; }
.stat-divider { width: 1px; height: 50px; background: rgba(255,255,255,0.2); }

/* Frontend Form Elements */
.svs-step { display: none; padding: 40px; }
.svs-step.active { display: block; }
.voter-input { width: 100%; padding: 18px; border: 2px solid #ddd; border-radius: 8px; margin-bottom: 20px; text-align: center; font-size: 1.1rem; }
.svs-btn { background: #3498db; color: #fff; padding: 15px; border: none; border-radius: 8px; cursor: pointer; width: 100%; font-weight: 700; transition: 0.3s; }
.svs-btn:hover { background: #2980b9; transform: translateY(-2px); }

.candidate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 25px; }
.candidate-card { border: 1px solid #f0f0f0; padding: 15px; border-radius: 10px; text-align: center; }
.candidate-img-square { width: 100%; height: 200px; border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.candidate-img-square img { width: 100%; height: 100%; object-fit: cover; }
.svs-msg-error { background: #fee; color: #c0392b; padding: 15px; border-radius: 8px; border: 1px solid #fcc; margin-bottom: 20px; text-align: center; }