:root {
  --bg: #12161c;
  --card: #1c222b;
  --card-hover: #232b36;
  --text: #e6edf3;
  --muted: #8b949e;
  --border: #30363d;
  --accent: #58a6ff;
  --accent2: #1f6feb;
  --success: #3fb950;
  --warning: #d29922;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #161b22;
  border-bottom: 1px solid var(--border);
}
.logo { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.host { color: var(--muted); font-size: 0.85rem; font-family: monospace; }
main { max-width: 760px; margin: 0 auto; padding: 1.75rem 1.25rem 3.5rem; }
main.wide { max-width: 1040px; }

h1 { font-size: 2rem; margin: 0.5rem 0 1rem; color: #fff; line-height: 1.25; }
h2 { font-size: 1.4rem; margin: 2rem 0 0.85rem; color: #f0f6fc; border-bottom: 1px solid #21262d; padding-bottom: 0.4rem; }
h3 { font-size: 1.1rem; margin: 1.25rem 0 0.5rem; color: #e6edf3; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.1rem; color: #c9d1d9; line-height: 1.6; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.95rem;
  border-radius: 6px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.15s, opacity 0.15s;
}
.btn:hover { opacity: 0.92; }
.btn-primary { background: var(--accent2); color: #fff; }
.btn-secondary { background: #30363d; color: #c9d1d9; }
.btn-secondary:hover { background: #3c444d; color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(88, 166, 255, 0.08); }
.btn-sm { padding: 0.35rem 0.65rem; font-size: 0.8rem; border-radius: 4px; }
.btn-block { width: 100%; }

/* Standard CTA Hero & Mirror Grid */
.cta-hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.75rem 0;
}
.cta-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.mirror-grid { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 640px) { .mirror-grid { grid-template-columns: repeat(3, 1fr); } }
.mirror-card {
  background: #12161c;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem;
}
.onion {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  word-break: break-all;
  margin: 0.5rem 0;
  color: #79c0ff;
  background: #161b22;
  padding: 0.4rem;
  border-radius: 4px;
}
.mirror-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.mirror-disclaimer { font-size: 0.82rem; color: var(--muted); margin-top: 1rem; line-height: 1.45; }

/* 1. Paxilcr: Catalog Grid & Cards */
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}
@media (min-width: 600px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }
.catalog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s, border-color 0.18s;
}
.catalog-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--card-hover);
}
.card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(88, 166, 255, 0.12);
  color: var(--accent);
  margin-bottom: 0.75rem;
  width: fit-content;
}
.card-title { font-size: 1.15rem; margin: 0 0 0.5rem; }
.card-title a { color: #f0f6fc; text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-desc { font-size: 0.88rem; color: var(--muted); margin: 0 0 1.25rem; line-height: 1.5; }
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #282f3a;
  padding-top: 0.85rem;
  margin-top: auto;
}
.card-tag { font-size: 0.75rem; color: #8b949e; }

/* 2. Article + Mirror Types Table */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.meta-badge {
  background: rgba(88, 166, 255, 0.15);
  color: var(--accent);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
}
.key-takeaways {
  background: rgba(31, 111, 235, 0.08);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.data-table, .url-data-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}
.data-table th, .url-data-table th {
  background: #161b22;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid var(--border);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}
.data-table td, .url-data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #21262d;
  vertical-align: middle;
}
.data-table tr:last-child td, .url-data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover, .url-data-table tr:hover { background: rgba(255, 255, 255, 0.03); }
.badge-live { color: var(--success); font-weight: 600; font-size: 0.8rem; display: inline-flex; align-items: center; gap: 0.3rem; }
.badge-info { color: var(--accent); font-weight: 600; font-size: 0.8rem; display: inline-flex; align-items: center; gap: 0.3rem; }
.speed-good { color: var(--success); font-weight: 500; font-size: 0.8rem; }

/* 3. Checklist + Sidebar Navigation */
.sidebar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}
@media (min-width: 820px) {
  .sidebar-grid { grid-template-columns: 240px 1fr; }
}
.sidebar-sticky {
  position: sticky;
  top: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}
.sidebar-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  text-decoration: none !important;
  color: #c9d1d9;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  transition: background 0.15s, color 0.15s;
}
.sidebar-link:hover { background: rgba(88, 166, 255, 0.1); color: var(--accent); }
.step-num { font-family: monospace; font-size: 0.75rem; color: var(--muted); font-weight: 700; }
.sidebar-cta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.sidebar-cta-label { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.5rem; }
.checklist-card-group { display: flex; flex-direction: column; gap: 0.9rem; margin: 1.5rem 0; }
.checklist-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.15rem;
}
.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--success);
  color: #12161c;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.check-body h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.check-body p { margin: 0; font-size: 0.88rem; color: #c9d1d9; line-height: 1.5; }

/* 4. Top URL Table Section */
.top-url-table-section {
  margin: 1.5rem 0 2.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}
.table-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.table-header-bar h2 { margin: 0; font-size: 1.25rem; border: none; padding: 0; }
.live-pill {
  font-size: 0.75rem;
  background: rgba(63, 185, 80, 0.15);
  color: var(--success);
  border: 1px solid rgba(63, 185, 80, 0.4);
  border-radius: 20px;
  padding: 0.25rem 0.65rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.onion-table-cell {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  word-break: break-all;
  color: #79c0ff;
  background: #12161c;
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
}
.action-cell { white-space: nowrap; display: flex; gap: 0.4rem; }

/* 5. Split Layout: Text Column + Sidebar Mirrors */
.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}
@media (min-width: 860px) {
  .split-grid { grid-template-columns: 1fr 320px; }
}
.mirror-sticky-widget {
  position: sticky;
  top: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}
.widget-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
}
.widget-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--success);
  background: rgba(63, 185, 80, 0.15);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  margin-bottom: 0.35rem;
}
.widget-header h3 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.widget-subtitle { margin: 0; font-size: 0.8rem; color: var(--muted); }
.widget-mirror-item {
  background: #12161c;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem;
  margin-bottom: 0.75rem;
}
.widget-mirror-item h4 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.widget-safety-tip {
  background: rgba(88, 166, 255, 0.08);
  border-left: 3px solid var(--accent);
  padding: 0.75rem;
  border-radius: 0 6px 6px 0;
  margin-top: 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
}
.widget-safety-tip strong { color: #f0f6fc; }
.widget-safety-tip p { margin: 0.25rem 0 0; color: #c9d1d9; }
.resource-list { padding-left: 1.25rem; }
.resource-list li { margin-bottom: 0.5rem; }

/* FAQ & Footer */
.faq details {
  margin: 0.85rem 0;
  background: var(--card);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.faq summary { cursor: pointer; font-weight: 600; color: #f0f6fc; }
.faq details[open] summary { margin-bottom: 0.65rem; color: var(--accent); }
.faq p { margin: 0; font-size: 0.92rem; color: #c9d1d9; }
footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.hub-back { margin-bottom: 1rem; }
.legal { max-width: 680px; margin: 2rem auto; padding: 1rem; }

/* Sticky mobile copy button */
.sticky-copy {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: rgba(18, 22, 28, 0.94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  z-index: 20;
}
@media (min-width: 768px) { .sticky-copy { display: none; } }
.sticky-btn { width: min(100%, 340px); }
body { padding-bottom: 4rem; }
@media (min-width: 768px) { body { padding-bottom: 0; } }

