* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #0f0f13;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    background: #1a1a24;
    border: 1px solid #2e2e42;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

h1 {
    color: #e0e0f0;
    font-size: 1.5rem;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.subtitle {
    color: #6b6b8a;
    font-size: 0.85rem;
    margin-bottom: 28px;
}

label {
    display: block;
    color: #9090b0;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.input-wrap {
    position: relative;
    margin-bottom: 20px;
}

.input-wrap .prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #5a5a7a;
    font-size: 0.95rem;
    pointer-events: none;
}

input[type="text"] {
    width: 100%;
    padding: 13px 14px 13px 38px;
    background: #12121c;
    border: 1px solid #2e2e42;
    border-radius: 10px;
    color: #e0e0f0;
    font-size: 1.05rem;
    letter-spacing: 1px;
    outline: none;
    transition: border-color 0.2s;
}

input[type="text"]:focus {
    border-color: #5a5aff;
}

input[type="text"].error {
    border-color: #ff4444;
}

.validation-msg {
    font-size: 0.78rem;
    margin-top: 6px;
    min-height: 16px;
    color: #ff5555;
}

button {
    width: 100%;
    padding: 13px;
    background: #5a5aff;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.3px;
}

button:hover:not(:disabled) {
    background: #4a4aee;
}

button:active:not(:disabled) {
    transform: scale(0.98);
}

button:disabled {
    background: #2e2e50;
    cursor: not-allowed;
    color: #6b6b8a;
}

.result-box {
    margin-top: 28px;
    padding: 22px;
    border-radius: 12px;
    text-align: center;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-box.clean {
    background: #0d2b1a;
    border: 1px solid #1a6b3a;
}

.result-box.bad {
    background: #2b0d0d;
    border: 1px solid #6b1a1a;
}

.result-label {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.result-box.clean .result-label {
    color: #00e87a;
    /* parrot green */
    text-shadow: 0 0 20px rgba(0, 232, 122, 0.4);
}

.result-box.bad .result-label {
    color: #ff3333;
    text-shadow: 0 0 20px rgba(255, 51, 51, 0.4);
}

.result-phone {
    color: #6b6b8a;
    font-size: 0.85rem;
    margin-top: 6px;
}

.result-detail {
    font-size: 0.8rem;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.result-box.clean .result-detail {
    color: #3dbb70;
}

.result-box.bad .result-detail {
    color: #bb3d3d;
}

.spinner {
    display: none;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 0 auto;
}

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

button.loading .btn-text {
    display: none;
}

button.loading .spinner {
    display: block;
}