:root {
  --bg: #0d1017;
  --bg-soft: #131823;
  --panel: #181f2d;
  --panel-2: #1e2738;
  --line: #2a3349;
  --text: #e9e6df;
  --text-muted: #9b97a8;
  --gold: #d4a847;
  --gold-soft: #e8c06a;
  --gold-dim: rgba(212, 168, 71, 0.16);
  --green: #6fbf73;
  --red: #e06c5f;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  --font-display: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

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

button {
  font-family: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(13, 16, 23, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 168, 71, 0.12);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 42px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.nav-links {
  display: flex;
  gap: clamp(0.6rem, 2vw, 1.6rem);
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}

.page {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2rem) 4rem;
  flex: 1;
}

.page-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 0.35rem;
}

.page-sub {
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  user-select: none;
}

.btn:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, #d9ab46, #b9871f);
  border-color: transparent;
  color: #1c1503;
  font-weight: 600;
}

.btn-primary:hover {
  box-shadow: 0 6px 22px rgba(212, 168, 71, 0.35);
}

.btn-small {
  padding: 0.38rem 0.8rem;
  font-size: 0.84rem;
  border-radius: 8px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.panel + .panel {
  margin-top: 1rem;
}

.panel h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--gold-soft);
  letter-spacing: 0.03em;
}

select,
input[type="text"],
input[type="search"] {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

select:focus,
input:focus {
  border-color: var(--gold);
}

.badge {
  display: inline-block;
  padding: 0.14rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  background: var(--gold-dim);
  color: var(--gold-soft);
  border: 1px solid rgba(212, 168, 71, 0.3);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem clamp(1rem, 4vw, 3rem);
  color: var(--text-muted);
  font-size: 0.84rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--gold-soft);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}
