* { box-sizing: border-box; }
body {
  margin: 0;
  background: #313338;
  color: #dbdee1;
  font-family: 'gg sans', 'Noto Sans', Arial, sans-serif;
  min-height: 100vh;
}
a { color: #00a8fc; text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  background: #1e1f22;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #232428;
}
.topbar .title { font-weight: 700; font-size: 16px; color: #f2f3f5; }
.topbar nav { display: flex; gap: 4px; margin-left: 16px; }
.topbar nav a {
  color: #b5bac1;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}
.topbar nav a:hover { background: #2b2d31; text-decoration: none; color: #f2f3f5; }
.topbar nav a.active { background: #404249; color: #fff; }
.topbar .user { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.topbar .user img { width: 28px; height: 28px; border-radius: 50%; }
.topbar .logout { color: #f23f42; font-size: 13px; }

.container { max-width: 1100px; margin: 24px auto; padding: 0 24px; }

.login-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; flex-direction: column; gap: 24px;
}
.login-card {
  background: #2b2d31; border-radius: 12px; padding: 40px 48px;
  text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.login-card h1 { margin: 0 0 8px; color: #f2f3f5; font-size: 22px; }
.login-card p { color: #949ba4; margin: 0 0 24px; }
.btn-discord {
  display: inline-flex; align-items: center; gap: 8px;
  background: #5865f2; color: white; border: none;
  padding: 12px 24px; border-radius: 8px; font-size: 15px; font-weight: 600;
  cursor: pointer;
}
.btn-discord:hover { background: #4752c4; text-decoration: none; }

table { width: 100%; border-collapse: collapse; margin-top: 8px; }
th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  color: #949ba4; padding: 8px 12px; border-bottom: 1px solid #3f4147;
}
td { padding: 10px 12px; border-bottom: 1px solid #3f4147; font-size: 14px; vertical-align: middle; }
tr:hover td { background: #2e3035; }

.user-cell { display: flex; align-items: center; gap: 8px; }
.user-cell img { width: 24px; height: 24px; border-radius: 50%; }

.badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 12px; font-weight: 600;
}
.badge-open { background: rgba(46,204,113,0.15); color: #2ecc71; }
.badge-claimed { background: rgba(88,101,242,0.15); color: #5865f2; }
.badge-none { background: rgba(148,155,164,0.15); color: #949ba4; }

.empty { color: #949ba4; text-align: center; padding: 48px 0; }

.pagination { display: flex; gap: 8px; justify-content: center; margin: 24px 0; align-items: center; }
.pagination a, .pagination span {
  padding: 6px 12px; border-radius: 6px; background: #2b2d31; color: #dbdee1; font-size: 14px;
}
.pagination a:hover { background: #404249; text-decoration: none; }
.pagination .current { background: #5865f2; color: white; }

.error-wrap {
  display: flex; align-items: center; justify-content: center; min-height: 100vh; flex-direction: column; gap: 16px;
}
.error-wrap .icon { font-size: 48px; }
.error-wrap p { color: #dbdee1; max-width: 400px; text-align: center; }

.btn-link {
  background: #2b2d31; padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 600;
}

.btn-delete {
  background: transparent; border: 1px solid #4e5058; color: #f23f42;
  padding: 5px 10px; border-radius: 6px; cursor: pointer; font-size: 14px;
}
.btn-delete:hover { background: rgba(242,63,66,0.12); border-color: #f23f42; }
