/* ===== CSS Custom Properties ===== */
:root {
  --bg: #0a0f0a;
  --bg-2: #111811;
  --bg-3: #182018;
  --accent: #16a34a;
  --accent-bright: #22c55e;
  --accent-dim: rgba(22, 163, 74, 0.1);
  --text: #f0fdf4;
  --text-2: #86efac;
  --text-3: #4ade80;
  --text-muted: #6b7280;
  --live: #4ade80;
  --offline: #ef4444;
  --border: rgba(22, 163, 74, 0.2);
  --border-strong: rgba(22, 163, 74, 0.4);
  --table-stripe: rgba(22, 163, 74, 0.04);

  --font-display: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "Fira Code", "Cascadia Code", "Consolas", monospace;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  --radius: 4px;
  --radius-sm: 2px;
  --max-w: 1160px;
  --gap: 24px;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
}
a:hover {
  color: var(--text-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.35em; }

code, kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1px 5px;
  color: var(--text-3);
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.page-wrap {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

/* ===== Header ===== */
.site-header {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-3);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.site-logo:hover { color: var(--accent-bright); text-decoration: none; }

.logo-bracket { color: var(--text-muted); }

.logo-img {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  object-fit: contain;
  flex-shrink: 0;
}

.header-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav a {
  font-size: 0.8125rem;
  color: var(--text-2);
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a.active {
  background: var(--accent-dim);
  color: var(--text-3);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 6px 10px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 52px 0 40px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(22, 163, 74, 0.018) 2px,
    rgba(22, 163, 74, 0.018) 4px
  );
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 6px var(--live);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--live); }
  50% { opacity: 0.65; box-shadow: 0 0 12px var(--live); }
}

.hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 0.975rem;
  color: var(--text-2);
  max-width: 600px;
  margin-bottom: 0;
}

/* ===== Stats Bar ===== */
.stats-bar {
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.stats-inner {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 20px 4px 0;
  margin-right: 20px;
  border-right: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.775rem;
}
.stat-item:last-child {
  border-right: none;
}

.stat-num {
  color: var(--text-3);
  font-weight: 600;
  font-size: 0.95rem;
}

.stat-label {
  color: var(--text-muted);
}

/* ===== Main Content ===== */
.main-content {
  padding: 40px 0 60px;
}

/* ===== Section Header ===== */
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

.section-title::before {
  content: "> ";
  color: var(--accent);
  opacity: 0.7;
}

.section-divider {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===== Market Table ===== */
.market-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}

.market-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.market-table thead {
  background: var(--bg-3);
}

.market-table th {
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.market-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.market-table tr:last-child td {
  border-bottom: none;
}

.market-table tbody tr:nth-child(even) {
  background: var(--table-stripe);
}

.market-table tbody tr:hover {
  background: rgba(22, 163, 74, 0.07);
  transition: background 0.1s;
}

.market-table tbody tr.featured-row {
  background: rgba(22, 163, 74, 0.06);
  border-left: 2px solid var(--accent);
}

.market-table tbody tr.featured-row:hover {
  background: rgba(22, 163, 74, 0.12);
}

.market-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.market-name-link {
  font-weight: 600;
  color: var(--text);
}
.market-name-link:hover { color: var(--accent-bright); }

.badge-featured {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(22, 163, 74, 0.2);
  border: 1px solid rgba(22, 163, 74, 0.5);
  color: var(--text-3);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--live);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.status-offline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--offline);
  font-weight: 600;
}

.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse-dot 2s ease-in-out infinite;
}

.dot-offline {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--offline);
}

.check-yes {
  color: var(--live);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.check-no {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.uptime-val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-3);
}

.payment-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-2);
}

.access-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-bright);
  border: 1px solid var(--border-strong);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.access-btn:hover {
  background: var(--accent-dim);
  color: var(--text-3);
  text-decoration: none;
  border-color: var(--accent);
}

