:root {
  --bg: #04050a;
  --panel: #0a0d18;
  --panel-2: #101421;
  --line: rgba(255,255,255,.14);
  --line-strong: rgba(255,255,255,.26);
  --text: #f4f7ff;
  --muted: #9aa3b8;
  --dim: #5f6785;
  --cyan: #7df9ff;
  --blue: #5f78bd;
  --violet: #9d7dff;
  --gold: #e7cf8a;
  --green: #7cffb2;
  --red: #ff7d8b;
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.55;
  background:
    radial-gradient(circle at 20% -10%, rgba(95,120,189,.38), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(125,249,255,.16), transparent 28%),
    linear-gradient(180deg, #04050a 0%, #070916 48%, #04050a 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 82%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .35;
  background: linear-gradient(180deg, transparent 0 48%, rgba(125,249,255,.07) 49%, transparent 51%);
  background-size: 100% 7px;
  animation: scan 9s linear infinite;
}
.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(4,5,10,.96);
  transition: opacity .35s ease, visibility .35s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader__card {
  width: min(560px, 92vw);
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16,20,33,.96), rgba(8,10,18,.96));
  box-shadow: 0 0 50px rgba(95,120,189,.22), inset 0 0 0 1px rgba(255,255,255,.04);
}
.loader__orb {
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 2px solid rgba(125,249,255,.22);
  border-top-color: var(--cyan);
  box-shadow: 0 0 28px rgba(125,249,255,.35);
  animation: ledspin 1s linear infinite;
}
.loader__bar { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.loader__bar span { display: block; width: 38%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); animation: load 1.15s ease-in-out infinite; }
.shell { min-height: 100vh; }
.topline {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(4,5,10,.78);
  backdrop-filter: blur(18px);
}
.brand, .navlinks a, .footer a { color: var(--text); text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.02em; }
.brand__mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(125,249,255,.45); border-radius: 12px; color: var(--cyan); background: rgba(125,249,255,.08); animation: ledpulse 2.4s ease-in-out infinite; }
.navlinks { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.navlinks a { padding: 9px 12px; border: 1px solid transparent; border-radius: 999px; color: var(--muted); font-size: 13px; }
.navlinks a:hover { color: var(--cyan); border-color: rgba(125,249,255,.28); background: rgba(125,249,255,.06); }
.hero, .section, .footer { width: min(1220px, calc(100vw - 32px)); margin: 0 auto; }
.hero { padding: 48px 0 28px; }
.hero__workspace, .panel, .card, .stat, .output-card, .filter-box, input, select, textarea {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16,20,33,.86), rgba(8,10,18,.88));
  box-shadow: 0 24px 70px rgba(0,0,0,.36), inset 0 0 0 1px rgba(255,255,255,.035);
}
.hero__workspace { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr); overflow: hidden; border-radius: 26px; }
.editor-pane, .output-pane { min-height: 540px; padding: clamp(24px, 4vw, 46px); position: relative; }
.editor-pane { border-right: 1px solid var(--line); }
.editor-pane::before, .output-pane::before, .panel::before, .card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue), transparent);
  opacity: .75;
}
.output-pane { background: rgba(255,255,255,.018); }
.pane-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 34px; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid rgba(125,249,255,.24); border-radius: 999px; color: var(--cyan); background: rgba(125,249,255,.06); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; animation: ledpulse 1.8s ease-in-out infinite; }
.eyebrow { margin: 0 0 12px; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { margin: 0 0 16px; color: var(--text); line-height: 1.08; letter-spacing: -.05em; }
h1 { max-width: 820px; font-size: clamp(42px, 7vw, 86px); text-shadow: 0 0 28px rgba(125,249,255,.12); }
h2 { font-size: clamp(30px, 4.2vw, 56px); }
h3 { font-size: 21px; }
.lead { max-width: 690px; margin: 0 0 24px; color: var(--muted); font-size: 18px; }
code { color: var(--gold); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin: 0 8px 8px 0; padding: 12px 18px; border: 1px solid rgba(125,249,255,.42); border-radius: 999px; color: #031017; background: linear-gradient(90deg, var(--cyan), #c8fffb); font-weight: 900; text-decoration: none; cursor: pointer; animation: btnBreathe 3s ease-in-out infinite; }
.ghost-button { color: var(--cyan); background: rgba(125,249,255,.06); }
.status-card { display: grid; gap: 10px; margin-top: 32px; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.035); }
.status-row span { color: var(--muted); }
.status-row strong { color: var(--green); text-shadow: 0 0 12px rgba(124,255,178,.35); }
.output-card { height: 100%; padding: 28px; border-radius: 20px; }
.output-card code { display: block; white-space: normal; color: var(--gold); font-size: 15px; line-height: 1.9; }
.section { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 18px; }
.section-head p { max-width: 560px; margin: 0; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card, .panel { position: relative; overflow: hidden; border-radius: 22px; padding: 24px; }
.card p, .panel p, .stat p { margin: 0; color: var(--muted); }
.card__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border: 1px solid rgba(125,249,255,.32); border-radius: 14px; color: var(--cyan); background: rgba(125,249,255,.06); animation: iconGlow 2.8s ease-in-out infinite; }
.report-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 16px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-height: 560px; overflow: auto; padding-right: 4px; }
.stat { border-radius: 18px; padding: 18px; box-shadow: none; }
.stat strong { display: block; color: var(--gold); font-size: 34px; line-height: 1; }
.stat p { margin-top: 9px; font-size: 13px; }
.logs ul, .achievement-list, .filter-box ul { list-style: none; margin: 0; padding: 0; }
.logs ul { max-height: 560px; overflow: auto; padding-right: 4px; }
.logs li, .achievement-list li, .filter-box li { margin-bottom: 9px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; color: var(--muted); background: rgba(255,255,255,.035); }
.logs time { display: inline-block; width: 86px; color: var(--cyan); }
.logs b { display: inline-block; min-width: 150px; margin-right: 10px; color: var(--gold); font-weight: 700; }
.achievement-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.achievement-list li { margin: 0; color: var(--text); }
.achievement-list li::before { content: "▹"; margin-right: 10px; color: var(--cyan); animation: blink 1.2s step-end infinite; }
.donate { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; }
.donate form { display: grid; gap: 14px; }
.donate label { display: grid; gap: 8px; color: var(--gold); font-weight: 700; }
input, select, textarea { width: 100%; min-height: 46px; padding: 11px 13px; border-radius: 14px; color: var(--text); font: inherit; outline: none; }
input:focus, select:focus, textarea:focus { border-color: rgba(125,249,255,.55); box-shadow: 0 0 0 3px rgba(125,249,255,.08); }
textarea { min-height: 138px; resize: vertical; }
.form-note { font-size: 13px; }
.filter-box { grid-column: 1 / -1; border-color: rgba(231,207,138,.32); border-radius: 20px; padding: 20px; background: linear-gradient(180deg, rgba(231,207,138,.08), rgba(8,10,18,.88)); }
.filter-box h3 { color: var(--gold); }
.filter-box li { border-color: rgba(231,207,138,.18); }
.footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer a { color: var(--cyan); }
.result { margin-top: 48px; }
@keyframes ledpulse { 0%,100% { opacity: 1; } 50% { opacity: .42; } }
@keyframes scan { to { background-position: 0 220px; } }
@keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes btnBreathe { 0%,100% { box-shadow: 0 0 16px rgba(255,255,255,.05); } 50% { box-shadow: 0 0 30px rgba(255,255,255,.16); } }
@keyframes iconGlow { 0%,100% { filter: drop-shadow(0 0 0 transparent); } 50% { filter: drop-shadow(0 0 6px currentColor); } }
@keyframes ledspin { to { transform: rotate(360deg); } }
@keyframes load { 0% { transform: translateX(-110%); } 100% { transform: translateX(270%); } }
@media (max-width: 960px) { .hero__workspace, .report-grid, .donate { grid-template-columns: 1fr; } .editor-pane { border-right: 0; border-bottom: 1px solid var(--line); } .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .topline { position: static; align-items: flex-start; } .navlinks { display: none; } .editor-pane, .output-pane { min-height: auto; padding: 22px; } .cards, .stats, .achievement-list { grid-template-columns: 1fr; } .section-head { display: block; } .logs b { display: block; margin: 4px 0; } }
