/* FolmioX V4.9.8 — Nebula Gateway Ultimate + Scan Focus
   All artwork on the gate is generated with CSS; no third-party game artwork.
   Do not apply these styles to the existing authenticated Home Hero. */
.auth-gate:not(.hidden){padding:clamp(10px,2vw,28px);background:
  radial-gradient(ellipse at 54% 43%,rgba(112,72,243,.25),transparent 37%),
  radial-gradient(ellipse at 73% 23%,rgba(23,190,251,.17),transparent 36%),
  linear-gradient(110deg,rgba(3,9,26,.94),rgba(4,12,32,.9)),
  url('/assets/fx-nebula-gemini.jpg') center/cover fixed;}
.auth-gate .auth-gate-shell{position:relative;width:min(1400px,100%);max-height:min(94dvh,1020px);overflow:auto;border:1px solid rgba(105,174,255,.3);border-radius:32px;background:linear-gradient(110deg,rgba(4,13,34,.78),rgba(8,16,45,.72));box-shadow:0 40px 150px #020718c9,0 0 90px #594aff19;}
.auth-gate .auth-gate-top{border-bottom:1px solid #9baaff22;background:#060e245e;position:relative;z-index:2;}
.auth-gate .auth-gate-main.fx498-gateway-main{grid-template-columns:minmax(0,1.12fr) minmax(330px,.82fr);min-height:590px;align-items:center;gap:clamp(18px,3vw,54px);padding:20px clamp(24px,4vw,64px) 10px;}
.auth-gate .fx498-gateway-copy{position:relative;align-self:stretch;justify-content:center;border:0;padding:clamp(22px,3.5vw,54px) 0 55px;isolation:isolate;min-width:0;}
.auth-gate .fx498-gateway-copy h1{position:relative;z-index:3;font-size:clamp(42px,5.5vw,82px);font-weight:850;letter-spacing:-.055em;max-width:730px;line-height:1.04;text-shadow:0 8px 35px #020817b7;}
.auth-gate .fx498-gateway-copy h1 em{font-style:normal;background:linear-gradient(105deg,#3ff0fb,#77a4ff 54%,#b785ff);background-clip:text;-webkit-background-clip:text;color:transparent;}
.auth-gate .fx498-gateway-copy>p{position:relative;z-index:3;color:#cad8ee;font-size:clamp(16px,1.7vw,22px);margin-bottom:5px;}
.auth-gate .fx498-gateway-copy .auth-kicker{position:relative;z-index:3;letter-spacing:.23em;font-size:11px;}
.auth-gate .fx498-features{position:relative;z-index:3;display:flex;flex-wrap:wrap;gap:10px;margin-top:31px;}
.auth-gate .fx498-features>div{padding:10px 13px;border:1px solid #9dcaff36;background:linear-gradient(135deg,#0b2753cc,#1c1243aa);border-radius:14px;backdrop-filter:blur(12px);font-size:13px;font-weight:700;color:#f1f7ff;box-shadow:0 10px 35px #0209165c;}
.auth-gate .fx498-features i{background:linear-gradient(145deg,#13d7fd33,#864cff44);border:1px solid #57c9fb55;color:#7befff;}
.auth-gate .fx498-gateway-art{position:absolute;inset:0 -7% 0 13%;z-index:0;pointer-events:none;overflow:hidden;opacity:.72;}
.auth-gate .fx498-portal{position:absolute;left:32%;top:14%;width:65%;aspect-ratio:1;border-radius:50%;border:2px solid #65e6ff88;box-shadow:inset 0 0 92px #8545fa63,0 0 90px #426dff77,inset 0 0 8px #7ceeffaa;transform:rotate(-25deg) scaleY(.77);background:radial-gradient(circle at 50% 50%,#07173522 28%,#7646ff29 65%,transparent 72%);}
.auth-gate .fx498-portal:before,.auth-gate .fx498-portal:after{content:"";position:absolute;inset:9%;border-radius:50%;border:1px solid #c4bcff57;box-shadow:0 0 26px #866afc66;}
.auth-gate .fx498-portal:after{inset:24%;border-color:#6ac8ff70;}
.auth-gate .fx498-float-card{position:absolute;width:120px;aspect-ratio:2.5/3.5;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:20px;background:linear-gradient(145deg,#1d2e6bbd,#5c2b8ca8 58%,#0a224bc0);border-radius:12px;border:2px solid #9ee8ff7d;box-shadow:0 8px 38px #030517b0,inset 0 0 28px #ac87fd73;transform:rotate(-17deg);}
.auth-gate .fx498-float-card i{font-style:normal;font-size:58px;color:#abebff;text-shadow:0 0 30px #7a7dff;}
.auth-gate .fx498-float-card span{font-size:10px;letter-spacing:.16em;color:#d6f1ff;}
.auth-gate .fx498-float-card.one{top:19%;right:19%;transform:rotate(15deg)}
.auth-gate .fx498-float-card.two{bottom:15%;right:5%;transform:rotate(-18deg) scale(.75);opacity:.65}
.auth-gate .fx498-float-card.three{top:8%;right:1%;transform:rotate(9deg) scale(.58);opacity:.58}
.auth-gate .fx498-login-card{position:relative;z-index:2;width:100%;max-width:440px;justify-self:end;margin:20px 0;padding:clamp(24px,3vw,42px);border-radius:28px;background:linear-gradient(145deg,rgba(22,47,89,.92),rgba(11,23,52,.90));border-color:#87bfff60;box-shadow:inset 0 1px #c5e2ff29,0 23px 65px #0107148c,0 0 55px #3555cb35;backdrop-filter:blur(28px);text-align:center;}
.auth-gate .fx498-login-card .auth-mark-wrap{margin:0 auto 22px;width:94px;height:94px;}
.auth-gate .fx498-login-card h2{font-size:clamp(24px,2.5vw,32px);margin:0 0 12px;}
.auth-gate .fx498-login-card>p{margin-bottom:32px;}
.auth-gate .fx498-login-card .btn{min-height:58px;font-size:14px;margin-top:12px;}
.auth-gate .fx498-login-card .auth-primary{background:linear-gradient(115deg,#27d8ef,#5f9df9 56%,#9d5ff9);color:#031022;}
.auth-gate .fx498-login-card .auth-secondary{background:#0c1b3ac7;border:1px solid #79a7fa66;color:#e6f0ff;}
.auth-gate .fx498-login-card .auth-legal-links{margin-top:19px;display:flex;gap:10px;justify-content:center;flex-wrap:wrap;}
.auth-gate .fx498-login-card .auth-legal-links a{color:#9ddcf4;}
.auth-gate .fx498-gateway-footer{display:flex;justify-content:center;flex-wrap:wrap;gap:clamp(8px,1.4vw,22px);padding:8px 18px 20px;position:relative;z-index:2;}
.auth-gate .fx498-gateway-footer span{color:#8d9fcb;letter-spacing:.06em;font-size:10px;border-bottom:1px solid #87b6ff35;padding:5px 8px;}
@media(max-width:800px){.auth-gate .auth-gate-shell{max-height:94dvh;}.auth-gate .auth-gate-main.fx498-gateway-main{display:flex;flex-direction:column;padding:12px 18px 0;gap:2px;min-height:0;}.auth-gate .fx498-gateway-copy{width:100%;padding:25px 7px 8px;text-align:center;border:0;}.auth-gate .fx498-gateway-copy h1{font-size:clamp(30px,9vw,46px);line-height:1.08;margin:12px auto;}.auth-gate .fx498-gateway-copy>p{font-size:14px;}.auth-gate .fx498-features{justify-content:center;gap:6px;margin-top:17px;}.auth-gate .fx498-features>div{padding:7px;font-size:10px;}.auth-gate .fx498-features i{display:none;}.auth-gate .fx498-gateway-art{opacity:.25;inset:0;}.auth-gate .fx498-login-card{max-width:100%;padding:20px;margin:8px 0 12px;}.auth-gate .fx498-login-card .auth-mark-wrap{width:54px;height:54px;margin-bottom:8px;}.auth-gate .fx498-login-card h2{font-size:23px;}.auth-gate .fx498-login-card>p{font-size:13px;margin-bottom:8px;}.auth-gate .fx498-login-card .btn{min-height:48px;margin-top:8px;}.auth-gate .fx498-gateway-footer{padding-bottom:15px;gap:4px;}.auth-gate .fx498-gateway-footer span{font-size:9px;padding:3px 5px;}}
@media(max-height:690px) and (min-width:801px){.auth-gate .auth-gate-main.fx498-gateway-main{min-height:390px}.auth-gate .fx498-gateway-copy{padding:15px 0}.auth-gate .fx498-gateway-copy h1{font-size:52px}.auth-gate .fx498-login-card{padding:22px}.auth-gate .fx498-gateway-footer{padding-bottom:9px}}
@media(prefers-reduced-motion:no-preference){.auth-gate .fx498-portal{animation:fx498-breathe 13s ease-in-out infinite alternate}.auth-gate .fx498-float-card{animation:fx498-float 9s ease-in-out infinite alternate}@keyframes fx498-breathe{from{opacity:.65}to{opacity:1}}@keyframes fx498-float{from{translate:0 0}to{translate:0 -10px}}}
/* SCAN: preview fit concerns only what the user sees, never image bytes sent to Vision. */
.add-v460-single-grid .add-v460-drop{min-height:380px!important;height:min(540px,62vh)!important;max-height:540px!important;align-self:start;}
.add-v460-single-grid .add-v460-drop #singlePreview:not([hidden]){display:block!important;object-fit:contain!important;object-position:center!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;box-sizing:border-box;padding:24px 24px 74px!important;background:radial-gradient(circle at 50% 45%,#23357933,transparent 70%),#030c1a;}
.add-v460-single-grid .add-v460-drop #singlePreview[hidden],.single-preview-toolbar[hidden]{display:none!important}
.add-v460-single-grid .single-preview-toolbar{z-index:5;justify-content:center;flex-wrap:wrap;bottom:12px;}
.add-v460-single-grid .single-preview-toolbar .btn{font-size:12px;padding:10px 13px;background:#071a35df;color:#e6f6ff;border:1px solid #7aa3e055;}
#binderStage2{max-height:530px;min-height:250px;}
#binderStage2 img:not([hidden]){object-fit:contain!important;object-position:center!important;}
.fx498-scan-help{display:flex;gap:10px;flex-wrap:wrap;padding:10px 12px;margin:11px 0 6px;border:1px solid #5f98cf30;background:#081a33b7;border-radius:13px;}
.fx498-scan-help span{color:#c6d7ee;font-size:12px;padding:6px 9px;border-radius:9px;background:#1633576e;}
.fx498-retry-note{font-size:12px;color:#bad2e9;padding:7px 13px;margin:6px;line-height:1.5;}
.fx498-admin-timing{border:1px solid #8a74fe4d;border-radius:13px;margin:12px 0;background:#101936be;color:#d8dbff;}
.fx498-admin-timing[hidden]{display:none!important;}
.fx498-admin-timing summary{cursor:pointer;padding:12px 14px;font-size:12px;font-weight:800;}
.fx498-admin-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:8px;padding:12px;}
.fx498-admin-metrics>div{display:flex;flex-direction:column;gap:6px;border:1px solid #a1a7fc28;background:#080e24;padding:10px;border-radius:10px;}
.fx498-admin-metrics span{font-size:10px;color:#9dadcf}.fx498-admin-metrics strong{font-size:15px;color:#e5efff;font-variant-numeric:tabular-nums}
@media(max-width:700px){.add-v460-single-grid .add-v460-drop{height:min(420px,52vh)!important;min-height:240px!important;}.add-v460-single-grid .add-v460-drop #singlePreview:not([hidden]){padding:14px 12px 70px!important;}#binderStage2{max-height:420px;min-height:200px;}.fx498-scan-help span{font-size:11px}}
#fx498UseAsPage[hidden]{display:none!important;}
#fx498UseAsPage{border-color:#67cffa66;color:#a9e8ff;}
.binder-result-row .binder-row-retry{width:auto;min-width:76px;height:34px;font-size:11px;padding:0 8px;white-space:nowrap;font-weight:750;}
.binder-result-row:has(.binder-row-retry){grid-template-columns:32px 45px minmax(0,1fr) 48px 32px 80px;}
@media(max-width:600px){.binder-result-row:has(.binder-row-retry){grid-template-columns:24px 35px minmax(0,1fr) 37px 29px 72px;gap:4px;}.binder-result-row .binder-row-retry{min-width:68px;font-size:10px;padding:0 5px;}}
