:root {
  --bg: #08111f;
  --panel: rgba(11, 22, 41, 0.66);
  --border: rgba(206, 229, 255, 0.14);
  --text: #eef6ff;
  --muted: rgba(226, 237, 252, 0.7);
  --accent: #6ee7f9;
  --shadow: 0 24px 80px rgba(3, 10, 24, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 194, 255, 0.24), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(147, 51, 234, 0.16), transparent 22%),
    linear-gradient(180deg, #07101d 0%, #091526 35%, #050b14 100%);
}

h1, h2, h3 {
  font-family: "Manrope", sans-serif;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.28;
  pointer-events: none;
}

.ambient-a {
  background: #0ea5e9;
  top: -8rem;
  right: -6rem;
}

.ambient-b {
  background: #22c55e;
  bottom: -10rem;
  left: -8rem;
}

.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(110, 231, 249, 0.96), rgba(59, 130, 246, 0.9));
  color: #04101f;
}

.muted-label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
}

.muted-copy,
.sidebar-copy,
.form-feedback {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #34d3ff);
  color: #06121d;
  font-weight: 700;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.button-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.button-small {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
}

.admin-shell {
  position: relative;
  z-index: 1;
  width: min(1400px, calc(100% - 40px));
  margin: 24px auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.2rem;
}

.admin-sidebar,
.admin-topbar,
.metric-card,
.chart-panel,
.spotlight-panel,
.table-shell,
.list-card,
.auth-panel {
  padding: 1.4rem;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-nav {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.admin-nav a {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  color: var(--muted);
}

.admin-nav a.active,
.admin-nav a:hover {
  background: rgba(110, 231, 249, 0.12);
  color: var(--text);
}

.admin-main {
  display: grid;
  gap: 1.2rem;
}

.admin-topbar,
.section-head,
.workspace-grid,
.topbar-actions,
.list-card,
.spotlight-stats,
.auth-layout,
.password-wrap,
.card-actions-inline {
  display: flex;
}

.admin-topbar,
.section-head,
.list-card {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.workspace-grid {
  gap: 1rem;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}

.admin-panel {
  display: none;
  gap: 1rem;
}

.admin-panel.active {
  display: grid;
}

.list-stack {
  display: grid;
  gap: 1rem;
}

.status-pill {
  display: inline-flex;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(110, 231, 249, 0.14);
  color: var(--accent);
  font-size: 0.8rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 1rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table th {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table-subtext {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  word-break: break-all;
}

.tap-url {
  margin-top: 0.5rem;
  color: rgba(110, 231, 249, 0.84);
  word-break: break-all;
}

.qr-slot canvas {
  border-radius: 16px;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
}

.auth-layout {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 430px;
  align-items: center;
  gap: 2rem;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.oauth-divider {
  position: relative;
  text-align: center;
  color: var(--muted);
  margin: 0.25rem 0;
}

.oauth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.oauth-divider span {
  position: relative;
  padding: 0 0.8rem;
}

.google-auth-mount {
  min-height: 44px;
  display: grid;
  justify-content: center;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.auth-tabs button {
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
}

.auth-tabs button.active {
  background: rgba(110, 231, 249, 0.14);
  color: var(--text);
  border-color: rgba(110, 231, 249, 0.3);
}

.field {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

.hidden {
  display: none;
}

input {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

@media (max-width: 1100px) {
  .admin-shell,
  .workspace-grid,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-shell {
    width: calc(100% - 24px);
  }

  .admin-topbar,
  .section-head,
  .list-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }
}
