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

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f2027 0%, #1a3a4a 45%, #0d4f3c 100%);
    display: flex;
    flex-direction: column;
}

/* ── Navbar ── */
.top-nav {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}
.nav-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
    transition: transform .3s;
}
.nav-brand:hover img { transform: scale(1.08); }
.nav-brand-text {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
.nav-brand-text span {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
}
.nav-home-btn {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    transition: all .25s;
}
.nav-home-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

/* ── Main content ── */
.page-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
}

.verify-card {
    width: 100%;
    max-width: 520px;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 20px;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 25px 60px rgba(0,0,0,0.45);
    animation: cardIn .5s ease both;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Header block ── */
.card-header-block {
    text-align: center;
    margin-bottom: 2rem;
}
.header-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #16a34a, #0d9488);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(22,163,74,0.35);
}
.header-icon i { font-size: 1.6rem; color: #fff; }
.card-header-block h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}
.card-header-block p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}

/* ── Alert banner ── */
.reminder-banner {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.28);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.reminder-banner .ri-icon {
    color: #f87171;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.reminder-banner p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.55;
    margin: 0;
}
.reminder-banner strong { color: #fca5a5; }

/* ── Input group ── */
.input-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.5rem;
    display: block;
}
.ref-input-wrap {
    position: relative;
    margin-bottom: 1.5rem;
}
.ref-input-wrap .input-prefix {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.35);
    font-size: 1rem;
    pointer-events: none;
}
#referencenumber {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    color: #fff;
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    transition: border-color .25s, box-shadow .25s, background .25s;
    outline: none;
}
#referencenumber::placeholder { color: rgba(255,255,255,0.28); letter-spacing: 0.04em; font-weight: 400; }
#referencenumber:focus {
    border-color: #16a34a;
    background: rgba(255,255,255,0.11);
    box-shadow: 0 0 0 3px rgba(22,163,74,0.2);
}

/* ── Buttons ── */
.btn-verify {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #16a34a, #0d9488);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity .25s, transform .2s, box-shadow .25s;
    box-shadow: 0 6px 20px rgba(22,163,74,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.btn-verify:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
}
.btn-verify:not(:disabled):hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(22,163,74,0.4);
}
.btn-home {
    width: 100%;
    padding: 0.82rem;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    color: rgba(255,255,255,0.7);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background .25s, border-color .25s, color .25s;
}
.btn-home:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}

/* ── Footer ── */
footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.03em;
}

/* ── Modal ── */
.modal-content {
    background: #1a2e3b;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
}
.modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 1.5rem;
}
.modal-title { font-weight: 700; font-size: 1rem; color: #fff; }
.btn-close { filter: invert(1) brightness(0.6); }
.modal-body { padding: 1.5rem; }
.modal-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1rem 1.5rem;
    gap: 0.5rem;
}
.modal-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 0.4rem;
    display: block;
}
.modal-label .req { color: #f87171; }
.form-control, .form-select {
    background: rgba(255,255,255,0.07) !important;
    border: 1.5px solid rgba(255,255,255,0.12) !important;
    border-radius: 10px !important;
    color: #e2e8f0 !important;
    font-family: 'Inter', sans-serif;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22,163,74,0.18) !important;
    background: rgba(255,255,255,0.1) !important;
}
.form-control::placeholder { color: rgba(255,255,255,0.25) !important; }
.form-control:disabled, .form-control[readonly] {
    opacity: 0.5;
    cursor: not-allowed;
}
.form-select option { background: #1a2e3b; color: #e2e8f0; }
textarea.form-control { resize: none; }
.modal .btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.55rem 1.3rem;
}
.modal .btn-success {
    background: linear-gradient(135deg, #16a34a, #0d9488);
    border: none;
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.55rem 1.3rem;
}
.modal .btn-secondary {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #e2e8f0;
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.55rem 1.3rem;
}
.modal .btn-secondary:hover { background: rgba(255,255,255,0.14); }
.form-field-row { margin-bottom: 1rem; }
.section-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.07);
    margin: 1.25rem 0;
}
.file-hint { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin-left: 0.3rem; }
.req-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #f87171;
    background: rgba(239,68,68,0.12);
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 0.3rem;
    vertical-align: middle;
}
.uppercase-input { text-transform: uppercase; }