@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=Fraunces:opsz,wght@9..144,500;700&display=swap");

:root {
  --bg: #f7f1e9;
  --bg-accent: #f0e0cf;
  --ink: #1f1b16;
  --muted: #5f554b;
  --brand: #c4682c;
  --brand-dark: #8a451b;
  --panel: #fff8f1;
  --stroke: #e1cdbb;
  --shadow: 0 20px 45px rgba(31, 27, 22, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  background: radial-gradient(circle at top, var(--bg-accent), var(--bg));
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: "Fraunces", "Noto Serif SC", serif;
  margin: 0 0 0.6rem;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  background: rgba(255, 248, 241, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stroke);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  font-weight: 600;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #fff;
  font-size: 0.85rem;
}

.lang-switch a {
  color: var(--muted);
  font-weight: 600;
}

.lang-switch a.active {
  color: var(--brand-dark);
}

.inline {
  margin: 0;
}

.site-main {
  padding: 3rem 0 4rem;
}

.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
}

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

.eyebrow {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-card {
  background: var(--panel);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--stroke);
}

.card-content {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--stroke);
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 1.6rem;
  box-shadow: 0 10px 25px rgba(31, 27, 22, 0.08);
}

.highlight {
  margin-top: 2rem;
  background: linear-gradient(135deg, #fff5ea, #fde8d5);
}

.list {
  padding-left: 1.2rem;
  color: var(--muted);
}

.list li {
  margin-bottom: 0.5rem;
}

.tip {
  margin-top: 1rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 20px rgba(196, 104, 44, 0.3);
}

.btn.small {
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  line-height: 1.2;
  min-height: auto;
  box-shadow: none;
}

.btn.ghost {
  background: transparent;
  color: var(--brand-dark);
  border: 1px solid var(--brand-dark);
  box-shadow: none;
}

.form-wrap {
  max-width: 520px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.form {
  display: grid;
  gap: 1.2rem;
}

.form label {
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
  font-weight: 600;
}

.form input {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  font-size: 1rem;
}

.link {
  color: var(--brand-dark);
  font-weight: 600;
}

.alert {
  background: #ffe1d6;
  color: #7a2e1b;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

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

.dashboard {
  display: grid;
  gap: 2rem;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.token-panel {
  display: grid;
  gap: 1rem;
}

.token {
  font-family: "Space Grotesk", monospace;
  background: #fff;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px dashed var(--brand-dark);
  word-break: break-all;
}

.table {
  display: grid;
  gap: 0.6rem;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 0.6fr;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--stroke);
  font-size: 0.95rem;
}

.table-row.header {
  background: transparent;
  border: none;
  font-weight: 600;
  color: var(--muted);
}

.table-row.admin {
  grid-template-columns: 1fr 2fr 1fr 1fr 0.6fr;
}

.table-empty {
  padding: 1rem 0.4rem;
}

pre {
  background: #1f1b16;
  color: #f8f2ea;
  padding: 1rem;
  border-radius: 12px;
  overflow-x: auto;
}

code {
  font-family: "Space Grotesk", monospace;
}

@media (max-width: 720px) {
  .dash-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .table-row {
    grid-template-columns: 1fr;
  }
}
