:root {
  --bg-primary: #f8f9fa;
  --text-color: #222;
  --accent: #24ffd1;
  --accent-alt: #ff2a45;
  --success: #46ff80;
  --warning: #f7b731;
  --panel-bg: #ffffff;
  --border: #e0e0e0;
  --shadow: rgba(0, 0, 0, 0.08);
  --mono: 'Share Tech Mono', monospace;
  --font: 'Inter', sans-serif;
}

body {
  font-family: var(--font);
  color: var(--text-color);
  background: var(--bg-primary);
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
    word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}


/* All text containers adapt line breaks naturally */
p, li, h1, h2, h3, h4, code {
  white-space: normal;
  word-break: normal;
}


/* Header */
.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: #fff;
  box-shadow: 0 2px 5px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 200;
}

.brand {
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 700;
}

.accent { color: var(--accent-alt); }

.status-badge {
  background: var(--success);
  color: #000;
  padding: 4px 8px;
  border-radius: 6px;
  margin-left: 12px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-onion {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-onion:hover { background: var(--accent-alt); color: #fff; }

/* Layout */
.container {
  display: flex;
  padding: 30px;
  max-width: 1600px;
  margin: auto;
  gap: 32px;
}

.sidebar {
  flex: 0 0 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  height: fit-content;
}

.nav-link {
  display: block;
  color: #333;
  padding: 8px 0;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--accent-alt); }
.nav-title { font-family: var(--mono); margin-bottom: 12px; }

.main { flex: 1; }

/* Cards */
.panel {
  margin-bottom: 60px;
}

.panel-label {
  color: var(--accent-alt);
  font-family: var(--mono);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.card-grid {
  display: grid;
  gap: 24px;
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

.guide-card {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px var(--shadow);
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.guide-card.primary { border-left: 4px solid var(--accent); }
.guide-card.success { border-left: 4px solid var(--success); }
.guide-card.warning { border-left: 4px solid var(--warning); }

.card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

/* Badges */
.badge {
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  margin: 4px 0;
}
.badge.live { background: var(--accent); color: #000; }
.badge.backup { background: var(--accent-alt); color: #fff; }
.badge.secure { background: var(--success); color: #000; }

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  margin-top: auto;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

.footer-col h3 {
  font-family: var(--mono);
  margin-bottom: 10px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin: 6px 0; }
.footer-col a { text-decoration: none; color: #333; }
.footer-col a:hover { color: var(--accent-alt); }

.copyright {
  text-align: center;
  font-size: 0.85rem;
  color: #777;
}

/* Animations */
[data-hover]:hover::after {
  content: attr(data-hover);
  position: absolute;
  opacity: 0.2;
  font-family: var(--mono);
}


/* Hero section */
.hero {
  background: linear-gradient(180deg,#fff 0%,#f0f2f5 100%);
  text-align: center;
  padding: 100px 20px 80px;
  border-bottom: 1px solid var(--border);
  animation: fadeIn 1s ease forwards;
}
.hero-inner {
  max-width: 800px;
  margin: auto;
}
.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  font-weight: 700;
}
.hero p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary, .btn-secondary {
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-primary {
  background: var(--accent-alt);
  color: #fff;
}
.btn-primary:hover { background: #e5293e; }
.btn-secondary {
  background: #fff;
  border: 2px solid var(--border);
  color: #222;
}
.btn-secondary:hover { border-color: var(--accent-alt); color: var(--accent-alt); }

/* Footer 4 columns */
.footer-cols--4 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
}
.footer-brand p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}
.hero {
  background: linear-gradient(180deg,#ffffff 0%,#f7f8fa 100%);
  border-bottom: 1px solid var(--border);
  padding: 120px 24px 90px;
  text-align: center;
  animation: fadeIn 0.8s ease forwards;
}

.hero-inner {
  max-width: 900px;
  margin: auto;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #111;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  word-break: normal;
  white-space: normal;
}
/* Copy Buttons */
.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-alt);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.btn-copy i {
  font-size: 0.95rem;
}

.btn-copy:hover {
  background: linear-gradient(90deg, var(--accent-alt), #ff4b6e);
  box-shadow: 0 4px 12px rgba(255, 42, 69, 0.3);
  transform: translateY(-2px);
}

.btn-copy:active {
  background: #e92a45;
  transform: scale(0.96);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Small feedback animation (optional) */
.copied-tooltip {
  position: absolute;
  background: var(--accent);
  color: #000;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 5px;
  margin-left: 8px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.copied-tooltip.show {
  opacity: 1;
  transform: translateY(-12px);
}
/* ================================
   GLOBAL RESPONSIVE ADAPTATION
   ================================ */

/*   Tablet layout: 992–1200px   */
@media (max-width: 1200px) {
  .container {
    flex-direction: column;
    padding: 20px;
  }
  .sidebar {
    order: 2;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .status-panel {
    margin-top: 20px;
    flex-basis: 100%;
  }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

/*   Mobile layout: under 768px   */
@media (max-width: 768px) {
  body {
    font-size: 0.95rem;
  }
  .hud-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .btn-onion {
    width: 100%;
    text-align: center;
  }
  .container {
    padding: 15px;
    gap: 20px;
  }
  .sidebar {
    padding: 16px;
    border: none;
    background: transparent;
  }
  .nav-link { padding: 6px 0; }
  .card-grid--3,
  .card-grid--2 { grid-template-columns: 1fr; }
  .guide-card { padding: 16px; }
  .footer-cols--4 {
    grid-template-columns: 1fr 1fr;
  }
}

/*   Tiny screens ≤ 480px   */
@media (max-width: 480px) {
  .hero {
    padding: 80px 12px 60px;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
  .footer-cols--4 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .footer-col {
    text-align: center;
  }
}
/* --- Universal line breaking fix --- */
* {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

/* Specifically force long strings and code to wrap */
code, pre {
  white-space: pre-wrap !important;
  word-break: break-all !important;
}

/* Prevent flex/grid parents from shrinking text containers to fixed width */
p, li, h1, h2, h3, h4 {
  min-width: 0;
  max-width: 100%;
  line-height: 1.6;
}

/* Responsive reflow fix for footer and hero */
.footer-col p,
.hero p {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
