/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
    -webkit-font-smoothing: antialiased;
}

/* ===== Card ===== */
.card {
    background: rgba(30, 27, 50, 0.55);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 130, 255, 0.12);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: linear-gradient(to right, #c084fc, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Criteria list ===== */
#criteria li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    transition: color 0.3s;
}
#criteria li.pass { color: #34d399; }
#criteria li.fail { color: #f87171; }

#criteria li .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s;
}
#criteria li.pass .icon {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}
#criteria li.fail .icon {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}

/* ===== Toggle label ===== */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #cbd5e1;
}
.toggle-label:hover { color: #f1f5f9; }

/* ===== Range slider ===== */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: #334155;
    outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #a855f7;
    cursor: pointer;
    border: 2px solid #1e1b32;
    box-shadow: 0 0 6px rgba(168, 85, 247, 0.5);
    transition: transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* ===== Strength bar colours ===== */
.str-very-weak { background: #ef4444; width: 10% !important; }
.str-weak      { background: #f97316; width: 30% !important; }
.str-fair      { background: #eab308; width: 50% !important; }
.str-good      { background: #22c55e; width: 75% !important; }
.str-strong    { background: #06b6d4; width: 100% !important; }

/* ===== Copy flash ===== */
.copy-flash {
    animation: flashGreen 0.6s ease;
}
@keyframes flashGreen {
    0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
    100% { box-shadow: 0 0 0 12px rgba(52, 211, 153, 0); }
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .card { padding: 1.25rem; }
}
