/* ==========================================================================
   ASEEE Verification Portal — same "Engineering Futurism" language as the
   aseee.us website skin (aseee-theme.css / aseee-auth.css).
   ========================================================================== */
:root {
  --bg: #030817; --surface: rgba(14, 28, 64, .55); --surface-solid: #0b1838;
  --line: rgba(120, 170, 255, .16); --line-strong: rgba(120, 170, 255, .32);
  --text: #e9efff; --muted: #9db0d6; --dim: #61739a;
  --blue: #2f7bff; --cyan: #3ee0ff; --red: #ff4d57; --green: #2bff9e; --amber: #ffb648;
  --grad: linear-gradient(120deg, #2f7bff 0%, #3ee0ff 100%);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .85), 0 0 0 1px var(--line);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body.axv { font: 16px/1.6 var(--font); color: var(--text); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; }
.axv a { color: var(--cyan); text-decoration: none; transition: color .2s; }
.axv a:hover { color: #fff; }
.axv ::selection { background: rgba(62, 224, 255, .35); color: #fff; }
.axv :focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.axv h1, .axv h2, .axv h3 { font-family: var(--display); letter-spacing: -.01em; margin: 0; }
.axv p { margin: 0; color: var(--muted); }
.axv-mono { font-family: var(--mono); letter-spacing: .05em; }
.axv-ico { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -.125em; }
.axv-container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- background (original video kept, tinted) ---------- */
.axv-video { position: fixed; inset: 0; z-index: -4; overflow: hidden; }
.axv-video video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; transform: translate(-50%, -50%); object-fit: cover; }
.axv-veil { position: fixed; inset: 0; z-index: -3; background:
  radial-gradient(1000px 600px at 50% 0%, rgba(47, 123, 255, .18), transparent 60%),
  radial-gradient(800px 500px at 0% 100%, rgba(172, 47, 47, .14), transparent 60%),
  linear-gradient(180deg, rgba(3, 8, 23, .70) 0%, rgba(3, 8, 23, .86) 60%, rgba(3, 8, 23, .96) 100%); }
.axv-grid { position: fixed; inset: 0; z-index: -2; opacity: .35; pointer-events: none;
  background-image: linear-gradient(rgba(62, 224, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(62, 224, 255, .08) 1px, transparent 1px); background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 70%); animation: axvGrid 24s linear infinite; }
@keyframes axvGrid { to { background-position: 60px 60px; } }
.axv-scanline { position: fixed; left: 0; right: 0; height: 140px; top: -140px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(62, 224, 255, .06), transparent); animation: axvScanline 8s linear infinite; }
@keyframes axvScanline { to { top: 110%; } }

/* ---------- header ---------- */
.axv-header { position: sticky; top: 0; z-index: 50; background: rgba(4, 10, 28, .55); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--line); }
.axv-header__inner { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.axv-header__beam { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), var(--red), transparent); background-size: 200% 100%; animation: axvBeam 6s linear infinite; opacity: .8; }
@keyframes axvBeam { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.axv-brand { display: flex; align-items: center; gap: 12px; color: var(--text) !important; }
.axv-brand__emblem { width: 44px; height: 44px; filter: drop-shadow(0 0 14px rgba(62, 224, 255, .35)); transition: transform .6s var(--ease); }
.axv-brand:hover .axv-brand__emblem { transform: rotate(-12deg) scale(1.05); }
.axv-brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.axv-brand__text strong { font-family: var(--display); font-size: 22px; letter-spacing: .12em; }
.axv-brand__text small { font-size: 9.5px; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.axv-header__right { display: flex; align-items: center; gap: 14px; }
.axv-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.axv-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(43, 255, 158, .7); animation: axvPulse 2s infinite; display: inline-block; flex: none; }
@keyframes axvPulse { 70% { box-shadow: 0 0 0 10px rgba(43, 255, 158, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 255, 158, 0); } }

/* ---------- buttons ---------- */
.axv-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer; overflow: hidden; isolation: isolate;
  font: 600 15px var(--display); letter-spacing: .01em; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.axv-btn .axv-ico { transition: transform .25s var(--ease); }
.axv-btn:hover .axv-ico--arrow { transform: translateX(4px); }
.axv-btn--primary { color: #fff !important; background: var(--grad); box-shadow: 0 10px 30px -10px rgba(47, 123, 255, .8); }
.axv-btn--primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.axv-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(62, 224, 255, .9); }
.axv-btn--primary:hover::after { transform: translateX(120%); }
.axv-btn--ghost { color: var(--text) !important; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-strong); backdrop-filter: blur(8px); }
.axv-btn--ghost:hover { background: rgba(62, 224, 255, .08); box-shadow: inset 0 0 0 1px var(--cyan); transform: translateY(-2px); }
.axv-btn--sm { height: 40px; padding: 0 16px; font-size: 13.5px; }
.axv-btn__spin { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: axvSpin .8s linear infinite; }
.axv-btn.is-loading .axv-btn__txt { display: none; }
.axv-btn.is-loading .axv-btn__spin { display: block; }
@keyframes axvSpin { to { transform: rotate(360deg); } }

