* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    background: #010409;
    color: #c9d1d9;
    font-family: Inter, system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}
::selection { background: #164e63; color: #fff; }
.bg-grid {
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    mask-image: radial-gradient(circle at 50% 45%, black 40%, transparent 100%);
}
canvas { position: fixed; inset: 0; z-index: 1; opacity: 0.55; pointer-events: none; }
.layer { position: relative; z-index: 10; }
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.4rem 2rem;
    border-bottom: 1px solid rgba(48, 54, 61, 0.5);
    background: rgba(13, 17, 23, 0.55);
}
.brand {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.22em; color: #22d3ee;
}
.status {
    display: flex; align-items: center; gap: 0.55rem;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.65rem; letter-spacing: 0.18em;
    text-transform: uppercase; color: #8b949e;
}
.ping { position: relative; width: 8px; height: 8px; }
.ping i, .ping b { position: absolute; inset: 0; border-radius: 50%; background: #3fb950; }
.ping i { animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite; opacity: 0.75; }
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }
main { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem; }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -0.03em; color: #fff; margin-bottom: 2.2rem; }
.auth {
    display: inline-flex; align-items: center; padding: 0.55rem 1.15rem;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.78rem; letter-spacing: 0.08em; color: #22d3ee;
    background: rgba(13, 17, 23, 0.7); border: 1px solid rgba(48, 54, 61, 0.9);
    border-radius: 4px; cursor: pointer;
}
.auth .gt { margin-right: 0.5rem; opacity: 0.45; }
.auth:hover { border-color: #22d3ee; box-shadow: 0 0 18px rgba(6, 182, 212, 0.16); }
.auth:hover .gt { opacity: 1; }
footer {
    padding: 1.15rem; text-align: center;
    border-top: 1px solid rgba(48, 54, 61, 0.5);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.62rem; letter-spacing: 0.12em; color: #484f58;
}
.veil {
    display: none; position: fixed; inset: 0; z-index: 40;
    background: rgba(1, 4, 9, 0.78); align-items: center; justify-content: center; padding: 1rem;
}
.veil.open { display: flex; }
.panel {
    width: min(400px, 100%); background: #161b22; border: 1px solid #30363d;
    border-radius: 6px; padding: 1.4rem;
}
.panel h3 {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.78rem; letter-spacing: 0.16em; color: #3fb950;
    text-transform: uppercase; margin-bottom: 1rem;
}
label {
    display: block; font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: #484f58; margin-bottom: 0.4rem;
}
input {
    width: 100%; background: #0d1117; border: 1px solid #30363d; color: #c9d1d9;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.85rem; padding: 0.55rem 0.7rem; border-radius: 4px; margin-bottom: 0.95rem;
}
input:focus { outline: none; border-color: #58a6ff; }
.row-btns { display: flex; gap: 0.6rem; justify-content: flex-end; }
.btn {
    font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.72rem;
    letter-spacing: 0.08em; padding: 0.45rem 0.85rem; border-radius: 4px;
    cursor: pointer; border: 1px solid #30363d; background: transparent; color: #8b949e;
}
.btn.primary { background: #238636; border-color: #238636; color: #fff; }
.guru {
    display: none; font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.78rem; color: #f85149; margin-top: 0.9rem;
}
.guru.show { display: block; }
@media (max-width: 640px) { nav { padding: 1rem; } body { overflow: auto; } }
