:root {
  --bg-primary: #0e0d17;
  --bg-secondary: #171526;
  --bg-card: #201c33;
  --accent: #8a4fff;
  --accent-hover: #9e6dff;
  --accent-gold: #ffb703;
  --text-primary: #f8f9fa;
  --text-secondary: #c5c3d9;
  --text-muted: #8b87a8;
  --border-color: rgba(255, 255, 255, 0.08);
  --success: #2ec4b6;
  --danger: #e71d36;
  --radius: 14px;
  --max-w: 880px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px;
}

header {
  background: linear-gradient(180deg, #1d1933 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 30px 20px;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-icon {
  font-size: 2rem;
}

.nav-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.nav-tab {
  text-decoration: none;
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.nav-tab:hover {
  background: rgba(138, 79, 255, 0.15);
  color: #fff;
  border-color: rgba(138, 79, 255, 0.3);
}

.nav-tab.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(138, 79, 255, 0.35);
}

.container {
  max-width: var(--max-w);
  margin: 40px auto 0 auto;
  padding: 0 20px;
}

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 640px) {
  .card {
    padding: 24px 18px;
  }
  .brand {
    font-size: 1.3rem;
  }
}

h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: #fff;
}

.meta-info {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-top: 32px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-top: 20px;
  margin-bottom: 8px;
}

p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 0.98rem;
}

ul, ol {
  color: var(--text-secondary);
  margin-left: 24px;
  margin-bottom: 16px;
  font-size: 0.98rem;
}

li {
  margin-bottom: 8px;
}

strong {
  color: #fff;
}

.badge-alert {
  background: rgba(231, 29, 54, 0.12);
  border-left: 4px solid var(--danger);
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
}

.badge-alert p {
  color: #ffb4be;
  margin-bottom: 0;
}

.badge-info {
  background: rgba(138, 79, 255, 0.12);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
}

.badge-info p {
  color: #d8c4ff;
  margin-bottom: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.92rem;
}

th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background: var(--bg-card);
  color: #fff;
  font-weight: 600;
}

td {
  color: var(--text-secondary);
}

a {
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.15s;
}

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

footer {
  margin-top: 50px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
