/* ============================================================
 * sir.gg · visual system copied from vex.rip/swag
 *
 * Pitch-black nebula (four fixed parallax layers), shooting-star
 * meteors, floating liquid-glass top pill, Metal Mania display
 * font for the big title, Space Grotesk for body, JetBrains Mono
 * for kicker/mono labels. Pure white on black — no colored tint.
 * ============================================================ */
:root{
    --text:     #eaf1ff;
    --muted:    #a0a8b5;
    --muted-2:  #6b7280;
    --line:     rgba(255,255,255,.14);
    --line-2:   rgba(255,255,255,.22);
    --ok:       #7dff5c;
    --warn:     #ffbe63;
    --err:      #ff6a6a;
    --radius:   14px;
    --radius-lg:22px;
    --font-sans: 'Space Grotesk', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --font-anton:'Anton', 'Bebas Neue', sans-serif;
    --font-disp: 'Metal Mania', 'Anton', serif;
}
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html,body{
    min-height:100vh;
    background:#000;
    color: var(--text);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a{ color: inherit; }
button{ font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select{ font: inherit; color: inherit; background: none; border: none; outline: none; }
::selection{ background: rgba(255,255,255,.25); color:#000; }

/* ============ backdrop · four fixed parallax layers ============ */
.o{ position: fixed; inset: 0; pointer-events: none; }
.o1{
    background:
        radial-gradient(1200px 800px at 50% 15%, rgba(20, 24, 46, .5), transparent 65%),
        radial-gradient(1000px 700px at 15% 90%, rgba(10, 12, 30, .55), transparent 60%),
        #000;
    z-index: 0;
}
.o2{
    background: url('/img/space/stars.png') repeat;
    background-size: 1500px auto;
    z-index: 1; opacity: .55;
    animation: nebScroll 240s linear infinite;
    mix-blend-mode: screen;
}
/* nebula + cloud overlays retired at user's request — the star
   field alone reads cleaner on this site. Keep the CSS around so
   the o3/o4 divs in the markup don't blow up. */
.o3, .o4{ display: none; }
@keyframes nebScroll{     to{ background-position: -3000px 0; } }
@keyframes nebScrollBack{ to{ background-position:  3000px 0; } }

/* ============ shooting stars ============ */
.shooter{
    position: fixed;
    width: 200px; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(200,230,255,.9) 60%, #fff);
    filter: drop-shadow(0 0 6px rgba(180,220,255,.9)) drop-shadow(0 0 14px rgba(120,180,255,.6));
    opacity: 0;
    transform-origin: right center;
    transform: rotate(18deg) translateX(0);
    animation: shoot 7s linear infinite;
    pointer-events: none;
    border-radius: 999px;
    z-index: 4;
}
.shooter::after{
    content:'';
    position:absolute; right:-4px; top:50%;
    width:8px; height:8px;
    border-radius:50%;
    background: radial-gradient(circle, #fff 0%, rgba(200,230,255,.9) 40%, transparent 70%);
    transform: translateY(-50%);
    box-shadow: 0 0 14px rgba(200,230,255,.95), 0 0 30px rgba(140,190,255,.7);
}
.shooter.s1{ top:  8%; left: -20%; animation-delay: 1.5s;  animation-duration: 6.5s; }
.shooter.s2{ top: 34%; left: -20%; animation-delay: 4.2s;  animation-duration: 7.2s; }
.shooter.s3{ top: 62%; left: -20%; animation-delay: 8.1s;  animation-duration: 8s;   }
.shooter.s4{ top: 20%; left: -20%; animation-delay: 12.4s; animation-duration: 6.8s; }
.shooter.s5{ top: 76%; left: -20%; animation-delay: 16s;   animation-duration: 7.5s; }
@keyframes shoot{
    0%   { opacity: 0; transform: rotate(18deg) translateX(0); }
    2%   { opacity: 0; }
    4%   { opacity: 1; }
    18%  { opacity: 1; }
    22%  { opacity: 0; transform: rotate(18deg) translateX(140vw); }
    100% { opacity: 0; transform: rotate(18deg) translateX(140vw); }
}

/* ============ top nav · liquid-glass pill, sticks on scroll ============ */
.tnav{
    position: sticky; top: 14px; z-index: 50;
    display: flex; align-items: center; gap: 14px;
    max-width: 1180px; margin: 14px auto 0;
    padding: 10px 12px 10px 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.02) 55%, rgba(0,0,0,.28) 100%);
    -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.30),
        inset 0 -1px 0 rgba(0,0,0,.35),
        0 20px 50px rgba(0,0,0,.55);
    overflow: hidden;
    transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}
.tnav.scrolled{
    background: linear-gradient(180deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.04) 55%, rgba(0,0,0,.55) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.4),
        inset 0 -1px 0 rgba(0,0,0,.4),
        0 26px 60px rgba(0,0,0,.65);
}
.tnav::before{
    content:''; position:absolute; top:0; left:14%; right:14%; height:1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
    pointer-events:none;
}
.tnav .brand{
    display: inline-flex; align-items: center; gap: 10px;
    color: #ffffff;
    text-decoration: none;
    line-height: 0;
}
.tnav .brand img{
    height: 34px; width: auto;
    display: block;
    filter: drop-shadow(0 0 8px rgba(255,255,255,.35)) drop-shadow(0 0 22px rgba(255,255,255,.15));
    transition: transform .18s ease, filter .18s ease;
}
.tnav .brand:hover img{ transform: scale(1.03); filter: drop-shadow(0 0 12px rgba(255,255,255,.55)) drop-shadow(0 0 30px rgba(255,255,255,.28)); }
.tnav .grow{ flex: 1; }
.tnav .nav-link{
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 999px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #d0d5df; text-decoration: none;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    transition: color .18s, background .18s, border-color .18s;
}
.tnav .nav-link:hover{ color:#fff; background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.28); }
.tnav .nav-link.primary{
    background: linear-gradient(180deg, #fff, #eaf2ff 55%, #d5e4ff);
    color: #0a1220;
    border-color: #ffffff;
    box-shadow: 0 0 22px rgba(220,235,255,.55), inset 0 1px 0 rgba(255,255,255,.9);
    text-shadow: none;
}

/* ============ layout ============ */
main.wrap{ position: relative; z-index: 10; max-width: 1180px; margin: 0 auto; padding: 60px 26px 120px; }

/* ============ hero ============ */
.hero{ text-align: center; padding: 20px 0 40px; }
.hero h1{
    font-family: var(--font-disp);
    font-weight: 400;
    font-size: clamp(120px, 18vw, 280px);
    line-height: .9;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow:
        0 0 8px  rgba(255,255,255,.6),
        0 0 20px rgba(255,255,255,.35);
    margin: 0 auto 14px;
    display: inline-block;
}
.hero .lede{
    font-family: var(--font-sans);
    font-size: 19px;
    line-height: 1.55;
    color: #c0c0c0;
    max-width: 920px;
    margin: 12px auto 0;
    text-align: center;
}
.hero .lede b{ color:#fff; }
.hero .lede .mono{ font-family: var(--font-mono); font-size: 15px; }

/* ============ big search bar ============ */
.searchbox{
    display: flex; align-items: center; gap: 12px;
    max-width: 720px; margin: 30px auto 0;
    padding: 10px 10px 10px 20px;
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02) 55%, rgba(0,0,0,.20));
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.28),
        inset 0 -1px 0 rgba(0,0,0,.30),
        0 20px 50px rgba(0,0,0,.45);
}
.searchbox .prefix{ font-family: var(--font-anton); font-size: 26px; color: #a0a8b5; letter-spacing: .04em; text-transform: uppercase; }
.searchbox input{ flex: 1; font-size: 18px; font-family: var(--font-sans); color: #fff; padding: 10px 0; }
.searchbox input::placeholder{ color: var(--muted-2); }
.searchbox .go{
    padding: 12px 22px; border-radius: 999px;
    background: linear-gradient(180deg, #fff, #eaf2ff 55%, #d5e4ff);
    color: #0a1220;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    box-shadow:
        0 0 0 3px rgba(255,255,255,.18),
        0 8px 20px rgba(255,255,255,.35),
        0 0 30px rgba(255,255,255,.6),
        inset 0 1px 0 rgba(255,255,255,.9);
    transition: transform .15s, box-shadow .15s;
    border: 1px solid #ffffff;
}
.searchbox .go:hover{ transform: translateY(-1px); }

/* ============ stat strip · no boxes, hairline dividers ============ */
.stats{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0;
    margin: 30px 0 46px;
    padding: 22px 4px;
    position: relative;
}
.stats::before{
    content:''; position:absolute; inset:0;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01) 60%, transparent);
    -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
            mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    pointer-events: none;
    border-radius: 22px;
}
.stat{ position: relative; padding: 8px 22px; background: none; border: none; box-shadow: none; text-align: left; }
.stat + .stat::before{
    content:''; position:absolute; left:0; top:14%; bottom:14%; width:1px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,.18) 30%, rgba(255,255,255,.18) 70%, transparent);
}
.stat .k{ font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.stat .v{
    font-family: var(--font-anton);
    font-size: clamp(44px, 5.6vw, 68px);
    letter-spacing: -.02em;
    line-height: .9;
    background: linear-gradient(180deg, #ffffff 0%, #c8c8c8 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    text-shadow: 0 0 28px rgba(255,255,255,.28), 0 0 60px rgba(255,255,255,.14);
    filter: drop-shadow(0 4px 20px rgba(255,255,255,.18));
}

/* ============ section head ============ */
.section-head{ display: flex; align-items: baseline; gap: 12px; margin: 32px 0 14px; padding-left: 4px; }
.section-head h2{
    font-family: var(--font-anton);
    font-weight: 400;
    font-size: 26px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 0 18px rgba(255,255,255,.22);
}
.section-head .kicker{
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .3em;
    color: var(--muted);
    text-transform: uppercase;
}
.section-head .bar{
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,.32), rgba(255,255,255,.05));
}

