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

:root {
  --bg:       #0f0f14;
  --surface:  #18181f;
  --border:   #2a2a35;
  --gold:     #c9a84c;
  --gold-dim: #8a6f2e;
  --text:     #e2ddd6;
  --muted:    #7a7570;
  --accent:   #5b8dd9;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}
.brand-rune {
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
}
.brand-name {
  font-size: 0.95rem;
  font-family: system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
}
.header-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.header-nav a:hover { color: var(--text); }

.btn-login {
  background: var(--gold);
  color: #0f0f14 !important;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.15s !important;
}
.btn-login:hover { background: #e0bc62 !important; }

.user-badge {
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  padding: 0.25rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.user-badge em {
  font-style: normal;
  font-size: 0.72rem;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
  background: var(--border);
}
.user-badge.role-admin em  { background: #2a1f0a; color: var(--gold); }
.user-badge.role-user em   { background: #0e1f2a; color: #5b9fd9; }
.user-badge.role-guest em  { background: #1e1e1e; color: #777; }

/* ── Main ── */
main {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
  padding: 4rem 2rem 3rem;
}

/* ── Hero ── */
.hero {
  text-align: center;
  margin-bottom: 4rem;
}
.hero h1 {
  font-size: 2.2rem;
  font-weight: normal;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  font-family: system-ui, sans-serif;
}

/* ── Decorative rule ── */
.hero::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 2rem auto 0;
  border-radius: 1px;
}

/* ── Tool cards ── */
.tools {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.tool-card {
  max-width: 480px;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
}
.tool-card:not(.disabled):hover {
  border-color: var(--gold-dim);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.tool-card.disabled {
  opacity: 0.45;
  cursor: default;
}

.tool-icon {
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.tool-body h2 {
  font-size: 1.1rem;
  font-weight: normal;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.tool-body p {
  font-size: 0.85rem;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  line-height: 1.55;
}

.tool-arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--gold-dim);
  font-size: 1.1rem;
  align-self: center;
  transition: color 0.15s;
}
.tool-card:hover .tool-arrow { color: var(--gold); }

.coming-soon {
  display: inline-block;
  font-size: 0.65rem;
  font-family: system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--border);
  color: var(--muted);
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  vertical-align: middle;
  margin-left: 0.4rem;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.2rem 2rem;
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
}
