:root {
  --bg: #0b1220;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);
  --ink: #eef2ff;
  --muted: rgba(238, 242, 255, 0.72);
  --accent: #60a5fa;
  --accent-2: #34d399;
  --danger: #f87171;
  --card: rgba(255, 255, 255, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-attachment: fixed;
  font-family: "Source Sans 3", system-ui, sans-serif;
  background-image: radial-gradient(1000px 500px at 20% 0%, rgba(96, 165, 250, 0.22), transparent 55%),
    radial-gradient(900px 480px at 90% 20%, rgba(52, 211, 153, 0.18), transparent 55%);
  background-color: var(--bg);
  color: var(--ink);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(96, 165, 250, 0.8);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

label {
  font-weight: 600;
  font-size: 14px;
}

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

.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(96, 165, 250, 1), rgba(59, 130, 246, 1));
  color: #071225;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.25);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.10);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: none;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.table th, .table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  text-align: left;
  font-size: 14px;
}

.notice {
  color: var(--muted);
  font-size: 14px;
}

.table th {
  color: rgba(238, 242, 255, 0.82);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.table-wrap {
  overflow-x: auto;
}

.actions {
  white-space: nowrap;
}

.link {
  margin-right: 10px;
  color: rgba(96, 165, 250, 0.95);
  text-decoration: none;
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
}

.link.danger {
  color: var(--danger);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

form.inline {
  display: inline;
}

.alert {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.alert-danger {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.10);
  color: rgba(255, 220, 220, 0.95);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(238, 242, 255, 0.86);
  font-size: 13px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.auth-card {
  max-width: 420px;
  margin: 0 auto;
}

.auth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.form-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 640px) {
  .container {
    padding: 22px 14px 50px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-left {
    justify-content: space-between;
  }
}
