:root {
  --gold: #d4af37;
  --gold-soft: #e6c96b;
  --dark: #0b0a09;
  --card-bg: rgba(15, 10, 10, 0.82);
  --border: rgba(212, 175, 55, 0.35);
  --text: #f5f1e8;
  --muted: rgba(245, 241, 232, 0.82);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  padding: 28px;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background-image: url("/documentations-background-image.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.68);
  z-index: -1;
}

/* Typography */
h1 {
  margin: 0;
  color: var(--gold);
  font-size: 2.4rem;
  letter-spacing: 2px;
  text-shadow: 0 0 18px rgba(212,175,55,.55);
}
h2 { margin: 0 0 10px; color: var(--gold-soft); }
p { margin: 0 0 10px; }
a { color: var(--gold-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

.small { font-size: .92rem; color: var(--muted); }
.kicker { color: var(--muted); margin-bottom: 6px; }

/* Layout */
.container { max-width: 1050px; margin: 0 auto; }
.header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; margin-bottom: 22px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; }
.logo {
  width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.28);
  display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.55);
}
.nav { display: flex; gap: 10px; flex-wrap: wrap; }

/* Cards */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 15px 40px rgba(0,0,0,.7);
}
.card ul { padding-left: 18px; margin: 8px 0 0; }
.card li { margin-bottom: 6px; }

/* Pills & labels (clean, no emojis) */
.pill {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.35);
  color: var(--text);
  font-weight: 600;
  letter-spacing: .5px;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
}
.pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(212,175,55,.35);
}
.label {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.28);
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .4px;
  margin-right: 6px;
}

/* Details / code */
details {
  border: 1px solid rgba(212,175,55,.22);
  border-radius: 12px;
  background: rgba(0,0,0,.22);
  padding: 12px 14px;
  margin-top: 10px;
}
summary {
  cursor: pointer;
  color: var(--gold-soft);
  font-weight: 700;
  letter-spacing: .4px;
}
pre, code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}
pre {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(212,175,55,.25);
  background: rgba(0,0,0,.35);
  overflow-x: auto;
}

/* Divider */
.section-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(212,175,55,.35),
    transparent
  );
  margin: 22px 0;
}

/* Inputs & buttons */
input[type="password"] {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(212,175,55,.28);
  background: rgba(0,0,0,.35);
  color: var(--text);
  outline: none;
}
button {
  background: linear-gradient(145deg, #d4af37, #8f6b1e);
  color: #1a1305;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.55);
  transition: transform .15s ease, box-shadow .15s ease;
}
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(212,175,55,.5);
}

/* Login overlay */
#loginOverlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.75);
  z-index: 9999;
  backdrop-filter: blur(6px);
}
#loginPanel {
  width: min(520px, calc(100% - 28px));
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 18px 60px rgba(0,0,0,.75);
}
#loginStatus { margin-top: 10px; min-height: 20px; color: var(--muted); }

.footer {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid rgba(212,175,55,.15);
  color: rgba(245,241,232,.75);
  font-size: .9rem;
}