:root { --bg:#0c1712; --card:#122019; --line:#1e6b3c; --green:#2fe86a; --green-d:#16a34a; --ink:#eef5f1; --muted:#9fb0a8; --gold:#eab308; }
/* The `hidden` attribute must win over any display rule below
   (.overlay uses display:flex, #frame/#imgView use display:block) —
   without this, a hidden popup/iframe stays visible forever. */
[hidden] { display:none !important; }
* { box-sizing:border-box; }
body { margin:0; font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; background:var(--bg); color:var(--ink); line-height:1.5; }
a { color:var(--green); }
code { background:#0a120d; border:1px solid var(--line); padding:1px 6px; border-radius:4px; }
.top { display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border-bottom:1px solid var(--line); }
.brand { font-weight:800; font-size:19px; }
.brand .logo { color:var(--green); }
.brand .tag { font-weight:400; font-size:13px; color:var(--muted); margin-left:8px; }
.announce { margin:14px 18px 0; padding:10px 14px; border-radius:10px; background:linear-gradient(90deg,#dc2626,#f97316,#eab308,#16a34a,#2563eb,#9333ea); color:#fff; font-weight:600; }
main { max-width:980px; margin:0 auto; padding:16px 18px 30px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px; margin-top:14px; }
label { display:block; font-size:13px; color:var(--muted); margin-bottom:4px; }
input, select { width:100%; padding:11px 12px; border-radius:10px; border:1px solid var(--line); background:#0a120d; color:var(--ink); font-size:15px; margin-top:4px; }
input:focus, select:focus { outline:2px solid var(--green-d); }
.row { display:flex; gap:10px; margin-top:12px; align-items:flex-end; flex-wrap:wrap; }
.row .grow { flex:1; min-width:220px; }
.btns { margin-top:16px; }
.btn { padding:11px 16px; border-radius:10px; border:1px solid var(--line); background:#0a120d; color:var(--ink); font-size:14px; font-weight:700; cursor:pointer; }
.btn:hover { border-color:var(--green); }
.btn.primary { background:linear-gradient(180deg,#33d873,#16a34a); color:#04231a; border:0; }
.btn.gold { background:#eab308; color:#231a04; border:0; }
.btn.small { padding:7px 12px; font-size:13px; }
.btn:disabled { opacity:.55; cursor:default; }
.loc-info { margin-top:10px; font-size:13px; color:var(--muted); }
.loc-info b { color:var(--ink); }
.chips { margin-top:14px; font-size:13px; color:var(--muted); }
.chips button { background:none; border:1px solid var(--line); color:var(--green); border-radius:20px; padding:5px 10px; margin:2px; cursor:pointer; font-size:12px; }
.status { margin-top:14px; font-size:13px; background:#0a120d; border:1px solid var(--line); border-radius:10px; padding:10px 12px; color:var(--muted); }
.status b { color:var(--ink); }
.error { margin-top:14px; background:#2a1214; border:1px solid #7f1d1d; color:#fecaca; border-radius:10px; padding:12px; }
.viewer { padding:0; overflow:hidden; }
.viewer-bar { display:flex; justify-content:space-between; padding:10px 14px; border-bottom:1px solid var(--line); font-size:13px; }
#frame { width:100%; height:72vh; border:0; background:#fff; display:block; }
#imgView { max-width:100%; display:block; margin:0 auto; }
#fileView { padding:20px; text-align:center; }
.overlay { position:fixed; inset:0; background:rgba(4,10,8,.88); display:flex; align-items:center; justify-content:center; z-index:10; padding:16px; }
.unlock-card { max-width:420px; width:100%; text-align:center; }
.unlock-card input { text-align:center; }
.unlock-card .btn { width:100%; margin-top:12px; }
.err { color:#f87171; font-size:13px; }
.coupon { border:1px solid var(--line); border-radius:10px; padding:12px; margin-top:10px; }
.coupon .code { font-size:20px; font-weight:800; letter-spacing:1px; color:var(--green); }
.coupon h3 { margin:0 0 4px; font-size:15px; }
.coupon p { margin:4px 0; color:var(--muted); font-size:13px; }
.coupon a { font-size:13px; }
h2 { margin:0 0 6px; font-size:17px; }
footer { max-width:980px; margin:0 auto; padding:0 18px 30px; color:var(--muted); font-size:12.5px; }
@media (max-width:640px){ .brand .tag{display:none} #frame{height:60vh} }
