@font-face {
    font-family: "beIN Normal";
    src: url("fonts/beIN-Normal.ttf?v=3") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "beIN Normal";
    src: url("fonts/beIN-Normal.ttf?v=3") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    --font-base: "beIN Normal", "Segoe UI", Tahoma, Geneva, Arial, sans-serif;
    --ink: #1a1720;
    --muted: #837b8c;
    --faint: #a79fb0;
    --line: #ebe6ef;
    --line-soft: #f2eef6;
    --paper: #ffffff;
    --canvas: #fbfaf8;
    --gold: #b3862f;
    --gold-bright: #cda44f;
    --gold-soft: #f6efdd;
    --gold-line: #e7d6ad;
    --success: #0d7d5b;
    --success-soft: #f3faf7;
    --success-line: #d3ead9;
    --danger: #a83a4c;
    --danger-soft: #fbf3f4;
    --danger-line: #edd6d9;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--canvas);
    background-image:
        linear-gradient(var(--line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 64px 64px;
    background-position: center top;
    font-family: var(--font-base);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.site-shell {
    width: min(640px, calc(100% - 40px));
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 0 32px;
}

.site-shell.shell-wide { width: min(920px, calc(100% - 40px)); }

/* ---------- Topbar ---------- */

.topbar {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-bottom: 34px;
}

.identity { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }

.logo-frame {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--gold-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(26, 23, 32, 0.04), 0 12px 26px rgba(26, 23, 32, 0.06);
}

.logo-frame img { width: 55px; height: 50px; object-fit: contain; }

.identity strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: normal;
    color: var(--ink);
}

.identity span {
    display: block;
    margin-top: 4px;
    color: var(--gold);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.gold-rule {
    width: 46px;
    height: 2px;
    border: 0;
    margin: 0;
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}

.secure-pill,
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.secure-pill svg,
.nav-link svg {
    width: 15px;
    height: 15px;
    display: block;
    flex: 0 0 15px;
    color: var(--gold);
}

a.secure-pill:hover,
.nav-link:hover {
    border-color: var(--gold-line);
    background: var(--gold-soft);
    color: var(--gold-deep, var(--gold));
}

/* ---------- Card ---------- */

.portal {
    width: 100%;
    position: relative;
    padding: 3px;
    border-radius: 27px;
    background: linear-gradient(155deg, var(--gold-bright), var(--gold-line) 32%, #ffffff 55%);
    box-shadow: 0 1px 2px rgba(26, 23, 32, 0.04), 0 30px 60px -20px rgba(26, 23, 32, 0.16);
}

.portal-inner {
    border-radius: 25px;
    background: var(--paper);
    padding: clamp(34px, 6vw, 56px) clamp(28px, 6vw, 56px);
}

.hero-panel {
    text-align: center;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 7px 14px;
    border: 1px solid var(--gold-line);
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
}

.eyebrow i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
}

h1 {
    margin: 0;
    font-size: clamp(26px, 4vw, 33px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: normal;
    color: var(--ink);
}

h1 span { color: var(--gold); }

.hero-copy {
    max-width: 420px;
    margin: 14px auto 0;
    color: var(--muted);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.85;
}

/* ---------- Form ---------- */

.panel-heading { margin-bottom: 26px; text-align: center; }

.step {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.step::before, .step::after {
    content: "";
    width: 14px;
    height: 1px;
    background: var(--gold-line);
}

.panel-heading h2 {
    margin: 10px 0 6px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: normal;
    color: var(--ink);
}

.panel-heading p { margin: 0; color: var(--muted); font-size: 13.5px; font-weight: 700; }

form { display: grid; gap: 18px; }

.label-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 8px; }
.label-row b { font-size: 13px; font-weight: 700; color: var(--ink); }
.label-row small { color: var(--faint); font-size: 11px; font-weight: 700; }

.field { position: relative; }

input {
    width: 100%;
    height: 54px;
    padding: 0 16px 0 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    background: #fdfdfc;
    color: var(--ink);
    direction: ltr;
    text-align: right;
    font: 400 17px/1 var(--font-base);
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.field svg {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    display: block;
    color: var(--faint);
    pointer-events: none;
    transition: color 150ms ease;
}

input::placeholder { color: #b7afbe; font-weight: 400; opacity: 1; }
input:hover { border-color: #ddd6e4; }
input:focus { border-color: var(--gold-bright); background: #fff; box-shadow: 0 0 0 4px rgba(179, 134, 47, 0.10); }
.field:focus-within svg { color: var(--gold); }

button {
    width: 100%;
    min-height: 56px;
    margin-top: 4px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 1px solid var(--ink);
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    cursor: pointer;
    font: 700 15px/1 var(--font-base);
    letter-spacing: 0.02em;
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, color 150ms ease;
}

button svg {
    width: 17px;
    height: 17px;
    display: block;
    flex: 0 0 17px;
    transform: scaleX(-1);
    transform-origin: center;
}
button:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(179, 134, 47, 0.28); }
button:active { transform: translateY(0); }
button:focus-visible { outline: 3px solid var(--gold-line); outline-offset: 3px; }

.trap {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Notices & result ---------- */

.notice {
    margin-top: 20px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    border: 1px solid var(--danger-line);
    border-radius: 12px;
    background: var(--danger-soft);
    color: #7d2536;
    animation: rise 220ms ease both;
}

.notice > span {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    font: 700 12px/1 Arial, sans-serif;
}

.notice p { margin: 1px 0 0; font-size: 12.5px; font-weight: 700; line-height: 1.7; }

.result {
    margin-top: 22px;
    padding: 22px;
    border: 1px solid var(--success-line);
    border-radius: 16px;
    background: var(--success-soft);
    animation: rise 260ms ease both;
}

.result.expired { border-color: var(--danger-line); background: var(--danger-soft); }

.status-line { display: flex; align-items: center; gap: 13px; }

.status-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--success);
    color: #fff;
    box-shadow: 0 8px 16px rgba(13, 125, 91, 0.22);
}

.status-icon svg { width: 20px; height: 20px; display: block; }
.expired .status-icon { background: var(--danger); box-shadow: 0 8px 16px rgba(168, 58, 76, 0.22); }

.status-label { margin: 0 0 2px; color: #6f8a80; font-size: 10.5px; font-weight: 700; letter-spacing: 0.01em; }
.expired .status-label { color: #9c7580; }
.result h3 { margin: 0; color: var(--success); font-size: 19px; font-weight: 700; letter-spacing: normal; }
.result.expired h3 { color: var(--danger); }

dl { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 18px 0 0; }
dl div {
    padding: 12px 13px;
    border: 1px solid rgba(20, 56, 43, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.75);
}
.result.expired dl div { border-color: rgba(89, 20, 36, 0.08); }
dl .wide { grid-column: 1 / -1; }
dt { color: var(--muted); font-size: 10px; font-weight: 700; }
dd { margin: 5px 0 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.ltr { direction: ltr; text-align: right; }

@keyframes rise {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Trust row & footer ---------- */

.trust-row {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.trust-row div {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--faint);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.25;
}

.trust-row svg {
    width: 15px;
    height: 15px;
    display: block;
    color: var(--gold);
    flex: 0 0 15px;
}

.privacy-note { display: none; }

.page-footer {
    width: 100%;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--faint);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.page-footer .brand-mark { color: var(--muted); font-weight: 700; }

/* ---------- Responsive ---------- */

@media (max-width: 540px) {
    .site-shell { width: 100%; padding: 34px 18px 26px; }
    .topbar { margin-bottom: 26px; }
    .portal-inner { padding: 30px 20px; }
    .hero-panel { padding-bottom: 22px; margin-bottom: 22px; }
    h1 { font-size: 24px; }
    .hero-copy { font-size: 13px; }
    .panel-heading h2 { font-size: 19px; }
    .label-row small { display: none; }
    input { height: 52px; }
    .trust-row {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
