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

body {
    background: #020712;
    font-family: Arial, sans-serif;
    color: #e0f7ff;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 15px;
    text-align: center;
}

.main-title {
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.subtitle {
    margin-bottom: 20px;
    color: #9fdfff;
    font-size: 14px;
}

.row {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

.card {
    flex: 1 1 450px;
    max-width: 500px;
    width: 100%;
    background: rgba(5, 10, 20, 0.98);
    border: 2px solid #00ffff;
    border-radius: 15px;
    padding: 18px;
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.35);
}

.card h2 {
    margin-bottom: 15px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-height: 350px;
}

video,
canvas,
#idPreview {
    width: 100%;
    max-height: 350px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.4);
    background: #000;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

#selfieCanvas {
    display: none;
}

#idPreview {
    display: none;
}

#faceOval {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 260px;
    height: 340px;
    border-radius: 50% / 60%;
    border: 4px dashed rgba(0, 180, 255, 0.8);
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 0 0 25px rgba(0, 180, 255, 0.4);
    transition: 0.3s ease;
}

button,
.upload-label {
    width: 100%;
    display: block;
    padding: 14px;
    margin-top: 15px;
    border: none;
    border-radius: 10px;
    background: #12e6ef;
    color: #000;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: 0.25s;
    text-align: center;
}

button:hover,
.upload-label:hover {
    background: #00c8ff;
}

button:disabled,
button[disabled] {
    background: #4a8b92;
    cursor: not-allowed;
    opacity: 0.8;
}

.upload-box {
    width: 100%;
    border: 2px dashed rgba(0, 255, 255, 0.4);
    border-radius: 10px;
    padding: 15px;
    background: rgba(3, 8, 16, 0.95);
}

#idInput {
    display: none;
}

#idFileName {
    margin-top: 12px;
    font-size: 14px;
    color: #ddd;
    word-break: break-word;
}

.result-box {
    display: block;
    margin-top: 25px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.4);
    background: rgba(5, 15, 25, 0.98);
}

#resultText {
    font-size: 18px;
    font-weight: bold;
}

#verifyBtn:not([disabled]) {
    opacity: 1 !important;
    cursor: pointer !important;
    background: #12e6ef !important;
}

@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    .row {
        flex-direction: column;
        align-items: center;
    }

    .card {
        max-width: 100%;
    }

    .video-wrapper {
        max-height: 300px;
    }

    video,
    canvas,
    #idPreview {
        max-height: 300px;
    }

    button,
    .upload-label {
        font-size: 17px;
        padding: 14px;
    }

    #faceOval {
        width: 220px;
        height: 300px;
    }
}
