:root {
  --bg: #05080f;
  --surface: #0d1117;
  --surface-alt: #161b22;
  --border: #30363d;
  --text: #c9d1d9;
  --text-dim: #8b949e;
  --accent: #38bdf8;
  --accent-dim: #0c4a6e;
  --success: #238636;
  --font-serif: 'IBM Plex Serif', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: all 0.2s; }

/* Wiki Header & Navigation */
header.wiki-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: #fff;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
}

.wiki-nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
}

.wiki-nav a:hover { color: var(--accent); }

/* Main Layout */
.wiki-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  padding: 40px 20px;
}

/* Interlinking Sidebar */
.wiki-sidebar {
  font-size: 13px;
}

.sidebar-section {
  margin-bottom: 32px;
}

.sidebar-section h4 {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-links a { color: var(--text); }
.sidebar-links a:hover { color: var(--accent); padding-left: 4px; }

/* Content Cards */
.money-page-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.money-page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  opacity: 0.2;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #7dd3fc; transform: translateY(-1px); }

.btn-secondary { background: var(--surface-alt); border: 1px solid var(--border); color: #fff; }

/* Grid System */
.wiki-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.wiki-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 12px;
}

.wiki-card:hover { border-color: var(--accent); }

@media (max-width: 850px) {
  .wiki-layout { grid-template-columns: 1fr; }
  .wiki-sidebar { display: none; }
}
