@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bg: #0a0c10;
  --surface: #131720;
  --surface-2: #1a1f2b;
  --line: #232938;
  --text: #e8ecef;
  --text-muted: #8a93a1;
  --accent: #5eebff;
  --accent-dim: #2c6b78;
  --danger: #ff5c72;
  --ok: #7cf2b0;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}

body {
  background-image:
    radial-gradient(circle at 15% 10%, rgba(94, 235, 255, 0.06), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(94, 235, 255, 0.04), transparent 45%);
}

h1, h2, h3 {
  font-family: "Chakra Petch", "Inter", sans-serif;
  letter-spacing: 0.01em;
  margin: 0;
}

.mono {
  font-family: "JetBrains Mono", monospace;
}

a {
  color: var(--accent);
  text-decoration: none;
}

/* ── 登录页 ───────────────────────────── */

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -10%;
  width: 60%;
  height: 180%;
  background: linear-gradient(180deg, rgba(94, 235, 255, 0.08), transparent 70%);
  transform: rotate(12deg);
  pointer-events: none;
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.login-card h1 {
  font-size: 26px;
  margin-bottom: 10px;
}

.login-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 28px;
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid var(--accent-dim);
  background: linear-gradient(180deg, rgba(94, 235, 255, 0.14), rgba(94, 235, 255, 0.05));
  color: var(--text);
  font-family: "Chakra Petch", sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.08s;
}

.btn-discord:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(94, 235, 255, 0.3), 0 0 24px rgba(94, 235, 255, 0.25);
}

.btn-discord:active {
  transform: translateY(1px);
}

.btn-discord svg {
  width: 18px;
  height: 18px;
  fill: var(--text);
}

.fineprint {
  margin-top: 22px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── 仪表盘页 ─────────────────────────── */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 600;
  font-size: 15px;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-chip img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.user-chip span {
  font-size: 14px;
}

.btn-ghost {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent-dim);
}

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.section-head {
  margin-bottom: 22px;
}

.section-head .eyebrow {
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: 20px;
}

.guild-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.guild-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-dim);
  border-radius: 10px;
  padding: 18px 18px 16px;
  transition: border-left-color 0.2s;
}

.guild-card:hover {
  border-left-color: var(--accent);
}

.guild-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.guild-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  overflow: hidden;
  flex-shrink: 0;
}

.guild-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guild-name {
  font-size: 15px;
  font-weight: 600;
}

.guild-id {
  font-size: 11px;
  color: var(--text-muted);
}

.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.badge-admin {
  background: rgba(94, 235, 255, 0.12);
  color: var(--accent);
  border: 1px solid var(--accent-dim);
}

.badge-manager {
  background: rgba(124, 242, 176, 0.1);
  color: var(--ok);
  border: 1px solid rgba(124, 242, 176, 0.3);
}

.role-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.role-pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-muted);
}

.empty-state,
.error-state {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.error-state {
  border-color: rgba(255, 92, 114, 0.3);
  color: var(--danger);
}

.loading {
  color: var(--text-muted);
  font-size: 14px;
  padding: 40px 0;
  text-align: center;
}

.future-note {
  margin-top: 32px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px dashed var(--line);
  padding-top: 16px;
    }
