:root{
  --bg:#061422;
  --panel:#0b2336;
  --panel2:rgba(11,35,54,.72);
  --stroke:rgba(255,255,255,.09);
  --text:#eaf4ff;
  --muted:#9ab7c9;
  --accent:#5bb8ff;
  --accent2:#2f7fd6;
  --danger:#ff5b6e;
  --ok:#3ddc97;
  --shadow: 0 14px 55px rgba(0,0,0,.35);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 16% -10%, rgba(91,184,255,.34), transparent 60%),
    radial-gradient(900px 550px at 110% 20%, rgba(47,127,214,.22), transparent 55%),
    var(--bg);
}

a{color:inherit;text-decoration:none}
.container{max-width:1100px;margin:0 auto;padding:18px}

.topbar{position:sticky;top:0;z-index:10;background:rgba(6,20,34,.6);backdrop-filter: blur(12px);border-bottom:1px solid rgba(255,255,255,.05)}
.topbar-inner{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:14px 18px}
.brand{display:flex;align-items:center;gap:12px}
.logo{
  width:42px;height:42px;border-radius:14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 12px 28px rgba(91,184,255,.22);
}
.brand-text{display:flex;flex-direction:column;line-height:1.15}
.brand-text strong{font-size:15px;letter-spacing:.2px}
.brand-text small{font-size:12px;color:var(--muted)}

.nav{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:flex-end}
.navlink{padding:10px 10px;border-radius:12px;color:var(--muted)}
.navlink:hover{color:var(--text);background:rgba(255,255,255,.05)}
.navlink.admin{color:#cfe9ff;border:1px solid rgba(91,184,255,.25);background:rgba(91,184,255,.08)}

.btn{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.btn:hover{transform: translateY(-1px)}
.btn.primary{border:none;background: linear-gradient(135deg, var(--accent), var(--accent2))}
.btn.danger{background:rgba(255,91,110,.16);border-color:rgba(255,91,110,.35)}
.btn.ghost{background:transparent}

.chip{
  font-size:12px;color:var(--muted);
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.16);
  padding:6px 10px;border-radius:999px;
  max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}

.badge{
  font-size:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  padding:6px 10px;border-radius:999px;color:var(--muted)
}
.badge.vip{border-color:rgba(91,184,255,.35);background:rgba(91,184,255,.10);color:#d8eeff}
.badge.ok{border-color:rgba(61,220,151,.35);background:rgba(61,220,151,.10);color:#c8f6e3}

.grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  margin-top:18px;
}
@media (max-width: 900px){ .grid{grid-template-columns:1fr} }

.card{
  border:1px solid var(--stroke);
  background: var(--panel2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
}
.card h1{margin:0 0 6px 0;font-size:22px}
.card h2{margin:0 0 10px 0;font-size:18px}
.muted{color:var(--muted)}
.small{font-size:12px;color:var(--muted)}
hr.sep{border:none;border-top:1px solid rgba(255,255,255,.08);margin:14px 0}

.field{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.field input, .field textarea, .field select{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
}
.field textarea{min-height:120px;resize:vertical}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.right{margin-left:auto}
.alert{
  margin-top:10px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.14);
}

.list{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.item{
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.14);
}
.item-title{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.price{font-size:18px;font-weight:800}

.codebox{
  margin-top:10px;
  padding:12px;
  border-radius:14px;
  border:1px dashed rgba(91,184,255,.35);
  background: rgba(91,184,255,.08);
  color:#d8eeff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space:pre-wrap;
  word-break:break-word;
}

.table{
  width:100%;
  border-collapse: collapse;
  margin-top:10px;
  overflow:hidden;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.08);
}
.table th, .table td{
  padding:10px;
  border-bottom:1px solid rgba(255,255,255,.06);
  font-size:13px;
}
.table th{color:#cfe9ff;text-align:left;background:rgba(255,255,255,.04)}
.footer{margin-top:26px;border-top:1px solid rgba(255,255,255,.05);background:rgba(6,20,34,.45)}
.footer-inner{display:flex;justify-content:space-between;gap:12px;padding:16px 18px}