/* ---------- glass ---------- */
.axv-glass { position: relative; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.axv-glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(62, 224, 255, .55), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; }
.axv-glass:hover::before { opacity: 1; }
.axv-corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--cyan); pointer-events: none; z-index: 2; }
.axv-corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.axv-corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

/* ---------- hero ---------- */
.axv-main { flex: 1; padding: 64px 0 40px; }
.axv-hero { text-align: center; max-width: 780px; margin: 0 auto 40px; animation: axvIn .8s var(--ease) both; }
.axv-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.axv-eyebrow::before, .axv-eyebrow::after { content: ""; width: 26px; height: 1px; background: var(--grad); }
.axv-hero h1 { margin: 18px 0 14px; font-weight: 700; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff 30%, #b9cdf5); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.axv-hero p { font-size: 18px; color: #c0cde9; max-width: 600px; margin: 0 auto; }
@keyframes axvIn { from { opacity: 0; transform: translateY(24px); } }

/* ---------- console (tabs + form) ---------- */
.axv-console { max-width: 880px; margin: 0 auto; overflow: hidden; animation: axvIn .9s .1s var(--ease) both;
  background: linear-gradient(160deg, rgba(14, 30, 70, .72), rgba(4, 10, 28, .80));
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(62, 224, 255, .26), 0 10px 50px -10px rgba(47, 123, 255, .4); }
.axv-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.axv-tabs a { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 10px; font: 600 15px var(--display); color: var(--muted) !important; transition: .2s; }
.axv-tabs a + a { border-left: 1px solid var(--line); }
.axv-tabs a:hover { color: #fff !important; background: rgba(255, 255, 255, .02); }
.axv-tabs a.is-active { color: #fff !important; background: rgba(62, 224, 255, .06); }
.axv-tabs a.is-active::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 2px; background: var(--grad); box-shadow: 0 0 14px var(--cyan); }
.axv-tabs a .axv-ico { font-size: 18px; }
.axv-tabs a.is-active .axv-ico { color: var(--cyan); }
.axv-form { position: relative; z-index: 1; padding: 36px 40px 34px; }
.axv-label { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--cyan); text-transform: uppercase; margin-bottom: 12px; }
.axv-label span:last-child { color: var(--dim); }
.axv-input { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 22px; border-radius: 999px; background: rgba(2, 6, 18, .72); box-shadow: inset 0 0 0 1px var(--line-strong); transition: box-shadow .2s; }
.axv-input:focus-within { box-shadow: inset 0 0 0 1px var(--cyan), 0 0 0 4px rgba(62, 224, 255, .12), 0 0 40px -10px var(--cyan); }
.axv-input > .axv-ico { color: var(--cyan); font-size: 22px; }
.axv-input input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: transparent; color: #fff; font: 500 21px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.axv-input input:focus, .axv-input input:focus-visible { outline: none; box-shadow: none; border-radius: 0; }
.axv-input input::placeholder { color: #4f6086; letter-spacing: .08em; text-transform: none; font-size: 17px; }
.axv-input input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 1000px #050c22 inset; caret-color: #fff; }
.axv-hint { display: flex; gap: 10px; align-items: flex-start; margin: 16px 4px 0; font-size: 13.5px; color: var(--muted); }
.axv-hint .axv-ico { color: var(--cyan); margin-top: 3px; }
.axv-alert { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; font-size: 14px; color: #ffd5d7; background: rgba(255, 77, 87, .12); box-shadow: inset 0 0 0 1px rgba(255, 77, 87, .45); animation: axvShake .45s; }
.axv-alert .axv-ico { color: var(--red); margin-top: 3px; }
.axv-alert strong { color: #fff; font-family: var(--mono); letter-spacing: .06em; }
@keyframes axvShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.axv-sweep { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.axv-sweep span { position: absolute; left: -30%; top: 0; bottom: 0; width: 30%; background: linear-gradient(90deg, transparent, rgba(62, 224, 255, .08), transparent); animation: axvSweep 5s linear infinite; }
@keyframes axvSweep { to { left: 130%; } }
.axv-console.is-scanning .axv-sweep span { animation-duration: .9s; background: linear-gradient(90deg, transparent, rgba(62, 224, 255, .25), transparent); }

/* ---------- feature row ---------- */
.axv-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 880px; margin: 56px auto 0; }
.axv-why__item { padding: 24px; animation: axvIn .9s var(--ease) both; animation-delay: var(--d, 0ms); }
.axv-why__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; color: var(--cyan); background: rgba(62, 224, 255, .08); box-shadow: inset 0 0 0 1px rgba(62, 224, 255, .3); margin-bottom: 16px; }
.axv-why__item h3 { font-size: 17px; margin-bottom: 6px; }
.axv-why__item p { font-size: 14px; }

/* ---------- result ---------- */
.axv-result { max-width: 880px; margin: 0 auto; display: flex; gap: 30px; padding: 36px 38px; align-items: flex-start; animation: axvIn .8s var(--ease) both; }
.axv-result__badge { flex: none; position: relative; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; }
.axv-result__badge .axv-ico { color: #fff; }
.axv-result__badge::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px dashed currentColor; opacity: .55; animation: axvSpin 12s linear infinite; }
.axv-result--ok { box-shadow: var(--shadow), 0 0 0 1px rgba(43, 255, 158, .35); }
.axv-result--ok .axv-result__badge { color: var(--green); background: radial-gradient(circle at 30% 30%, #39ffb0, #0c8f5c); box-shadow: 0 0 40px -6px rgba(43, 255, 158, .7); }
.axv-result--exp { box-shadow: var(--shadow), 0 0 0 1px rgba(255, 182, 72, .35); }
.axv-result--exp .axv-result__badge { color: var(--amber); background: radial-gradient(circle at 30% 30%, #ffc56b, #b5701a); box-shadow: 0 0 40px -6px rgba(255, 182, 72, .6); }
.axv-result--none { box-shadow: var(--shadow), 0 0 0 1px rgba(255, 77, 87, .35); }
.axv-result--none .axv-result__badge { color: var(--red); background: radial-gradient(circle at 30% 30%, #ff6b73, #a3242b); box-shadow: 0 0 40px -6px rgba(255, 77, 87, .6); }
.axv-result__body { flex: 1; min-width: 0; }
.axv-result__state { font-size: 12px; letter-spacing: .2em; }
.axv-result--ok .axv-result__state { color: var(--green); }
.axv-result--exp .axv-result__state { color: var(--amber); }
.axv-result--none .axv-result__state { color: #ff6b73; }
.axv-result h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; margin: 8px 0 8px; overflow-wrap: anywhere; }
.axv-result__lead { font-size: 17px; color: #c3cfea !important; margin-bottom: 22px !important; }
.axv-result__lead strong { color: #fff; }
.axv-grid-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 0 0 20px; }
.axv-grid-dl div { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.axv-grid-dl dt { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .14em; }
.axv-grid-dl dd { margin: 4px 0 0; color: #fff; font-size: 14px; overflow-wrap: anywhere; }
.axv-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; margin-bottom: 20px; font-size: 14px; color: #ffe2b8; background: rgba(255, 182, 72, .1); box-shadow: inset 0 0 0 1px rgba(255, 182, 72, .35); }
.axv-note .axv-ico { color: var(--amber); margin-top: 3px; }
.axv-result__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.axv-stamp { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--dim); }
.axv-stamp .axv-ico { color: var(--cyan); }

/* document preview */
.axv-doc { position: relative; flex: none; width: 230px; display: block; border-radius: 14px; overflow: hidden; background: #0b1838; box-shadow: 0 0 0 1px var(--line-strong), 0 20px 50px -20px rgba(0, 0, 0, .9); cursor: zoom-in; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.axv-doc img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.axv-doc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4, 10, 28, .9)); }
.axv-doc__cap { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.axv-doc__cap .axv-ico { color: var(--cyan); font-size: 15px; }
.axv-doc:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 0 0 1px var(--cyan), 0 26px 60px -20px rgba(62, 224, 255, .5); }

/* lightbox */
.axv-lightbox { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 24px; background: rgba(2, 6, 18, .9); backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transition: .3s; }
.axv-lightbox.is-open { opacity: 1; visibility: visible; }
.axv-lightbox img { max-width: min(1000px, 100%); max-height: 86vh; border-radius: 12px; box-shadow: 0 0 0 1px var(--line-strong), 0 40px 100px -20px #000; transform: scale(.96); transition: transform .3s var(--ease); user-select: none; }
.axv-lightbox.is-open img { transform: none; }
.axv-lightbox button { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; font-size: 18px; cursor: pointer; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-strong); }
.axv-lightbox button:hover { box-shadow: inset 0 0 0 1px var(--cyan); color: var(--cyan); }

/* toast (replaces the old sweet-alert context-menu popup) */
.axv-toast { position: fixed; left: 50%; bottom: 28px; z-index: 4000; display: flex; gap: 10px; align-items: center; padding: 12px 18px; border-radius: 999px; font-size: 14px; color: #fff;
  background: rgba(11, 24, 56, .95); box-shadow: 0 0 0 1px rgba(255, 182, 72, .45), 0 20px 50px -10px #000; transform: translate(-50%, 20px); opacity: 0; visibility: hidden; transition: .3s var(--ease); }
.axv-toast .axv-ico { color: var(--amber); }
.axv-toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- footer ---------- */
.axv-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(2, 6, 18, .4), rgba(2, 6, 17, .9)); }
.axv-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.axv-footer p { font-size: 13px; color: var(--dim); }
.axv-footer p a { color: var(--muted); }
.axv-footer__sig { font-size: 11px; color: var(--dim); text-transform: uppercase; display: inline-flex; gap: 14px; align-items: center; }
.axv-footer__sig a { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .axv-why { grid-template-columns: 1fr; }
  .axv-result { flex-direction: column; padding: 28px 22px; gap: 22px; }
  .axv-doc { width: 100%; max-width: 420px; }
}
@media (max-width: 640px) {
  .axv-container { padding: 0 16px; }
  .axv-main { padding-top: 40px; }
  .axv-status span:last-child { display: none; }
  .axv-header__right .axv-btn { display: none; }
  .axv-tabs a { flex-direction: column; gap: 6px; font-size: 13px; padding: 14px 6px; }
  .axv-form { padding: 26px 18px; }
  .axv-input { flex-wrap: wrap; border-radius: 20px; padding: 10px 10px 10px 16px; }
  .axv-input input { font-size: 18px; }
  .axv-input .axv-btn { width: 100%; }
  .axv-hero p { font-size: 16px; }
  .axv-footer__inner { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
