/* =========================
   Root & base
   ========================= */
:root {
  --bg-primary: #06070a;
  --bg-elevated: #101218;
  --bg-elevated-soft: #141722;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --accent: #3b82f6;       /* blue-ish, more "desktop" */
  --accent-soft: rgba(59, 130, 246, 0.12);
  --accent-alt: #f97316;   /* orange for warnings */
  --success: #22c55e;
  --text: #e5e7eb;
  --text-soft: #9ca3af;
  --panel-radius: 10px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --mono: 'Share Tech Mono', system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
  color: var(--text);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
}

/* =========================
   Links & buttons
   ========================= */

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: #60a5fa;
}

a:active {
  color: #1d4ed8;
}

.inline-link {
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inline-link::after {
  content: "↗";
  font-size: 0.75rem;
  opacity: 0.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #0b1120;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.btn i {
  font-size: 0.9rem;
}

.btn:hover {
  background: #60a5fa;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

.btn:active {
  background: #2563eb;
  transform: translateY(0);
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: var(--border-strong);
  box-shadow: none;
}

.btn-onion {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
  border-color: rgba(34, 197, 94, 0.15);
}

.btn-onion:hover {
  background: linear-gradient(135deg, #4ade80, #22c55e);
}

/* =========================
   Header
   ========================= */

.hud-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(17, 24, 39, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  padding: 10px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hud-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #bbf7d0 0, #22c55e 40%, #16a34a 100%);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
}

.logo-text {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: #e5e7eb;
}

.hud-status {
  font-size: 0.8rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-online {
  color: var(--success);
}

.status-sep {
  opacity: 0.6;
}

.hud-right {
  display: flex;
  align-items: center;
}

/* =========================
   Layout
   ========================= */

.container.page-wrapper {
  display: flex;
  gap: 22px;
  padding: 24px 28px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.sidebar {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

main {
  flex: 1 1 auto;
  min-width: 0;
}

/* =========================
   Panels
   ========================= */

.panel {
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.18), transparent 55%),
              linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.92));
  border-radius: var(--panel-radius);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 20px 22px 22px;
}

.panel + .panel {
  margin-top: 20px;
}

.panel-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.panel h1,
.panel h2,
.panel h3 {
  margin: 4px 0 10px;
}

.panel h1 {
  font-size: 1.6rem;
}

.panel h2 {
  font-size: 1.35rem;
}

.panel h3 {
  font-size: 1.05rem;
}

/* =========================
   Navigation (sidebar)
   ========================= */

.nav-block {
  padding: 16px 16px 12px;
}

.nav-title {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

.nav-link .nav-icon {
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.9;
}

.nav-link:hover {
  background: rgba(15, 23, 42, 0.95);
  color: var(--text);
  transform: translateX(1px);
}

.nav-link.active {
  background: var(--accent-soft);
  color: #e5f0ff;
  border: 1px solid rgba(59, 130, 246, 0.5);
}

.nav-legal {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* =========================
   Status block
   ========================= */

.status-block {
  padding: 14px 14px 10px;
}

.status-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text);
}

.status-header i {
  color: var(--accent);
}

.status-block p {
  margin: 4px 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.accent {
  color: var(--accent);
}

.accent-alt {
  color: var(--accent-alt);
}

.success {
  color: var(--success);
}

/* =========================
   Cards & grids
   ========================= */

.card-grid {
  display: grid;
  gap: 16px;
}

.card-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.guide-card {
  position: relative;
  background: linear-gradient(145deg, #020617, #020617);
  border-radius: 12px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  padding: 16px 16px 14px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.65);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.guide-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
  border-color: rgba(59, 130, 246, 0.55);
}

.guide-card:hover::before {
  opacity: 1;
}

.guide-card.primary {
  border-left: 3px solid var(--accent);
}

.guide-card.success {
  border-left: 3px solid var(--success);
}

.guide-card.warning {
  border-left: 3px solid var(--accent-alt);
}

.card-icon {
  font-size: 1.7rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.guide-card h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.guide-card h3 i {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.card-content p {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 4px 0 8px;
}

.card-list {
  margin: 0 0 8px;
  padding-left: 16px;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.card-list li {
  margin-bottom: 2px;
}

/* =========================
   Typography
   ========================= */

p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 6px 0;
}

/* =========================
   Footer
   ========================= */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at top, #020617 0, #020617 50%, #000 100%);
  padding: 20px 22px 14px;
  margin-top: 16px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto 10px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 20px;
}

.footer-col h3 {
  font-size: 0.9rem;
  margin: 0 0 8px;
  color: #e5e7eb;
}

.footer-col p {
  font-size: 0.82rem;
}

.footer-links,
.footer-status {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li,
.footer-status li {
  margin-bottom: 4px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.footer-links a {
  color: var(--text-soft);
}

.footer-links a:hover {
  color: #e5e7eb;
}

.footer-status i {
  margin-right: 6px;
  font-size: 0.75rem;
}

.text-success {
  color: var(--success);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding-top: 8px;
  font-size: 0.75rem;
  color: var(--text-soft);
  text-align: right;
}

/* =========================
   Noise / visual layer
   ========================= */

.noise-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1600 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='noStitch' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45' /%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 960px) {
  .container.page-wrapper {
    flex-direction: column;
  }

  .sidebar {
    flex-direction: row;
    overflow-x: auto;
  }

  .status-block {
    min-width: 220px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hud-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .hud-right {
    width: 100%;
    justify-content: flex-start;
  }

  .btn-onion {
    width: 100%;
    justify-content: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
.hero-section {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  text-align: left;
  padding: 50px 40px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(15,23,42,0.8);
}

.hero-content h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: #f8fafc;
}

.hero-content p {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 24px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-accent {
  background: var(--accent);
  color: #0f172a;
}
.btn-accent:hover {
  background: #60a5fa;
  box-shadow: 0 0 18px rgba(59,130,246,0.55);
}

.onion-block .onion-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0b1120;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 10px;
  overflow-wrap: anywhere;
}

.onion-box code {
  color: var(--accent);
  font-size: 0.95rem;
}

.copy-btn {
  background: var(--accent-soft);
  color: #dbeafe;
  border: 1px solid rgba(59,130,246,0.4);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.copy-btn:hover {
  background: var(--accent);
  color: #010b19;
}

.note {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.hero-section {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  padding: 50px 40px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(15,23,42,0.8);
  max-width: 900px;
  margin: 0 auto 30px;
}
.hero-content p {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 24px;
  max-width: 600px;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}
