* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    min-height: 100vh;
    padding: 30px 20px;
}

.container {
    max-width: 820px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0,0,0,0.4);
}

/* ── Header ── */
.header {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: white;
    text-align: center;
    padding: 42px 20px;
}

.header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.header p {
    font-size: 1rem;
    opacity: 0.85;
}

/* ── Section ── */
.section {
    padding: 28px 32px;
    border-bottom: 1px solid #f0f0f0;
}

.section h2 {
    font-size: 1.1rem;
    color: #0d47a1;
    margin-bottom: 22px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8f0fe;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* ── Sliders ── */
.field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.slider-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.slider-box input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 4px;
    background: #dde3f0;
    outline: none;
    cursor: pointer;
}

.slider-box input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1a73e8;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(26,115,232,0.5);
    transition: background 0.2s, transform 0.1s;
}

.slider-box input[type="range"]::-webkit-slider-thumb:hover {
    background: #0d47a1;
    transform: scale(1.15);
}

.slider-val {
    min-width: 52px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #1a73e8;
    background: #e8f0fe;
    padding: 4px 10px;
    border-radius: 8px;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 4px;
    padding: 0 2px;
}

/* ── Button ── */
.btn {
    display: block;
    width: calc(100% - 64px);
    margin: 26px 32px;
    padding: 16px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(26,115,232,0.4);
}

.btn:active {
    transform: translateY(0);
}

/* ── Results ── */
.results {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ── Verdict ── */
.verdict {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    border-radius: 16px;
}

.verdict.pass {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-left: 8px solid #2e7d32;
}

.verdict.fail {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    border-left: 8px solid #c62828;
}

.verdict-icon {
    font-size: 3rem;
    line-height: 1;
}

.verdict-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.verdict.pass .verdict-text h2 { color: #1b5e20; }
.verdict.fail .verdict-text h2 { color: #b71c1c; }

.verdict-text p {
    font-size: 0.95rem;
    margin-top: 4px;
}

.verdict.pass .verdict-text p { color: #388e3c; }
.verdict.fail .verdict-text p { color: #d32f2f; }

/* ── Votes Section ── */
.votes-section {
    background: #f8faff;
    border-radius: 14px;
    padding: 20px 24px;
    border: 1px solid #e0e8ff;
}

.votes-section h3 {
    font-size: 1rem;
    color: #0d47a1;
    margin-bottom: 16px;
}

.vote-bar {
    display: flex;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #eee;
}

.vote-pass {
    background: linear-gradient(90deg, #2e7d32, #43a047);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    transition: width 0.8s ease;
}

.vote-fail {
    background: linear-gradient(90deg, #c62828, #e53935);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    transition: width 0.8s ease;
}

.vote-counts {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 600;
}

.pass-count { color: #2e7d32; }
.fail-count { color: #c62828; }

/* ── Model Cards ── */
.models-section {
    background: #f8faff;
    border-radius: 14px;
    padding: 20px 24px;
    border: 1px solid #e0e8ff;
}

.models-section h3 {
    font-size: 1rem;
    color: #0d47a1;
    margin-bottom: 16px;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.model-card {
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    transition: transform 0.2s;
}

.model-card:hover {
    transform: translateY(-3px);
}

.model-card.pass {
    background: #e8f5e9;
    border: 2px solid #81c784;
}

.model-card.fail {
    background: #ffebee;
    border: 2px solid #e57373;
}

.model-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.3;
}

.model-pred {
    font-size: 1rem;
    font-weight: 800;
}

.model-card.pass .model-pred { color: #1b5e20; }
.model-card.fail .model-pred { color: #b71c1c; }

/* ── Input Summary ── */
.inputs-summary {
    font-size: 0.82rem;
    color: #999;
    text-align: center;
    padding-top: 4px;
}

/* ── Error ── */
.error-box {
    background: #fff5f5;
    border: 1px solid #ffcccc;
    border-radius: 12px;
    padding: 20px;
}

.error-box h3 { color: #c62828; margin-bottom: 8px; }
.error-box p  { color: #b71c1c; font-size: 0.9rem; }