:root{
  --bg:#0b0f16;
  --card:#121a26;
  --muted:#8aa0b7;
  --text:#e9f0f7;
  --accent:#d4af37;
  --danger:#ff5c7a;
  --ok:#2ee59d;
  --border:#223044;
  --shadow: 0 12px 40px rgba(0,0,0,.35);
  --radius:18px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 600px at 15% 0%, rgba(212,175,55,.15), transparent 60%),
    radial-gradient(900px 600px at 85% 15%, rgba(46,229,157,.10), transparent 60%),
    var(--bg);
}
a{color:inherit}
.container{
  max-width: 860px;
  padding: 18px;
  margin: 0 auto;
}
.topbar{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:14px 0;
}
.brand{
  display:flex;align-items:center;gap:10px;font-weight:700;letter-spacing:.3px
}
.badge{
  font-size:12px;
  padding:4px 10px;border:1px solid var(--border);border-radius:999px;color:var(--muted)
}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.h1{font-size:28px;margin:4px 0 6px}
.p{color:var(--muted);line-height:1.45;margin:0 0 12px}
.grid{display:grid;gap:14px}
@media(min-width: 740px){ .grid.two{grid-template-columns:1.2fr .8fr} }
label{display:block;color:var(--muted);font-size:13px;margin:12px 0 6px}
input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea, select{
  width:100%;
  padding:14px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  outline:none;
  background: rgba(10,14,22,.6);
  color: var(--text);
  font-size:16px;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="number"]:focus, textarea:focus, select:focus{
  border-color: rgba(212,175,55,.6);
  box-shadow: 0 0 0 4px rgba(212,175,55,.12);
}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  border-radius:14px;
  padding:12px 16px;
  border:1px solid var(--border);
  cursor:pointer;
  font-weight:700;
  text-decoration:none;
  background: rgba(255,255,255,.03);
}
.btn.primary{
  background: linear-gradient(180deg, rgba(212,175,55,.95), rgba(168,132,20,.95));
  border-color: rgba(212,175,55,.65);
  color: #121212;
}
.btn.danger{
  background: linear-gradient(180deg, rgba(255,92,122,.95), rgba(176,35,65,.95));
  border-color: rgba(255,92,122,.65);
  color: #121212;
}
.btn.ghost{background:transparent}
.btn:active{transform:translateY(1px)}
.kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:12px;color:var(--muted);
  border:1px solid var(--border);
  border-radius:10px;padding:3px 8px;
}
.alert{
  border-radius:14px;
  padding:12px 14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.alert.ok{border-color: rgba(46,229,157,.35); background: rgba(46,229,157,.08)}
.alert.err{border-color: rgba(255,92,122,.35); background: rgba(255,92,122,.08)}
.hr{height:1px;background:var(--border);margin:14px 0}
.small{font-size:13px;color:var(--muted)}
.table{
  width:100%;
  border-collapse:collapse;
}
.table th, .table td{
  text-align:left;
  padding:10px 10px;
  border-bottom:1px solid var(--border);
  vertical-align:top;
}
.table th{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.08em}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;}
.right{text-align:right}
.footer{margin-top:18px;color:var(--muted);font-size:12px}
.qrbox{
  display:flex;align-items:center;justify-content:center;
  border:1px dashed var(--border);
  border-radius:18px;
  min-height:260px;
  background: rgba(0,0,0,.12);
}
