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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1d2249;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    background: #8b0000;
    padding: 14px 28px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
}

.nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.nav-subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 7px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-login {
    border: 1px solid #ffffff;
    color: #ffffff;
    background: transparent;
}

.btn-apply {
    border: 1px solid #ffb13b;
    color: #ffffff;
    background: #f39c12;
}

.verify-page-main {
    flex: 1;
    display: flex;
}

.verify-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 44px 16px;
    background: #ffffff;
}

.verify-card {
    width: min(900px, 100%);
    background: #1a1f4e;
    border-radius: 14px;
    border: 2px solid #4fb8ff;
    box-shadow: 0 12px 32px rgba(26, 31, 78, 0.32), 0 0 0 6px rgba(79, 184, 255, 0.08);
    padding: 20px 30px 24px;
    color: #ffffff;
}

.verify-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
}

.verify-back-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.verify-title {
    text-align: center;
    font-size: clamp(33px, 4vw, 44px);
    font-weight: 800;
    margin: 20px 0 0;
}

.verify-subtext {
    max-width: 640px;
    margin: 12px auto 30px;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(233, 238, 255, 0.88);
}

.verify-form {
    width: min(760px, 100%);
    margin: 0 auto;
}

.verify-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.verify-input {
    width: 100%;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.58);
    height: 52px;
    padding: 0 16px;
    font-size: 15px;
    color: #1a1f4e;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.verify-input::placeholder {
    color: #6d7391;
}

.verify-input:focus {
    border-color: #36acff;
    box-shadow: 0 0 0 3px rgba(54, 172, 255, 0.22);
}

.verify-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.verify-upload-box {
    width: 100%;
    min-height: 168px;
    border: 2px dashed rgba(255, 255, 255, 0.62);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 18px;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.verify-upload-box:hover,
.verify-file-input:focus + .verify-upload-box {
    border-color: #36acff;
    background: rgba(54, 172, 255, 0.13);
    box-shadow: 0 0 0 3px rgba(54, 172, 255, 0.16);
}

.verify-upload-box i {
    font-size: 34px;
    color: #ffb13b;
}

.verify-upload-title {
    font-size: 17px;
    font-weight: 800;
}

.verify-upload-subtitle {
    font-size: 13px;
    color: rgba(233, 238, 255, 0.82);
}

.verify-upload-file {
    max-width: 100%;
    margin-top: 4px;
    padding: 7px 10px;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.94);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.verify-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.verify-btn {
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    background: #111a46;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 184px;
}

.verify-btn:hover {
    background: #0d1438;
}

.verify-btn:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.verify-btn-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: verify-spin 0.75s linear infinite;
}

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

.verify-result {
    display: none;
}

.verify-result.show {
    display: contents;
}

.verify-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(8, 13, 42, 0.82);
    backdrop-filter: blur(3px);
}

.verify-modal-content {
    position: relative;
    width: min(620px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow-y: auto;
    border: 2px solid #4fb8ff;
    border-radius: 14px;
    padding: 30px;
    background: #1a1f4e;
    box-shadow: 0 20px 56px rgba(7, 12, 38, 0.55), 0 0 0 6px rgba(79, 184, 255, 0.09);
    animation: verify-modal-in 0.18s ease-out;
}

@keyframes verify-modal-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.verify-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
}

.verify-modal-close:hover,
.verify-modal-close:focus-visible {
    background: rgba(255, 255, 255, 0.13);
}

