:root{
  --bg:#0b1220;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.09);
  --text:#e8eefc;
  --muted: rgba(232,238,252,0.75);
  --border: rgba(255,255,255,0.12);
  --shadow: 0 12px 40px rgba(0,0,0,0.35);
  --radius: 16px;
  --maxw: 1100px;
  --ok: rgba(22,255,200,0.18);
  --bad: rgba(255,72,72,0.18);
}
*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(72,99,255,0.22), transparent 60%),
    radial-gradient(900px 600px at 85% 25%, rgba(22,255,200,0.10), transparent 55%),
    var(--bg);
  color: var(--text);
}
.container{ width:100%; max-width: var(--maxw); margin:0 auto; padding:20px; }
.topbar{
  position: sticky; top:0;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(11,18,32,0.9), rgba(11,18,32,0.55));
  border-bottom:1px solid var(--border);
  z-index:10;
}
.brand{ display:flex; gap:14px; align-items:center; }
.logo{
  width:44px; height:44px; display:grid; place-items:center;
  border-radius:12px;
  background: rgba(255,255,255,0.08);
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  font-size:20px;
}
h1{ margin:0; font-size:18px; font-weight:800; letter-spacing:0.2px; }
.subtitle{ margin:2px 0 0; color: var(--muted); font-size:13px; }

.grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; margin-top:18px; }
@media(max-width:850px){ .grid{ grid-template-columns:repeat(2,1fr);} }
@media(max-width:520px){ .grid{ grid-template-columns:1fr;} }

.card{
  display:block;
  text-decoration:none;
  color: inherit;
  padding:18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(255,255,255,0.03));
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  min-height: 120px;
}
.card:hover{
  transform: translateY(-3px);
  background: linear-gradient(180deg, var(--panel2), rgba(255,255,255,0.04));
  border-color: rgba(255,255,255,0.22);
}
.card-icon{ font-size: 28px; margin-bottom:10px; }
.card-title{ font-weight:800; font-size:16px; margin-bottom:6px; }
.card-desc{ color: var(--muted); font-size: 13px; line-height:1.35; }

.page{
  margin-top:18px;
  background: linear-gradient(180deg, var(--panel), rgba(255,255,255,0.03));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}
.page h2{ margin:0 0 10px 0; font-size:18px; }
.page p{ margin:0; color: var(--muted); }

.actions{ margin-top:14px; display:flex; gap:10px; flex-wrap:wrap; }
.btn{
  appearance:none;
  border:1px solid var(--border);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  padding:10px 12px;
  border-radius: 12px;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
}

.form{ margin-top:14px; display:grid; gap:12px; }
.row{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
@media(max-width:700px){ .row{ grid-template-columns:1fr; } }

.field{ display:flex; flex-direction:column; gap:6px; }
label{ font-size: 13px; color: var(--muted); }
input, select{
  border:1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding:10px 12px;
  border-radius: 12px;
  outline: none;
}
input:focus, select:focus{ border-color: rgba(255,255,255,0.30); }

.help{ font-size: 12px; color: var(--muted); opacity: 0.9; }

.result{
  margin-top: 12px;
  border:1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.04);
}
.result.ok{ background: var(--ok); }
.result.bad{ background: var(--bad); }
pre{
  margin:0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12.5px;
}

.footer{
  border-top:1px solid var(--border);
  margin-top:22px;
  background: rgba(11,18,32,0.35);
}
.footer small{ color: var(--muted); }
