:root {
  --navy: #0a1025;
  --navy-2: #101837;
  --accent: #0f5ccb;
  --accent-2: #2e8bff;
  --muted: #667192;
  --border: #e2e6f0;
  --card: #ffffff;
  --bg: #f4f6fb;
  --success: #1fbf75;
  --danger: #d64545;
  --radius: 14px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: var(--bg);
  color: #0e1324;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
}

img {
  display: block;
}

.hidden {
  display: none !important;
}

.topbar {
  background: var(--navy);
  color: #e9edf7;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 140px;
}

.brand__name {
  font-weight: 800;
}

.brand__text small {
  color: rgba(233, 237, 247, 0.7);
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(46, 139, 255, 0.16);
  color: #d9e6ff;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cred-hint {
  color: rgba(233, 237, 247, 0.8);
  font-size: 14px;
}

.auth {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 40px 28px;
  align-items: center;
}

.auth__form {
  display: grid;
  gap: 10px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 18px 50px rgba(14, 19, 36, 0.12);
}

.btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15, 92, 203, 0.35);
}

.btn--ghost {
  background: #e8ecf7;
  color: #0e1324;
  box-shadow: none;
}

label {
  font-weight: 700;
  color: #0e1324;
}

input,
select {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 15px;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 6px;
}

.hint {
  padding: 12px 14px;
  background: #eef4ff;
  color: #23365c;
  border-radius: 12px;
  border: 1px dashed #c7d7f5;
  font-weight: 600;
}

.small {
  font-size: 13px;
}

.userbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 28px 14px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #f0f4ff;
  display: grid;
  place-items: center;
  padding: 10px;
}

.avatar img {
  width: 44px;
}

.userbar__left {
  display: flex;
  gap: 12px;
  align-items: center;
}

.userbar__right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.label {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 0 28px;
}

.metric {
  display: grid;
  gap: 4px;
}

.metric .value {
  font-size: 26px;
  font-weight: 800;
}

.delta {
  color: var(--accent);
  font-weight: 700;
}

.positive {
  color: var(--success);
}

.charts,
.tables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  padding: 16px 28px 0;
}

.chart__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

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

th,
td {
  padding: 10px 8px;
  text-align: left;
}

th {
  color: #4a5572;
  font-size: 13px;
}

tbody tr:nth-child(odd) {
  background: #f9fafe;
}

tbody tr:nth-child(even) {
  background: #ffffff;
}

.table-card {
  overflow: hidden;
}

.table__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.admin {
  margin: 18px 28px 32px;
}

.admin__header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.admin__view {
  display: flex;
  gap: 8px;
  align-items: center;
}

@media (max-width: 1024px) {
  .auth {
    grid-template-columns: 1fr;
  }

  .userbar {
    flex-direction: column;
    align-items: flex-start;
    margin: 0 18px 12px;
  }

  .userbar__right {
    width: 100%;
    justify-content: space-between;
  }

  .grid.cards,
  .charts,
  .tables {
    padding: 0 18px;
  }

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

@media (max-width: 768px) {
  .topbar {
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .brand {
    flex: 1;
    min-width: 0;
  }

  .brand img {
    width: 80px;
  }

  .brand__text {
    font-size: 14px;
  }

  .brand__text small {
    font-size: 11px;
  }

  .topbar__meta {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .cred-hint {
    font-size: 12px;
    text-align: center;
  }

  .cred-hint strong {
    display: block;
  }

  .badge {
    font-size: 11px;
    padding: 6px 10px;
  }

  .auth {
    padding: 24px 16px;
    gap: 16px;
  }

  .userbar {
    margin: 0 16px 12px;
  }

  .userbar__left {
    width: 100%;
  }

  .grid.cards,
  .charts,
  .tables {
    padding: 0 16px;
    grid-template-columns: 1fr;
  }

  .admin {
    margin: 16px 16px 24px;
  }

  .btn {
    width: 100%;
  }

  table {
    font-size: 14px;
  }

  th, td {
    padding: 8px 6px;
  }
}
