:root {
  --bg: #1a1612;
  --bg-light: #2a2420;
  --bg-card: #221e1a;
  --accent: #c9a96e;
  --accent-hover: #d4b87f;
  --text: #e8e0d4;
  --text-muted: #8a7a6a;
  --border: #3a3430;
  --danger: #c95a5a;
  --success: #6ac95a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.nav-link { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.nav-link:hover { color: var(--accent); }

/* Hero */
.hero {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-light) 100%);
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Sections */
.section { max-width: 800px; margin: 0 auto; padding: 3rem 2rem; }
.section h2 { font-size: 1.75rem; color: var(--accent); margin-bottom: 1rem; }
.section p { color: var(--text-muted); font-size: 1.05rem; }
.section code {
  background: var(--bg-card);
  color: var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 1rem;
}
.step h3 { color: var(--text); margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; }

/* Container */
.container { max-width: 800px; margin: 0 auto; padding: 2rem; }
.container h1 { color: var(--accent); margin-bottom: 2rem; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 1rem; }
.form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.form input, .form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { min-height: 80px; resize: vertical; }
.form button {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.form button:hover { background: var(--accent-hover); }
.form button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}
.card h2 { color: var(--accent); margin-bottom: 1.5rem; font-size: 1.3rem; }

/* Status */
.status { padding: 0.75rem; border-radius: 6px; margin-top: 1rem; }
.status.success { background: rgba(106,201,90,0.1); color: var(--success); border: 1px solid rgba(106,201,90,0.3); }
.status.error { background: rgba(201,90,90,0.1); color: var(--danger); border: 1px solid rgba(201,90,90,0.3); }
.error { color: var(--danger); }

/* Arrowhead list */
.arrowhead-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}
.arrowhead-item:last-child { border-bottom: none; }
.arrowhead-item img {
  width: 80px; height: 80px; object-fit: cover; border-radius: 6px;
}
.arrowhead-item .info h3 { font-size: 1rem; color: var(--text); }
.arrowhead-item .info p { font-size: 0.85rem; color: var(--text-muted); }
.arrowhead-item .code { font-family: monospace; color: var(--accent); font-size: 1rem; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge.paid { background: rgba(106,201,90,0.15); color: var(--success); }
.badge.unpaid { background: rgba(201,90,90,0.15); color: var(--danger); }

/* View page */
.view-loading { text-align: center; padding: 4rem; color: var(--text-muted); }
.view-arrowhead { text-align: center; }
.view-arrowhead img {
  max-width: 100%;
  max-height: 500px;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}
.view-arrowhead h1 { color: var(--accent); margin-bottom: 0.5rem; }
.view-arrowhead .description { color: var(--text-muted); max-width: 500px; margin: 0 auto 2rem; }
.view-arrowhead .price { font-size: 1.5rem; color: var(--accent); margin-bottom: 1rem; }
.view-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s, opacity 0.2s;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg-light); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.view-not-found { text-align: center; padding: 4rem; }
.view-not-found h1 { color: var(--danger); margin-bottom: 1rem; }

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.5rem; }
  .arrowhead-item { grid-template-columns: 60px 1fr; }
  .arrowhead-item .code { grid-column: 1 / -1; }
}