/* ==========================================================================
   ILEES Verify — modern American institutional theme
   Navy + brand red, Public Sans. No framework dependency.
   ========================================================================== */
:root {
    --navy-950: #071226;
    --navy-900: #0A1A33;
    --navy-800: #0F2547;
    --navy-700: #163463;
    --navy-100: #E6ECF5;
    --red-600: #D7263D;
    --red-700: #B71C31;
    --red-50: #FDECEE;
    --green-700: #157F3D;
    --green-50: #E8F6EE;
    --amber-700: #A15C07;
    --amber-50: #FEF5E6;
    --ink: #0F172A;
    --body: #334155;
    --muted: #64748B;
    --line: #E2E8F0;
    --bg: #F4F6FA;
    --white: #FFFFFF;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .08);
    --shadow-lg: 0 24px 60px rgba(7, 18, 38, .28);
    --font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid #F5A623; outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Official banner ---------- */
.official {
    background: var(--navy-950);
    color: #C9D3E3;
    font-size: 13px;
}
.official .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.official i { color: #fff; margin-right: 8px; }
.official .secure { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.official .secure i { color: #6EE7A1; margin: 0; }
@media (max-width: 720px) { .official .secure { display: none; } }

/* ---------- Header ---------- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 50;
}
.site-header::after {
    content: ""; display: block; height: 4px;
    background: linear-gradient(90deg, var(--red-600) 0 72%, var(--navy-800) 72% 100%);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: 8px;
    color: var(--body); font-weight: 600; font-size: 15px;
}
.nav a i { font-size: 14px; color: var(--muted); }
.nav a:hover { background: var(--bg); text-decoration: none; color: var(--ink); }
.nav a.active { color: var(--navy-800); background: var(--navy-100); }
.nav a.active i { color: var(--red-600); }
@media (max-width: 860px) {
    .site-header { position: static; }
    .site-header .container { flex-direction: column; align-items: stretch; gap: 0; padding-top: 12px; }
    .brand { align-self: center; }
    .brand img { height: 44px; }
    .nav { justify-content: space-between; padding: 10px 0; gap: 2px; }
    .nav a { flex: 1; justify-content: center; padding: 8px 6px; font-size: 14px; white-space: nowrap; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: #DCE4F0;
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(215, 38, 61, .35), transparent 60%),
        linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
    overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    pointer-events: none;
}
.hero .container {
    position: relative;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
    padding-top: 72px; padding-bottom: 88px;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
    padding: 6px 12px; border-radius: 999px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-600); box-shadow: 0 0 0 4px rgba(215,38,61,.25); }
.hero h1 { color: #fff; font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; margin: 20px 0 18px; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: #FF8796; }
.hero .lead { font-size: 18px; max-width: 540px; color: #C3CEDF; }
.hero .who { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero .who span {
    font-size: 13px; font-weight: 600; color: #E6ECF5;
    padding: 6px 12px; border-radius: 6px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.hero .who i { color: #FF8796; margin-right: 6px; }
@media (max-width: 960px) {
    .hero .container { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; padding-bottom: 64px; }
}

/* ---------- Search card ---------- */
.search-card {
    background: var(--white); color: var(--body);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: 32px;
    border-top: 4px solid var(--red-600);
}
.search-card h2 { font-size: 22px; font-weight: 700; }
.search-card .sub { color: var(--muted); font-size: 15px; margin-top: 6px; }
.field { margin-top: 24px; }
.field label { display: block; font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.input-wrap { position: relative; }
.input-wrap > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input {
    width: 100%; height: 56px;
    padding: 0 16px 0 46px;
    font-family: var(--mono); font-size: 20px; font-weight: 600; letter-spacing: .18em;
    color: var(--ink); background: #FBFCFE;
    border: 2px solid var(--line); border-radius: 10px;
    transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #A9B3C3; letter-spacing: .18em; font-weight: 500; }
.input:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(22, 52, 99, .12); background: #fff; }
.input.is-invalid { border-color: var(--red-600); box-shadow: 0 0 0 4px rgba(215, 38, 61, .1); }
.hint { font-size: 13px; color: var(--muted); margin-top: 8px; display: flex; justify-content: space-between; gap: 12px; }
.hint .count { font-family: var(--mono); }
.alert {
    display: flex; gap: 12px; align-items: flex-start;
    margin-top: 16px; padding: 12px 14px; border-radius: 10px; font-size: 14px;
}
.alert i { margin-top: 3px; }
.alert-error { background: var(--red-50); color: #8E1426; border: 1px solid #F7C6CD; }
.alert strong { display: block; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 52px; padding: 0 24px; border-radius: 10px; border: 0;
    font-family: var(--font); font-size: 16px; font-weight: 700; cursor: pointer;
    transition: background .15s, transform .05s, box-shadow .15s;
    text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red-600); color: #fff; box-shadow: 0 6px 16px rgba(215, 38, 61, .28); }
.btn-primary:hover { background: var(--red-700); }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-900); }
.btn-ghost { background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--bg); }
.btn-block { width: 100%; margin-top: 20px; }
.btn[disabled] { opacity: .75; cursor: progress; }
.search-card .fine { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; gap: 10px; }
.search-card .fine i { color: var(--green-700); margin-top: 3px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head .kicker { color: var(--red-600); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin-top: 8px; }
.section-head p { margin-top: 10px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; box-shadow: var(--shadow-sm);
}
.step .num {
    width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
    background: var(--navy-100); color: var(--navy-800); font-weight: 800;
}
.step h3 { font-size: 18px; margin-top: 16px; }
.step p { color: var(--muted); font-size: 15px; margin-top: 6px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .section { padding: 48px 0; } }

/* ---------- Result page ---------- */
.result-top { background: var(--white); border-bottom: 1px solid var(--line); }
.result-top .container { padding-top: 28px; padding-bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs i { font-size: 11px; margin: 0 8px; }
.result-top h1 { font-size: 26px; font-weight: 800; margin-top: 4px; }

.status {
    display: flex; align-items: center; gap: 18px;
    padding: 20px 24px; border-radius: var(--radius); margin-bottom: 24px;
    border: 1px solid; background: var(--white);
}
.status .seal {
    flex: none; width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center; font-size: 24px; color: #fff;
}
.status h2 { font-size: 20px; font-weight: 800; }
.status p { font-size: 15px; margin-top: 2px; }
.status-valid { border-color: #B7E2C6; background: var(--green-50); }
.status-valid .seal { background: var(--green-700); box-shadow: 0 0 0 6px rgba(21,127,61,.15); }
.status-valid h2 { color: #0E5A2B; }
.status-expired { border-color: #F6D9A8; background: var(--amber-50); }
.status-expired .seal { background: var(--amber-700); box-shadow: 0 0 0 6px rgba(161,92,7,.15); }
.status-expired h2 { color: #7A4405; }
.status-invalid { border-color: #F7C6CD; background: var(--red-50); }
.status-invalid .seal { background: var(--red-600); box-shadow: 0 0 0 6px rgba(215,38,61,.15); }
.status-invalid h2 { color: #8E1426; }
.status .stamp { margin-left: auto; width: 64px; height: 64px; object-fit: contain; }
@media (max-width: 640px) { .status { flex-wrap: wrap; } .status .stamp { display: none; } }

.result-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .result-grid { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-head { padding: 24px 28px; border-bottom: 1px solid var(--line); display: flex; gap: 16px; align-items: center; }
.avatar {
    flex: none; width: 56px; height: 56px; border-radius: 12px;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
    color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px;
}
.card-head .label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red-600); }
.card-head h2 { font-size: 22px; font-weight: 800; margin-top: 2px; word-break: break-word; }
.card-head .meta { color: var(--muted); font-size: 15px; margin-top: 2px; }
.card-note { padding: 16px 28px; background: #FAFBFD; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }

.dl { margin: 0; padding: 8px 0; }
.dl .row { display: grid; grid-template-columns: 210px 1fr; gap: 16px; padding: 14px 28px; border-bottom: 1px solid #EEF2F7; }
.dl .row:last-child { border-bottom: 0; }
.dl dt { color: var(--muted); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.dl dt i { width: 18px; text-align: center; color: var(--navy-700); opacity: .8; }
.dl dd { margin: 0; color: var(--ink); font-weight: 600; word-break: break-word; }
.dl dd.mono { font-family: var(--mono); letter-spacing: .06em; }
@media (max-width: 640px) {
    .dl .row { grid-template-columns: 1fr; gap: 2px; padding: 12px 20px; }
    .card-head, .card-note { padding-left: 20px; padding-right: 20px; }
}

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pill-valid { background: var(--green-50); color: var(--green-700); }
.pill-expired { background: var(--amber-50); color: var(--amber-700); }

.preview .card-head { justify-content: space-between; }
.preview .card-head h3 { font-size: 16px; font-weight: 700; }
.preview .frame {
    margin: 20px; padding: 10px; background: #F1F4F9; border-radius: 10px; border: 1px solid var(--line);
    user-select: none; -webkit-user-select: none;
}
.preview .frame img { width: 100%; height: auto; border-radius: 4px; box-shadow: var(--shadow-sm); pointer-events: none; }
.preview .cap { padding: 0 20px 20px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.empty { text-align: center; padding: 56px 28px; }
.empty .icon {
    width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 20px;
    display: grid; place-items: center; font-size: 36px; color: var(--red-600); background: var(--red-50);
    box-shadow: 0 0 0 10px rgba(215,38,61,.06);
}
.empty h2 { font-size: 24px; font-weight: 800; }
.empty p { color: var(--muted); max-width: 520px; margin: 10px auto 0; }
.empty ul { text-align: left; max-width: 440px; margin: 24px auto 0; padding: 0; list-style: none; }
.empty li { display: flex; gap: 10px; padding: 6px 0; font-size: 15px; }
.empty li i { color: var(--navy-700); margin-top: 5px; font-size: 12px; }
.empty .actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; background: var(--navy-950); color: #9FB0C8; font-size: 14px; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 48px 0 36px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: #C9D3E3; }
.site-footer a:hover { color: #fff; }
.site-footer .about { display: flex; gap: 14px; align-items: flex-start; }
.site-footer .about img { width: 40px; height: auto; flex: none; }
.site-footer .about strong { color: #fff; display: block; font-size: 15px; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 860px) { .site-footer .top { grid-template-columns: 1fr; gap: 24px; } }

@media (max-width: 420px) { .nav a i { display: none; } .nav a { font-size: 13.5px; } }

@media print {
    .official, .site-header, .site-footer, .actions { display: none !important; }
}
