:root {
  --bg: #f2efe9;
  --fg: #1c1b18;
  --accent: #d97c2b;
  --muted: #6f6a60;
  --panel: #fff6e6;
  --shadow: rgba(28, 27, 24, 0.2);
  --font-title: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --font-body: "Work Sans", "Helvetica", "Arial", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font-family: var(--font-body);
}

.bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, #f6d9b4, transparent 55%),
    radial-gradient(circle at 80% 30%, #f0b384, transparent 50%),
    radial-gradient(circle at 60% 80%, #edd8c3, transparent 50%);
  z-index: -1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
}

.logo {
  font-family: var(--font-title);
  font-size: 28px;
  letter-spacing: 1px;
}

.nav a {
  margin-left: 18px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
}

.content {
  padding: 40px 48px 80px;
}

.hero {
  display: grid;
  gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-text h1 {
  font-family: var(--font-title);
  font-size: 64px;
  margin: 0 0 16px;
}

.hero-text p {
  font-size: 18px;
  color: var(--muted);
  max-width: 420px;
}

.actions {
  margin-top: 24px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 12px 24px var(--shadow);
}

.btn.ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid rgba(28, 27, 24, 0.2);
  box-shadow: none;
}

.hero-card {
  background: var(--panel);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 20px 30px var(--shadow);
}

.card-title {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
}

.card-body {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.stat {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.dashboard {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.panel {
  background: var(--panel);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 20px 30px var(--shadow);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.section {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(28, 27, 24, 0.1);
  background: #fff;
}

.section-title {
  font-weight: 700;
  margin-bottom: 12px;
}

.guild-list {
  display: grid;
  gap: 16px;
}

.guild-card {
  border: 1px solid rgba(28, 27, 24, 0.1);
  border-radius: 14px;
  padding: 16px;
  background: #fffaf0;
}

.guild-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.guild-name {
  font-weight: 700;
  font-size: 18px;
}

.guild-meta {
  color: var(--muted);
  font-size: 14px;
}

.guild-badge {
  background: rgba(217, 124, 43, 0.15);
  color: #a45414;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.guild-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.form label {
  font-weight: 600;
}

.form select,
.form input,
.form textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(28, 27, 24, 0.2);
  background: #fff;
}

.form textarea {
  resize: vertical;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.panel-note {
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(217, 124, 43, 0.12);
}

.role-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.role-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(28, 27, 24, 0.1);
}

.role-name {
  font-weight: 600;
}

.group-list,
.option-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.group-card,
.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(28, 27, 24, 0.1);
}

.group-title {
  font-weight: 700;
  font-size: 16px;
}

.group-meta {
  color: var(--muted);
  font-size: 13px;
}

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

.option-emoji {
  font-size: 20px;
}

.option-role {
  font-weight: 600;
}

.link {
  color: inherit;
}

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

@media (max-width: 720px) {
  .topbar,
  .content {
    padding: 20px;
  }

  .hero-text h1 {
    font-size: 44px;
  }
}
