:root {
  --bg: #050a1a;
  --card: #0e162b;
  --muted: #7b8bab;
  --text: #e8edf7;
  --accent: #7cf0ff;
  --accent-2: #ff8bd1;
  --danger: #ff4d6d;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, rgba(124, 240, 255, 0.08), transparent 28%),
              radial-gradient(circle at 80% 0%, rgba(255, 139, 209, 0.12), transparent 30%),
              linear-gradient(135deg, #050a1a 0%, #090f24 60%, #050a1a 100%);
}

* { box-sizing: border-box; }
body { margin: 0; background: transparent; }

.page {
  min-height: 100vh;
  padding: 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}

.brand { display: flex; align-items: center; gap: 12px; }
.logo-dot {
  width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 30px rgba(124, 240, 255, 0.4);
}
.brand-text .title { display: block; font-weight: 700; font-size: 18px; }
.brand-text .subtitle { display: block; font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }

.top-actions { display: flex; gap: 10px; align-items: center; }
.top-actions button, .top-actions select { border-radius: 12px; border: 1px solid var(--border); }

main { margin-top: 20px; }
.panel { margin-top: 16px; }

.auth { display: flex; justify-content: center; }
.auth-card {
  width: min(420px, 100%);
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  box-shadow: var(--shadow);
}
.auth-card h2 { margin: 0 0 6px; }
.muted { color: var(--muted); margin: 0 0 14px; }

form { display: flex; flex-direction: column; gap: 12px; }
label { font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
input {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}
button {
  cursor: pointer;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #050a1a;
  font-weight: 700;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}
button:hover { transform: translateY(-1px); box-shadow: 0 10px 25px rgba(0,0,0,0.25); }
button:disabled { opacity: 0.6; cursor: not-allowed; }
.ghost { background: rgba(255,255,255,0.04); color: var(--text); border: 1px solid var(--border); }
.ghost.danger { border-color: rgba(255,77,109,0.4); color: var(--danger); }
.pill { padding: 8px 12px; background: rgba(255,255,255,0.02); color: var(--text); }

.grid.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.grid.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  box-shadow: var(--shadow);
}
.card .label { color: var(--muted); font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase; }
.card .value { font-size: 30px; font-weight: 700; margin: 6px 0; }
.card .meta { color: var(--muted); font-size: 13px; }

.table-card table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.table-card th, .table-card td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.table-card th { text-align: left; color: var(--muted); font-weight: 600; }
.table-card td.num { text-align: right; }
.table-card tr:hover td { background: rgba(255,255,255,0.02); }

.card-head { display: flex; justify-content: space-between; align-items: center; }

.error { color: var(--danger); min-height: 20px; }
.hidden { display: none; }

@media (max-width: 700px) {
  .topbar { flex-direction: column; gap: 12px; align-items: flex-start; }
  .top-actions { width: 100%; flex-wrap: wrap; }
}
