/* =====================================================================
   idcheck.css  —  Styles for the Shufti Pro ID Verification page
   ===================================================================== */

/* ── Base overrides for this page ────────────────────────────────────── */
body.idcheck-page {
    font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
    min-height: 100vh;
    padding: 0;
    color: #e2e8f0;
}

/* ── Top navigation bar ──────────────────────────────────────────────── */
.top-nav {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(99, 179, 237, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 24px;
}
.nav-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}
.nav-brand {
    font-weight: 700;
    font-size: 1rem;
    color: #63b3ed;
    letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 8px; }
.nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.nav-link:hover { background: rgba(99, 179, 237, 0.12); color: #e2e8f0; }
.nav-link.active {
    background: rgba(99, 179, 237, 0.18);
    color: #63b3ed;
}

/* ── Wrap ────────────────────────────────────────────────────────────── */
body.idcheck-page .wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* ── Page hero ───────────────────────────────────────────────────────── */
.page-hero {
    text-align: center;
    margin-bottom: 36px;
}
.hero-badge {
    display: inline-block;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.page-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 10px;
    letter-spacing: -0.03em;
}
.page-hero .subtitle {
    color: #94a3b8;
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
.page-hero .subtitle strong { color: #63b3ed; }

/* ── Card (form wrapper) ─────────────────────────────────────────────── */
body.idcheck-page .card.idcheck-card {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(99, 179, 237, 0.15);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

/* ── Fieldset ────────────────────────────────────────────────────────── */
body.idcheck-page fieldset {
    border: 1px solid rgba(99, 179, 237, 0.18);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    background: rgba(15, 23, 42, 0.4);
}
body.idcheck-page legend {
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.legend-icon { font-size: 1rem; }
.legend-sub {
    color: #64748b;
    font-weight: 400;
    font-size: 0.78rem;
}
.fieldset-hint {
    color: #64748b;
    font-size: 0.83rem;
    margin: 0 0 16px;
    line-height: 1.5;
}

/* ── Labels & inputs ─────────────────────────────────────────────────── */
body.idcheck-page label {
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 16px;
}
body.idcheck-page input[type="text"],
body.idcheck-page input[type="date"],
body.idcheck-page input[type="tel"],
body.idcheck-page input[type="email"] {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(99, 179, 237, 0.25);
    color: #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.92rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-top: 6px;
    width: 100%;
    display: block;
}
body.idcheck-page input[type="text"]::placeholder,
body.idcheck-page input[type="date"]::placeholder {
    color: #475569;
}
body.idcheck-page input[type="text"]:focus,
body.idcheck-page input[type="date"]:focus {
    outline: none;
    border-color: #63b3ed;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.2);
}

/* Make date input lighter */
body.idcheck-page input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
}

.req   { color: #f56565; font-weight: 700; }
.optional { color: #64748b; font-weight: 400; font-size: 0.76rem; }

/* ── DD/MM/YYYY text date inputs ─────────────────────────────────────── */
.date-input-wrap { position: relative; margin-top: 6px; }
.date-text-input {
    width: 100%;
    display: block;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(99, 179, 237, 0.25);
    color: #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.92rem;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.05em;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.date-text-input::placeholder { color: #475569; font-family: 'Inter', sans-serif; letter-spacing: 0; }
.date-text-input:focus {
    outline: none;
    border-color: #63b3ed;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.2);
}
.date-text-input.date-ok  { border-color: #68d391; box-shadow: 0 0 0 2px rgba(104, 211, 145, 0.15); }
.date-text-input.date-err { border-color: #fc8181; box-shadow: 0 0 0 2px rgba(245, 101, 101, 0.15); }
.date-format-hint {
    display: block;
    font-size: 0.72rem;
    color: #475569;
    margin-top: 4px;
    padding-left: 2px;
}



.info-pill {
    display: inline-block;
    background: rgba(99, 179, 237, 0.12);
    border: 1px solid rgba(99, 179, 237, 0.2);
    color: #63b3ed;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    margin-top: 8px;
}


/* ── Document type cards ─────────────────────────────────────────────── */
.doctype-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 560px) { .doctype-grid { grid-template-columns: 1fr; } }

.doctype-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(99, 179, 237, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    margin-bottom: 0;
    font-size: 0.83rem;
    color: #94a3b8;
    font-weight: 500;
    text-align: center;
    position: relative;
}
.doctype-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.doctype-card:hover {
    border-color: rgba(99, 179, 237, 0.4);
    background: rgba(99, 179, 237, 0.06);
}
.doctype-card.selected {
    border-color: #63b3ed;
    background: rgba(99, 179, 237, 0.12);
    color: #e2e8f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 179, 237, 0.18);
}
.doctype-icon { font-size: 1.8rem; }
.doctype-label { font-size: 0.8rem; }

/* ── Upload zones ────────────────────────────────────────────────────── */
.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 560px) { .upload-grid { grid-template-columns: 1fr; } }
.upload-grid-single { grid-template-columns: 1fr; max-width: 360px; }

.upload-zone {
    border: 2px dashed rgba(99, 179, 237, 0.25);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.5);
    transition: border-color 0.2s, background 0.2s;
    overflow: hidden;
}
.upload-zone:hover {
    border-color: rgba(99, 179, 237, 0.5);
    background: rgba(99, 179, 237, 0.04);
}
.upload-zone.has-file {
    border-color: #68d391;
    background: rgba(104, 211, 145, 0.05);
}
.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 16px 16px;
    cursor: pointer;
    color: #94a3b8;
    margin-bottom: 0;
}
.upload-label input[type="file"] {
    display: block;
    width: 100%;
    margin-top: 10px;
    font-size: 0.78rem;
    color: #64748b;
    background: transparent;
    border: none;
    padding: 0;
}
.upload-icon { font-size: 1.6rem; }
.upload-title { font-size: 0.85rem; font-weight: 600; color: #e2e8f0; }
.upload-hint  { font-size: 0.75rem; color: #64748b; }
.upload-preview { padding: 0 12px 12px; }
.upload-preview img {
    width: 100%;
    max-height: 140px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(99, 179, 237, 0.15);
    display: block;
}
.preview-name {
    display: block;
    font-size: 0.72rem;
    color: #68d391;
    margin-top: 5px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Submit button ───────────────────────────────────────────────────── */
.btn-verify {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-verify:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(59, 130, 246, 0.45);
}
.btn-verify:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Results panel ───────────────────────────────────────────────────── */
.results-panel {
    margin-top: 32px;
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(99, 179, 237, 0.15);
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.results-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 14px;
}

/* Overall verdict banner */
.overall-verdict {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}
.verdict-icon { font-size: 1.2rem; }
.verdict-ok      { background: rgba(104, 211, 145, 0.15); border: 1px solid rgba(104, 211, 145, 0.35); color: #68d391; }
.verdict-fail    { background: rgba(245, 101, 101, 0.15); border: 1px solid rgba(245, 101, 101, 0.35); color: #fc8181; }
.verdict-error   { background: rgba(237, 137, 54, 0.15);  border: 1px solid rgba(237, 137, 54, 0.35);  color: #f6ad55; }
.verdict-pending { background: rgba(99, 179, 237, 0.12);  border: 1px solid rgba(99, 179, 237, 0.25);  color: #63b3ed; }

/* Applicant pills */
.applicant-summary { margin-bottom: 24px; }
.appl-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.appl-pill {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(99, 179, 237, 0.2);
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
}
.verdict-summary { color: #94a3b8; font-size: 0.88rem; margin: 0; line-height: 1.6; }

/* ── Passport / document card (from OCR proof) ───────────────────────── */
.doc-card-wrap {
    margin: 0 0 28px;
}
.passport-card {
    background:
        linear-gradient(145deg, rgba(30, 58, 95, 0.55) 0%, rgba(15, 23, 42, 0.95) 45%, rgba(20, 40, 70, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 18px 40px rgba(0, 0, 0, 0.45);
    position: relative;
}
.passport-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            -18deg,
            transparent,
            transparent 11px,
            rgba(212, 175, 55, 0.03) 11px,
            rgba(212, 175, 55, 0.03) 12px
        );
    pointer-events: none;
}
.passport-card > * { position: relative; }

.pc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(0, 0, 0, 0.2);
}
.pc-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.pc-emblem {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: #0f172a;
    background: linear-gradient(145deg, #f5e6a6, #d4af37 55%, #b8860b);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
}
.pc-country {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.pc-country-native {
    font-size: 0.78rem;
    color: #d4af37;
    margin-top: 1px;
}
.pc-doc-name {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 3px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.pc-type-badge {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #f5e6a6;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
}

.pc-body {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 18px;
    padding: 20px;
}
@media (max-width: 560px) {
    .pc-body { grid-template-columns: 1fr; }
    .pc-photo { justify-self: center; }
}

.pc-photo-placeholder {
    width: 110px;
    height: 140px;
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background:
        linear-gradient(180deg, rgba(148, 163, 184, 0.12), rgba(15, 23, 42, 0.6));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #64748b;
}
.pc-photo-icon { font-size: 2rem; opacity: 0.7; }
.pc-photo-label {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pc-name-block { margin-bottom: 14px; }
.pc-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.02em;
    line-height: 1.3;
}
.pc-name-parts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 6px;
    font-size: 0.78rem;
    color: #cbd5e1;
}
.pc-name-parts em {
    font-style: normal;
    color: #64748b;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 6px;
}

.pc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}
@media (max-width: 560px) {
    .pc-grid { grid-template-columns: 1fr; }
}
.pc-field-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
}
.pc-field-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
    word-break: break-word;
}

.pc-mrz {
    margin: 0 16px 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #0a0f1a;
    border: 1px solid rgba(148, 163, 184, 0.2);
}
.pc-mrz-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.pc-mrz-text {
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #86efac;
    letter-spacing: 0.04em;
    overflow-x: auto;
    white-space: pre;
}

/* ── CPR / Bahrain ID card ───────────────────────────────────────────── */
.cpr-card {
    background:
        linear-gradient(145deg, rgba(127, 29, 29, 0.45) 0%, rgba(15, 23, 42, 0.96) 42%, rgba(30, 41, 59, 0.92) 100%);
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 18px 40px rgba(0, 0, 0, 0.45);
    position: relative;
}
.cpr-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            12deg,
            transparent,
            transparent 14px,
            rgba(248, 113, 113, 0.03) 14px,
            rgba(248, 113, 113, 0.03) 15px
        );
    pointer-events: none;
}
.cpr-card > * { position: relative; }

.cpr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(248, 113, 113, 0.28);
    background: rgba(0, 0, 0, 0.22);
}
.cpr-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.cpr-flag {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(145deg, #ef4444, #991b1b);
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.35);
}
.cpr-country {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.08em;
}
.cpr-country-native {
    font-size: 0.85rem;
    color: #fca5a5;
    margin-top: 2px;
}
.cpr-doc-name {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 3px;
    letter-spacing: 0.03em;
}
.cpr-badge {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(252, 165, 165, 0.45);
    color: #fecaca;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    background: rgba(239, 68, 68, 0.12);
}

.cpr-body {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 18px;
    padding: 20px;
}
@media (max-width: 560px) {
    .cpr-body { grid-template-columns: 1fr; }
    .cpr-photo { justify-self: center; }
}
.cpr-photo-placeholder {
    width: 110px;
    height: 140px;
    border-radius: 6px;
    border: 1px solid rgba(248, 113, 113, 0.3);
    background: linear-gradient(180deg, rgba(248, 113, 113, 0.1), rgba(15, 23, 42, 0.6));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #94a3b8;
}
.doc-photo-img {
    width: 110px;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: block;
    background: #0f172a;
}
.doc-photo-caption {
    display: block;
    margin-top: 6px;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
}
.cpr-photo .doc-photo-caption { color: #fca5a5; }
.pc-photo .doc-photo-caption { color: #d4af37; }
.cpr-name-block { margin-bottom: 14px; }
.cpr-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.02em;
    line-height: 1.3;
}
.cpr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}
@media (max-width: 560px) {
    .cpr-grid { grid-template-columns: 1fr; }
}
.cpr-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 16px 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #0a0f1a;
    border: 1px solid rgba(248, 113, 113, 0.25);
}
.cpr-footer-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #fca5a5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.cpr-footer-value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fecaca;
    letter-spacing: 0.12em;
}

/* ── Face match card ─────────────────────────────────────────────────── */
.face-match-wrap {
    margin: 0 0 28px;
}
.face-match-card {
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid rgba(99, 179, 237, 0.2);
    background: rgba(15, 23, 42, 0.55);
}
.face-match-card.face-ok {
    border-color: rgba(104, 211, 145, 0.4);
    background: rgba(104, 211, 145, 0.08);
}
.face-match-card.face-fail {
    border-color: rgba(245, 101, 101, 0.4);
    background: rgba(245, 101, 101, 0.08);
}
.face-match-card.face-pending {
    border-color: rgba(99, 179, 237, 0.3);
}
.face-match-status {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.face-match-icon { font-size: 1.4rem; line-height: 1.2; }
.face-match-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: #e2e8f0;
    margin-bottom: 3px;
}
.face-ok .face-match-title { color: #68d391; }
.face-fail .face-match-title { color: #fc8181; }
.face-match-sub {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
}
.face-conf-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 8px;
}
.face-conf-head strong {
    color: #e2e8f0;
    font-size: 0.95rem;
}
.face-conf-bar {
    height: 10px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.8);
    overflow: hidden;
}
.face-conf-bar span {
    display: block;
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #3b82f6, #68d391);
    transition: width 0.4s ease;
}
.face-fail .face-conf-bar span {
    background: linear-gradient(90deg, #f6ad55, #fc8181);
}

/* Field-by-field breakdown */
.field-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 12px;
}
.field-results { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.field-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 10px;
    border-left: 4px solid transparent;
    background: rgba(15, 23, 42, 0.5);
    gap: 12px;
    transition: transform 0.15s;
}
.field-card:hover { transform: translateX(3px); }
.field-match    { border-left-color: #68d391; background: rgba(104, 211, 145, 0.07); }
.field-mismatch { border-left-color: #fc8181; background: rgba(245, 101, 101, 0.07); }
.field-unverified { border-left-color: #64748b; }

.field-info { flex: 1; }
.field-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #e2e8f0;
    margin-bottom: 3px;
}
.field-extracted { font-size: 0.78rem; color: #64748b; }
.field-extracted strong { color: #94a3b8; }

.field-match-badge {
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.03em;
}
.field-match    .field-match-badge { color: #68d391; }
.field-mismatch .field-match-badge { color: #fc8181; }
.field-unverified .field-match-badge { color: #64748b; }

.no-fields { color: #64748b; font-size: 0.88rem; }

/* Reference line */
.ref-line {
    font-size: 0.72rem;
    color: #475569;
    font-family: 'Courier New', monospace;
    margin: 0 0 16px;
}

/* Raw API response */
.raw-details {
    margin-top: 8px;
    border: 1px solid rgba(99, 179, 237, 0.12);
    border-radius: 8px;
    overflow: hidden;
}
.raw-details summary {
    padding: 10px 14px;
    color: #64748b;
    font-size: 0.8rem;
    cursor: pointer;
    user-select: none;
    background: rgba(15, 23, 42, 0.4);
}
.raw-details summary:hover { color: #94a3b8; }
.raw-json {
    background: #0f172a;
    color: #7dd3fc;
    font-size: 0.75rem;
    padding: 16px;
    margin: 0;
    overflow-x: auto;
    max-height: 360px;
    border-top: 1px solid rgba(99, 179, 237, 0.1);
    font-family: 'Courier New', Courier, monospace;
}

/* Back link */
body.idcheck-page .back-link {
    display: inline-block;
    margin-top: 20px;
    color: #63b3ed;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: color 0.2s;
}
body.idcheck-page .back-link:hover { color: #90cdf4; }