/* ============ list rows · transparent, hairline separators ============ */
.list{ padding: 6px 22px; position: relative; }
.list .row{
    position: relative;
    display: grid; align-items: center; gap: 12px;
    padding: 14px 0;
    text-decoration: none;
    color: inherit;
}
.list .row + .row::before{
    content:''; position: absolute; top: -1px; left: 8%; right: 8%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
    pointer-events: none;
}
.list .row .slug{ font-family: var(--font-mono); font-size: 15px; color: #ffffff; text-shadow: 0 0 12px rgba(255,255,255,.15); }
.list .row .slug .prefix{ color: var(--muted); }
.list .row .target{ color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .row .hits{ font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; text-align: right; }
.list .row .actions{ display: inline-flex; gap: 6px; }
.list .row .actions button{
    padding: 6px 12px; border-radius: 999px;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
    font-size: 10px; font-family: var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: #d0d5df;
    transition: background .15s, color .15s, border-color .15s;
}
.list .row .actions button:hover{ background: rgba(255,255,255,.12); color:#fff; border-color: rgba(255,255,255,.28); }
.list .row .actions .del{ color:#ff9d9d; border-color: rgba(255,110,110,.35); }
.list .row .actions .del:hover{ background: rgba(255,110,110,.15); color:#fff; }
.list .empty{ text-align: center; padding: 22px 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); }

/* ============ form · glass card ============ */
.card{
    padding: 30px 32px;
    background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.015) 55%, rgba(0,0,0,.08) 100%);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 22px;
    -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.28),
        inset 0 -1px 0 rgba(0,0,0,.30),
        0 24px 46px rgba(0,0,0,.5);
    position: relative;
    overflow: hidden;
}
.card::before{
    content:''; position:absolute; top:0; left:8%; right:8%; height:1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
    pointer-events:none;
}
.card + .card{ margin-top: 18px; }
.card .kicker{ font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.form{ display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.field{ display: flex; flex-direction: column; gap: 6px; }
.field label{ font-family: var(--font-mono); font-size: 10px; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; }
.field input, .field select, .field textarea{
    padding: 12px 14px; border-radius: 12px;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff; font-size: 15px;
    transition: border-color .15s, background .15s;
}
.field input:focus{ border-color: rgba(255,255,255,.55); background: rgba(0,0,0,.5); }
.field .hint{ font-size: 11.5px; color: var(--muted-2); }
.form-error{ font-size: 13px; color: var(--err); background: rgba(255,90,90,.08); border: 1px solid rgba(255,90,90,.35); padding: 10px 14px; border-radius: 10px; }
.form-ok   { font-size: 13px; color: var(--ok);  background: rgba(80,220,120,.08); border: 1px solid rgba(80,220,120,.35); padding: 10px 14px; border-radius: 10px; }

/* ============ button ============ */
.btn{
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #eaf2ff 55%, #d5e4ff);
    color: #0a1220;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    border: 1px solid #ffffff;
    box-shadow:
        0 0 0 3px rgba(255,255,255,.18),
        0 8px 20px rgba(255,255,255,.35),
        0 0 30px rgba(255,255,255,.6),
        inset 0 1px 0 rgba(255,255,255,.9);
    transition: transform .15s;
}
.btn:hover{ transform: translateY(-1px); }
.btn.ghost{ background: rgba(255,255,255,.04); color: #fff; border: 1px solid rgba(255,255,255,.16); box-shadow: none; text-shadow: 0 0 10px rgba(255,255,255,.25); }
.btn.ghost:hover{ background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.35); }
.btn.danger{ background: rgba(255,110,110,.10); color:#ff9d9d; border:1px solid rgba(255,110,110,.4); box-shadow: none; }
.btn.danger:hover{ background: rgba(255,110,110,.20); color:#fff; }

/* ============ pill ============ */
.pill{
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: #d0d5df;
}
.pill.ok  { color:#7dff5c; border-color: rgba(125,255,92,.45); background: rgba(125,255,92,.08); }
.pill.err { color: var(--err); border-color: rgba(255,106,106,.5); background: rgba(255,106,106,.10); }

/* ============ auth (centered) ============ */
.auth-shell{ min-height: 100vh; display: grid; place-items: center; padding: 40px 24px; position: relative; z-index: 10; }
.auth-shell > div{ width: 100%; max-width: 440px; }
.auth-shell .auth-title{ text-align: center; margin-bottom: 24px; }
.auth-shell .auth-title .brand{ font-family: var(--font-disp); font-size: 68px; text-transform: uppercase; color:#fff; text-shadow: 0 0 10px rgba(255,255,255,.55), 0 0 22px rgba(255,255,255,.3); }
.auth-shell .auth-title p{ color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; margin-top: 8px; }
.auth-shell .foot-links{ text-align: center; margin-top: 20px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.auth-shell .foot-links a{ color: #fff; }

/* ============ footer ============ */
footer.foot{ position: relative; z-index: 10; padding: 30px 24px 60px; text-align: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted-2); }
footer.foot a{ color: var(--muted); text-decoration: none; }
footer.foot a:hover{ color: #fff; }
.mono{ font-family: var(--font-mono); }
.hidden{ display: none !important; }

/* ============ auth-gated pages: hide until check completes ============
 * body.gate-check keeps everything invisible until an inline script
 * decides where to send you. Prevents the flash-of-content the user
 * was seeing on dashboard/admin. */
body.gate-check{ visibility: hidden; }
body.gate-ready{ visibility: visible; }

/* ============ entrance animations ============
 * .rise fades in from below. Apply .d1..d6 for stagger. */
.rise{ opacity: 0; transform: translateY(14px); animation: rise .55s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise{ to{ opacity: 1; transform: translateY(0); } }
.rise.d1{ animation-delay: .05s; }
.rise.d2{ animation-delay: .15s; }
.rise.d3{ animation-delay: .25s; }
.rise.d4{ animation-delay: .35s; }
.rise.d5{ animation-delay: .45s; }
.rise.d6{ animation-delay: .55s; }

/* soft float applied to the SIR.GG title.
   IMPORTANT: the h1 also carries .rise for the entrance stagger.
   Rule ordering: .hero h1 (0,1,1) beats .rise (0,1,0), so if we
   only put `animation: titleFloat` here it wipes out `animation: rise`
   and the title stays permanently at opacity:0. Same trap that
   bit vex.rip. Fix: composite both animations in one shorthand
   AND force opacity:1 so any leftover .rise start-state can't
   strand the title invisible. */
@keyframes titleFloat{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-6px);} }
.hero h1{
    opacity: 1;
    animation: titleFloat 6s ease-in-out infinite;
}
.hero h1.rise{
    opacity: 1 !important;
    transform: none !important;
    animation: titleFloat 6s ease-in-out infinite;
}

/* pill hover animation shared by nav-link + go button */
.tnav .nav-link, .btn, .searchbox .go{ transition: transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease; }
.tnav .nav-link:active, .btn:active, .searchbox .go:active{ transform: translateY(0) scale(.98); }
.list .row{ transition: background .18s ease, transform .18s ease; border-radius: 10px; }
.list .row:hover{ background: rgba(255,255,255,.03); }

@media (prefers-reduced-motion: reduce){
    .rise, .hero h1{ animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ============ responsive ============ */
@media (max-width: 640px){
    .tnav{ top: 12px; margin: 0 12px; padding: 8px 8px 8px 14px; }
    .tnav .brand{ font-size: 22px; }
    .hero h1{ font-size: 96px; }
    .card{ padding: 24px 22px; }
}
@media (prefers-reduced-motion: reduce){
    .o2, .o3, .o4, .shooter{ animation: none !important; }
    .shooter{ display: none; }
}
