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

:root {
  --bg:        #f0f2f5;
  --surface:   #ffffff;
  --border:    #e2e6ea;
  --primary:   #4688e5;
  --primary-h: #ac5ddd;
  --text:      #1a1d23;
  --muted:     #6b7280;
  --error:     #dc2626;
  --radius:    10px;
  --shadow:    0 1px 4px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── Header ─────────────────────────────────────────────── */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -.3px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-brand-2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-h);
  letter-spacing: -.3px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-logo {
  height: 72px;
  width: auto;
  display: block;
}

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

.header-meta {
  font-size: .75rem;
  color: var(--muted);
}

.header-user {
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ede9fe;
  color: var(--primary);
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-logout {
  font-family: inherit;
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  text-decoration: none;
}

.btn-logout:hover { color: var(--text); border-color: #9ca3af; }

/* ── Layout ─────────────────────────────────────────────── */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Card ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: .875rem;
  font-weight: 600;
}

.badge {
  font-size: .72rem;
  font-weight: 600;
  background: #ede9fe;
  color: var(--primary);
  border-radius: 20px;
  padding: 2px 10px;
}

/* ── Table ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

thead th {
  background: #f8f9fb;
  padding: 10px 16px;
  text-align: left;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #f8f9fb; }

tbody td {
  padding: 11px 16px;
  color: var(--text);
}

/* ── Empty state ─────────────────────────────────────────── */
.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  font-size: .875rem;
}