/* ===== Mobile Market Cards ===== */
.market-cards {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.market-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.market-card.featured-card {
  border-left: 3px solid var(--accent);
  background: rgba(22, 163, 74, 0.04);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-name {
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.card-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-field-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.card-field-value {
  font-size: 0.85rem;
  color: var(--text-2);
}

/* ===== Two-column layout ===== */
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ===== Info Cards ===== */
.info-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.info-card h3 {
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--text-2);
}

/* ===== Verification Box ===== */
.verification-box {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 32px;
}

.verification-box p {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 0;
}

.verification-box strong { color: var(--text-3); }

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--accent-dim); }

.faq-q .faq-arrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding: 0 20px 16px;
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* ===== Omega Profile Page ===== */
.omega-hero {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}
.omega-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(22, 163, 74, 0.018) 2px,
    rgba(22, 163, 74, 0.018) 4px
  );
  pointer-events: none;
}

.omega-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.omega-stat {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: center;
}

.omega-stat-num {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-3);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.omega-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ===== Onion Address Box ===== */
.onion-box {
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.onion-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.onion-addr-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.onion-addr {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-3);
  word-break: break-all;
  flex: 1;
  line-height: 1.5;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-dim);
  border: 1px solid var(--border-strong);
  color: var(--text-3);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.copy-btn:hover {
  background: rgba(22, 163, 74, 0.18);
  color: var(--text);
}
.copy-btn.copied {
  background: rgba(74, 222, 128, 0.15);
  border-color: var(--accent-bright);
  color: var(--accent-bright);
}

.onion-warning {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ===== CTA Box ===== */
.cta-box {
  background: rgba(22, 163, 74, 0.07);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  text-align: center;
}

.cta-box p {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 14px;
}

.cta-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.15s;
}
.cta-primary:hover {
  background: var(--accent-bright);
  color: #fff;
  text-decoration: none;
}

/* ===== Sidebar ===== */
.sidebar-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}

.sidebar-card-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.sidebar-list {
  list-style: none;
  padding: 0;
}

.sidebar-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.83rem;
}
.sidebar-list li:last-child { border-bottom: none; }

.sidebar-list .s-name { color: var(--text-2); }
.sidebar-list .s-val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

/* ===== Article Content ===== */
.article-content {
  max-width: 740px;
}

.article-content h2 {
  font-size: 1.25rem;
  margin: 32px 0 14px;
  color: var(--text);
}

.article-content h2::before {
  content: "# ";
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.9em;
  opacity: 0.8;
}

.article-content h3 {
  font-size: 1.05rem;
  margin: 24px 0 10px;
  color: var(--text-2);
}

.article-content p {
  color: var(--text-2);
  line-height: 1.75;
}

.article-content ul, .article-content ol {
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 1em;
}

.article-content li { margin-bottom: 0.45em; }

.highlight-box {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
}
.highlight-box p {
  font-size: 0.875rem;
  color: var(--text-2);
  margin: 0;
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 24px 0;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.compare-table th {
  background: var(--bg-3);
  padding: 10px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.compare-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tbody tr:nth-child(even) { background: var(--table-stripe); }

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 14px 0;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
}
.breadcrumb a:hover { color: var(--text-2); }

.breadcrumb .sep {
  font-family: var(--font-mono);
  color: var(--border-strong);
}

.breadcrumb .current {
  color: var(--text-2);
}

/* ===== Internal Link Block ===== */
.internal-links {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 28px 0;
}

.internal-links h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.internal-links ul {
  list-style: none;
  padding: 0;
}

.internal-links li {
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.internal-links li:last-child { border-bottom: none; }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.footer-nav {
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 0;
}

.footer-nav a {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-nav a:hover { color: var(--text-2); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  .omega-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .market-table-wrap {
    display: none;
  }
  .market-cards {
    display: flex;
  }
  .site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 16px;
    gap: 2px;
    z-index: 99;
  }
  .site-nav.open { display: flex; }
  .site-nav a { display: block; padding: 8px 10px; }
  .nav-toggle { display: block; }
  .header-meta { display: none; }
  .hero { padding: 36px 0 28px; }
  .stats-inner { gap: 8px; }
  .stat-item { border-right: none; padding-right: 0; margin-right: 0; }
  .onion-addr-row { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .omega-stats-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}