.verify-modal-done {
    display: block;
    margin: 22px 0 0 auto;
    border: 1px solid #62c2ff;
    border-radius: 8px;
    padding: 9px 18px;
    background: #24306b;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

.verify-modal-done:hover,
.verify-modal-done:focus-visible {
    background: #101638;
}

.verify-modal-content.status-verified {
    background: #1a1f4e;
    border-color: #74ffc6;
}

.verify-modal-content.status-expired,
.verify-modal-content.status-revoked,
.verify-modal-content.status-needs_review,
.verify-modal-content.status-unreadable {
    background: #1a1f4e;
    border-color: #ffca67;
}

.verify-modal-content.status-tampered {
    background: #1a1f4e;
    border-color: #dc2626;
}

.verify-modal-content.status-not_found,
.verify-modal-content.status-not_on_blockchain,
.verify-modal-content.status-invalid_document,
.verify-modal-content.status-error {
    background: #1a1f4e;
    border-color: #ff8f8f;
}

.verify-modal-open {
    overflow: hidden;
}

.verify-result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 42px 8px 0;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

.verify-verdict {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.verify-verdict.status-verified {
    background: #dcfce7;
    color: #166534;
}

.verify-verdict.status-tampered,
.verify-verdict.status-not_found,
.verify-verdict.status-not_on_blockchain,
.verify-verdict.status-invalid_document,
.verify-verdict.status-error {
    background: #fee2e2;
    color: #991b1b;
}

.verify-verdict.status-expired,
.verify-verdict.status-revoked,
.verify-verdict.status-needs_review,
.verify-verdict.status-blockchain_unavailable,
.verify-verdict.status-unreadable {
    background: #fef3c7;
    color: #92400e;
}

.verify-result-header i {
    font-size: 25px;
}

.status-verified .verify-result-header i { color: #74ffc6; }
.status-expired .verify-result-header i,
.status-revoked .verify-result-header i,
.status-needs_review .verify-result-header i,
.status-unreadable .verify-result-header i { color: #ffca67; }
.status-tampered .verify-result-header i,
.status-not_found .verify-result-header i,
.status-not_on_blockchain .verify-result-header i,
.status-invalid_document .verify-result-header i,
.status-error .verify-result-header i { color: #ff8f8f; }

.status-blockchain_unavailable .verify-result-header i { color: #ffca67; }

.verify-result-message {
    margin: 0 0 18px;
    color: #dbe7ff;
    line-height: 1.5;
}

.verify-result-body {
    color: #f8fafc;
    font-size: 13px;
    line-height: 1.45;
}

.verify-result-details {
    margin-top: 7px;
    display: grid;
    gap: 3px;
}

.verify-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.verify-fact {
    padding: 10px 12px;
    border: 1px solid rgba(98, 194, 255, 0.28);
    border-radius: 8px;
    background: #252b63;
}

.verify-fact-wide {
    grid-column: 1 / -1;
}

.verify-fact span {
    display: block;
    margin-bottom: 2px;
    color: #b9caec;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.verify-fact strong {
    display: block;
    color: #ffffff;
    overflow-wrap: anywhere;
}

.verify-field-report {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.verify-field-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 12px;
    padding: 9px 11px;
    border-left: 4px solid #9ca3af;
    background: #f8fafc;
    color: #1f2937;
}

.verify-field-issues {
    padding: 12px;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    background: #fff7ed;
}

.verify-section-label {
    color: #9a3412;
    font-weight: 800;
}

.verify-result-blockchain {
    border-left: 4px solid #4fb8ff;
}

.verify-chain-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 12px;
    font-weight: 700;
}

.verify-chain-badge.chain-failed {
    background: #fee2e2;
    color: #991b1b;
}

.verify-chain-badge.chain-unavailable {
    background: #fef3c7;
    color: #92400e;
}

.verify-contact-guidance {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 202, 103, 0.5);
    border-radius: 8px;
    background: rgba(255, 202, 103, 0.1);
    color: #fff4d6;
}

.verify-contact-guidance i {
    margin-top: 2px;
    color: #ffca67;
}

.verify-contact-guidance strong,
.verify-contact-guidance span {
    display: block;
}

.verify-contact-guidance a {
    color: #8fd3ff;
    overflow-wrap: anywhere;
}

.verify-field-row small {
    grid-column: 1 / -1;
    overflow-wrap: anywhere;
}

.verify-field-row.status-matched { border-left-color: #15803d; }
.verify-field-row.status-changed { border-left-color: #b91c1c; background: #fff1f2; }
.verify-field-row.status-unreadable { border-left-color: #b45309; background: #fffbeb; }

.verify-result-detail-label {
    color: #64748b;
    margin-right: 6px;
}

.footer {
    background: #8b0000;
    color: #ffffff;
    padding: 18px 24px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 24px;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand img {
    width: 48px;
    height: 48px;
}

.footer-brand-text h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
}

.footer-brand-text p {
    margin: 4px 0 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-section h4 {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 800;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-info-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.95);
}

.footer-info-item i {
    margin-top: 1px;
    width: 15px;
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .footer-brand,
    .footer-section {
        text-align: center;
        justify-content: center;
    }

    .footer-info-item {
        justify-content: center;
        text-align: center;
    }
}

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

    .verify-modal-content {
        padding: 24px 18px 18px;
    }

    .verify-facts {
        grid-template-columns: 1fr;
    }

    .verify-fact-wide {
        grid-column: auto;
    }

    .navbar {
        padding: 12px 14px;
    }

    .nav-title {
        font-size: 14px;
    }

    .nav-subtitle {
        font-size: 9px;
    }

    .nav-logo {
        width: 38px;
        height: 38px;
    }

    .btn {
        padding: 7px 11px;
        font-size: 12px;
    }

    .verify-section {
        padding: 26px 12px;
    }

    .verify-card {
        padding: 16px 14px 18px;
    }

    .verify-title {
        font-size: 28px;
    }

    .verify-subtext {
        font-size: 12px;
        margin-bottom: 18px;
    }

    .verify-actions {
        justify-content: stretch;
    }

    .verify-btn {
        width: 100%;
    }
}
