/* bestdarknetmarket.net — site styles */

:root {
  --bg: #08080c;
  --surface: #111118;
  --card: #16161f;
  --card-hover: #1c1c28;
  --border: #2a2a38;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-muted: rgba(59, 130, 246, 0.12);
  --cyan: #06b6d4;
  --text: #ececf1;
  --text-secondary: #a1a1b0;
  --text-muted: #6b6b7b;
  --success: #22c55e;
  --warning: #eab308;
  --danger: #ef4444;
  --radius: 10px;
  --radius-lg: 14px;
  --container: 1200px;
  --header-h: 72px;
  --font: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  --font-display: Orbitron, var(--font);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.mobile-menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* —— Header —— */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 12, 0.92);
  border-bottom: 1px solid var(--border);
}

.header .container {
  padding-block: 1rem;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo a {
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
  text-transform: uppercase;
}

.logo-text:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: color 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--accent-muted);
  border-color: rgba(59, 130, 246, 0.35);
}

.nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.markets-dropdown {
  position: relative;
}

.dropdown-arrow {
  transition: transform 0.2s var(--ease);
}

#markets-toggle.active .dropdown-arrow {
  transform: rotate(180deg);
}

.markets-menu.dropdown-simple {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: min(300px, 90vw);
  padding: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 200;
}

.markets-menu.dropdown-simple.show,
.markets-dropdown:focus-within .markets-menu.dropdown-simple {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.markets-list {
  list-style: none;
}

.markets-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.markets-list a:hover {
  background: var(--accent-muted);
  color: var(--text);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.online {
  background: var(--success);
}

.status-dot.offline {
  background: var(--warning);
}

.status-dot.closed {
  background: var(--danger);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--accent-muted);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius);
  cursor: pointer;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* —— Mobile menu —— */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(320px, 88vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-header h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--text);
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.mobile-menu-close:hover {
  color: var(--text);
  border-color: var(--accent);
}

.mobile-menu-content {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  margin-bottom: 2px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--text);
  background: var(--accent-muted);
}

.mobile-menu-section {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.mobile-section-title {
  padding: 0.25rem 1rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* —— Main / sections —— */
.main {
  padding-block: 2rem 3rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2,
.features > h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 36rem;
  margin-inline: auto;
}

.section-spacer {
  height: 3rem;
}

/* —— Hero —— */
.hero {
  text-align: center;
  padding: 2.5rem 0 2rem;
  margin-bottom: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.hero-content {
  max-width: 40rem;
  margin-inline: auto;
}

.hero-main-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.hero-description {
  max-width: 40rem;
  margin: 0 auto 2rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.hero-panel {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.hero-panel-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.hero-metrics {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 32rem;
  margin: 0 auto 1.25rem;
}

@media (min-width: 640px) {
  .hero-metrics {
    grid-template-columns: repeat(4, 1fr);
    max-width: none;
  }
}

.hero-metric {
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hero-metric-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.hero-metric-value--text {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.hero-metric-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.35;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.hero-cta-primary,
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.hero-cta-primary {
  color: #fff;
  background: var(--accent);
}

.hero-cta-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.hero-cta-secondary {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
}

.hero-cta-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* —— GIF row —— */
.gif-section {
  margin-bottom: 2.5rem;
}

.gif-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gif-link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.15s, transform 0.15s;
}

.gif-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.gif-placeholder {
  background: var(--card);
  aspect-ratio: 364 / 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gif-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— Market cards —— */
.verified-markets {
  margin-bottom: 3rem;
  padding: 2rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
  padding-inline: 1.25rem;
  align-items: start;
}

.market-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s, background 0.15s;
  overflow: hidden;
  height: auto;
  align-self: start;
}

.market-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0.55rem 0.75rem;
  background: #0c0c12;
  border-bottom: 1px solid var(--border);
}

.market-card-logo img {
  display: block;
  width: auto;
  max-width: 92%;
  max-height: 2.65rem;
  height: auto;
  object-fit: contain;
}

.market-card .market-header,
.market-card .market-info,
.market-card .enter-btn {
  margin-inline: 0.85rem;
}

.market-card .market-header {
  margin-top: 0.7rem;
  margin-bottom: 0.35rem;
}

.market-card .market-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: none;
  min-height: 0;
  margin-bottom: 0.15rem;
}

.market-card .enter-btn {
  margin: 0.65rem 0.85rem 0.8rem;
  width: calc(100% - 1.7rem);
  padding: 0.55rem 0.85rem;
}

.market-card--closed {
  border-color: rgba(239, 68, 68, 0.22);
}

.market-card--offline {
  border-color: rgba(234, 179, 8, 0.22);
}

.market-card--closed .market-card-logo {
  background: linear-gradient(180deg, #16121a 0%, #121018 100%);
  border-bottom-color: rgba(239, 68, 68, 0.2);
}

.market-card--offline .market-card-logo {
  background: linear-gradient(180deg, #161512 0%, #121018 100%);
  border-bottom-color: rgba(234, 179, 8, 0.2);
}

.market-card--closed .market-card-logo img,
.market-card--offline .market-card-logo img {
  opacity: 1;
  filter: brightness(1.2) contrast(1.08);
  max-height: 2.75rem;
}

.market-card--closed .enter-btn,
.market-card--offline .enter-btn {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.market-card--closed .enter-btn:hover,
.market-card--offline .enter-btn:hover {
  background: var(--card-hover);
  color: var(--text);
  border-color: rgba(59, 130, 246, 0.35);
}

.market-card:hover {
  background: var(--card-hover);
  border-color: rgba(59, 130, 246, 0.45);
}

.market-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.market-header h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status.online {
  color: var(--success);
  background: rgba(34, 197, 94, 0.12);
}

.status.online .status-indicator {
  background: var(--success);
}

.status.offline {
  color: var(--warning);
  background: rgba(234, 179, 8, 0.12);
}

.status.offline .status-indicator {
  background: var(--warning);
}

.status.closed {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.12);
}

.status.closed .status-indicator {
  background: var(--danger);
}

.category {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.crypto-logos {
  display: flex;
  gap: 0.4rem;
}

.crypto-logo {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
  border-radius: 4px;
}

.enter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
}

.enter-btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-icon {
  flex-shrink: 0;
}

/* —— News —— */
.news-feed {
  margin-bottom: 3rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.news-card {
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s;
}

.news-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

.news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.news-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.news-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.news-tag.security {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
}

.news-tag.markets {
  color: #86efac;
  background: rgba(34, 197, 94, 0.15);
}

.news-tag.crypto {
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.15);
}

.news-tag.alert {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
}

.news-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.news-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* —— Status dashboard —— */
.status-dashboard {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.last-check {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: -1rem 0 1.25rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-item.online .status-indicator-dot {
  background: var(--success);
}

.status-item.offline .status-indicator-dot {
  background: var(--warning);
}

.market-name {
  flex: 1;
  font-weight: 600;
  color: var(--text);
}

.response-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* —— Quick start —— */
.quick-start {
  margin-bottom: 3rem;
}

.steps-container {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

.step {
  flex: 1 1 220px;
  max-width: 280px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.step-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--cyan);
}

.step h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.step-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}

.step-btn:hover {
  background: var(--accent-muted);
  color: var(--text);
}

.step-connector {
  display: none;
}

@media (min-width: 900px) {
  .steps-container {
    flex-wrap: nowrap;
    gap: 0;
  }

  .step-connector {
    display: block;
    flex: 0 0 2rem;
    align-self: center;
    height: 2px;
    background: var(--border);
    margin-top: 2rem;
  }
}

/* —— Features —— */
.features {
  margin-bottom: 3rem;
  text-align: center;
}

.features > h2 {
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.feature {
  padding: 1.5rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s;
}

.feature:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

.feature-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
}

.feature h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* —— Footer —— */
.footer {
  margin-top: 2rem;
  padding: 2.5rem 0 1.5rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.footer-section p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

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

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* —— Scroll to top —— */
.scroll-to-top,
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s, background 0.15s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.scroll-to-top.visible,
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover,
.scroll-top:hover {
  background: var(--accent-hover);
}

.scroll-to-top svg {
  width: 20px;
  height: 20px;
}

/* —— Scroll animations (light) —— */
@media (prefers-reduced-motion: no-preference) {
  .scroll-animate,
  .scroll-animate-left,
  .scroll-animate-right,
  .scroll-animate-scale {
    opacity: 0;
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }

  .scroll-animate {
    transform: translateY(16px);
  }

  .scroll-animate-left {
    transform: translateX(-16px);
  }

  .scroll-animate-right {
    transform: translateX(16px);
  }

  .scroll-animate-scale {
    transform: scale(0.98);
  }

  .scroll-animate.animate-in,
  .scroll-animate-left.animate-in,
  .scroll-animate-right.animate-in,
  .scroll-animate-scale.animate-in {
    opacity: 1;
    transform: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* —— Inner pages (about, markets, guides) —— */

.animated-bg {
  display: none !important;
}

.page-header {
  padding: 2.5rem 0 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.page-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 42rem;
  margin-inline: auto;
}

/* About */
.about-content {
  margin-bottom: 3rem;
}

.about-grid,
.principles-grid,
.advantages-grid,
.tips-grid,
.safety-grid,
.process-grid,
.cards-grid,
.software-grid,
.tools-grid,
.lessons-grid,
.reviews-grid,
.related-grid,
.alternative-markets-grid,
.wallet-grid,
.stats-grid {
  display: grid;
  gap: 1rem;
}

.about-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin-bottom: 2rem;
}

.about-card,
.principle,
.advantage,
.tip-item,
.purpose-content,
.process-step,
.practice-card,
.lesson-card,
.tool-card,
.software-card,
.category-card,
.review-card,
.related-card,
.wallet-card,
.crypto-card,
.step-card,
.warning-card,
.stat-card,
.stat-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.15s, transform 0.15s;
}

.about-card:hover,
.principle:hover,
.advantage:hover,
.related-card:hover,
.wallet-card:hover,
.category-card:hover {
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateY(-2px);
}

.about-icon,
.tip-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.about-icon svg,
.tip-icon svg {
  width: 56px;
  height: 56px;
}

.about-card h3,
.principle h4,
.purpose-text h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.about-card p,
.principle p,
.advantage p,
.tip-item p,
.purpose-section p,
.verification-process p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.principles-grid,
.advantages-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.tips-grid,
.safety-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.purpose-section,
.verification-process,
.security-tips,
.safety-tips,
.timeline-section,
.user-reviews,
.faq-section,
.highlight-section,
.lessons-learned,
.best-practices,
.markets-section,
.categories-section,
.intro-section {
  margin-bottom: 3rem;
}

.purpose-section h3,
.security-tips h3,
.timeline h3,
.verification-process h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.process-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.process-step h4,
.tip h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.tip {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Best markets list */
.best-markets {
  margin-bottom: 2.5rem;
}

.markets-filters {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.filter-group {
  flex: 1 1 220px;
}

.filter-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-btn {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.filter-btn:hover {
  color: var(--text);
  border-color: rgba(59, 130, 246, 0.5);
}

.filter-btn.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.filter-results {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.results-count strong {
  color: var(--text);
}

.reset-filters-btn {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  color: var(--danger);
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: var(--radius);
  cursor: pointer;
}

/* Compact filters inside hub markets list */
.markets-filters--compact {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
}

.markets-filters--compact .markets-filters__rows {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  align-items: flex-end;
}

.markets-filters--compact .filter-group--inline {
  flex: 1 1 auto;
  min-width: 0;
}

.markets-filters--compact .filter-group__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.markets-filters--compact .filter-buttons {
  gap: 0.3rem;
}

.markets-filters--compact .filter-btn {
  padding: 0.28rem 0.6rem;
  font-size: 0.72rem;
}

.markets-filters--compact .filter-results--compact {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
}

.hub-intro {
  max-width: 52rem;
  margin: 0 auto 1.25rem;
}

.hub-intro p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.hub-intro p:last-child {
  margin-bottom: 0;
}

.hub-choose-market {
  margin: 2.5rem 0;
}

.hub-choose-market .intro-section {
  max-width: 52rem;
  margin: 0 auto 1.25rem;
}

.hub-choose-market .intro-section h2 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.hub-choose-market .intro-section p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.comparison-table--two-col {
  min-width: 0;
}

.comparison-table--two-col th:first-child {
  width: 28%;
}

.comparison-table--two-col td:last-child {
  font-size: 0.9rem;
  line-height: 1.55;
}

.comparison-table--two-col .market-features-inline {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.section-prose {
  max-width: 52rem;
  margin: 0 auto 1.25rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.section-prose p {
  margin: 0 0 0.75rem;
}

.section-prose p:last-child {
  margin-bottom: 0;
}

.features .section-prose {
  margin-bottom: 1.5rem;
  text-align: center;
}

.feature p {
  font-size: 0.88rem;
  line-height: 1.55;
}

.reset-filters-btn:hover {
  background: rgba(239, 68, 68, 0.12);
}

.best-markets .markets-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
}

.market-item {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s;
}

.market-item:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

.market-card.hidden,
.market-item.hidden {
  display: none !important;
}

.market-thumb {
  flex: 0 0 140px;
  width: 140px;
  height: 88px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.market-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.market-item .market-info {
  flex: 1 1 240px;
  min-width: 0;
}

.market-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.market-header-row h3,
.market-info h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
  border: 1px solid transparent;
}

.status-badge.online {
  color: var(--success);
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
}

.status-badge.offline {
  color: var(--warning);
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.35);
}

.status-badge.closed {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}

.market-info > p,
.market-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.market-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0;
  padding: 0.75rem;
  background: var(--surface);
  border-radius: var(--radius);
}

.market-details-grid .detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.market-details-grid .detail-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.market-details-grid .detail-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.market-crypto-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0;
}

.crypto-badge {
  display: inline-flex;
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 4px;
  background: var(--accent-muted);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.crypto-badge.btc {
  color: #f7931a;
  background: rgba(247, 147, 26, 0.12);
  border-color: rgba(247, 147, 26, 0.3);
}

.crypto-badge.xmr {
  color: #ff6600;
  background: rgba(255, 102, 0, 0.12);
  border-color: rgba(255, 102, 0, 0.3);
}

.crypto-badge.eth {
  color: #627eea;
  background: rgba(98, 126, 234, 0.12);
  border-color: rgba(98, 126, 234, 0.3);
}

.crypto-badge.ltc {
  color: #bfbbbb;
  background: rgba(191, 187, 187, 0.12);
  border-color: rgba(191, 187, 187, 0.3);
}

.market-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0 0.75rem;
}

.market-features .feature {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-align: left;
}

.market-features .feature:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: none;
}

.enter-button,
.visit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  transition: background 0.15s;
}

.enter-button:hover,
.visit-btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

.market-rating {
  flex: 0 0 auto;
  text-align: center;
  padding: 0.5rem;
}

.rating-stars,
.rating {
  color: var(--warning);
  font-size: 0.95rem;
}

.rating-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Market detail pages */
.market-overview,
.market-details,
.market-advantages,
.market-links,
.disclaimer {
  margin-bottom: 2.5rem;
}

.market-status-notification {
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.market-status-notification h2,
.market-status-notification h3 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  margin-bottom: 0.75rem;
  color: var(--text);
}

.market-status-badge {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
}

.market-status-badge.offline {
  color: #000;
  background: var(--warning);
}

.market-status-badge.closed {
  color: #fff;
  background: var(--danger);
}

.market-status-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.alternative-markets h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.alternative-markets-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  margin-bottom: 1rem;
}

.alternative-market-card {
  display: block;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, transform 0.15s;
}

.alternative-market-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: inherit;
}

.alternative-market-card h5 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.alternative-market-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.status-text {
  font-size: 0.75rem;
  color: var(--success);
}

.visit-verified-markets-btn,
.visit-working-markets-btn {
  display: inline-flex;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius);
}

.visit-verified-markets-btn:hover,
.visit-working-markets-btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

.market-hero {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px);
  gap: 1.5rem;
  align-items: start;
}

.market-hero--with-links {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
}

.market-links-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.market-links-sidebar .market-links-container {
  padding: 1.15rem 1.25rem;
}

.market-links-sidebar .market-links-title {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.market-links-sidebar .market-links-note {
  font-size: 0.78rem;
  margin-bottom: 0.85rem;
}

.market-links-sidebar .onion-links-list {
  gap: 0.5rem;
}

.market-links-sidebar .onion-link-entry {
  padding: 0.6rem 0.7rem;
}

.market-links-sidebar .onion-link-entry .link-url {
  font-size: 0.72rem;
  line-height: 1.45;
}

.market-info-card {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.market-info-card h2,
.market-info-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  margin-bottom: 0.75rem;
  color: var(--text);
}

.market-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.market-photo {
  margin: 1.25rem 0;
  text-align: center;
}

.market-screenshot {
  width: 100%;
  max-width: 520px;
  height: auto;
  margin-inline: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.market-actions {
  padding: 1.5rem;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.enter-market-btn {
  display: block;
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  transition: background 0.15s;
}

.enter-market-btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.detail-card h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: var(--accent);
}

.categories-list,
.market-links,
.payment-methods,
.security-features,
.shipping-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.category-item,
.payment-method,
.security-feature,
.shipping-option {
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.market-link {
  font-size: 0.8rem;
  word-break: break-all;
  color: var(--cyan);
}

.market-links-container {
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.market-links-title {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.market-links-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.onion-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.onion-link-entry {
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.onion-link-entry .link-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.onion-link-entry .link-url {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text);
  word-break: break-all;
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  user-select: text;
}

/* Legacy link rows (other market pages) */
.link-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.link-item:last-child {
  margin-bottom: 0;
}

.link-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.link-url {
  font-size: 0.78rem;
  color: var(--text-secondary);
  word-break: break-all;
  font-family: ui-monospace, Consolas, monospace;
}

.disclaimer-content {
  padding: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Guides & articles */
.intro-section h2,
.wallet-section h2,
.step-section h2,
.category-comparison h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.tip-box {
  padding: 1.15rem 1.25rem;
  margin: 1.25rem 0;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius);
}

.tip-box h4 {
  color: var(--success);
  margin-bottom: 0.35rem;
}

.tip-box p {
  color: var(--text-secondary);
  margin: 0;
}

.warning-box {
  padding: 1.15rem 1.25rem;
  margin: 1.25rem 0;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius);
}

.warning-box h4 {
  color: var(--danger);
  margin-bottom: 0.35rem;
}

.info-box {
  padding: 1.15rem 1.25rem;
  margin: 1.25rem 0;
  background: var(--accent-muted);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius);
}

.info-box h4 {
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.step-section {
  margin: 2rem 0;
}

.step-card {
  position: relative;
  margin-bottom: 1.25rem;
  padding-top: 1.75rem;
}

.step-card .step-number {
  position: absolute;
  top: -0.65rem;
  left: 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.step-card p,
.step-card li {
  color: var(--text-secondary);
  line-height: 1.65;
}

.step-card ul,
.step-card ol {
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}

.wallet-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.wallet-card h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.wallet-type {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
}

.wallet-type.btc {
  color: #f7931a;
  background: rgba(247, 147, 26, 0.15);
}

.wallet-type.xmr {
  color: #ff6600;
  background: rgba(255, 102, 0, 0.15);
}

.wallet-link {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--accent-muted);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius);
}

.privacy-comparison,
.table-container {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.privacy-comparison table,
.comparison-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: var(--card);
}

.privacy-comparison th,
.privacy-comparison td,
.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.privacy-comparison th,
.comparison-table th {
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
}

.privacy-comparison td,
.comparison-table td {
  color: var(--text-secondary);
}

.comparison-table tr:hover td {
  background: var(--accent-muted);
}

.comparison-table .market-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.privacy-level.high {
  color: var(--success);
}

.privacy-level.medium {
  color: var(--warning);
}

.privacy-level.low {
  color: var(--danger);
}

.check-icon {
  color: var(--success);
  font-weight: 700;
}

.cross-icon {
  color: var(--text-muted);
}

.pgp-example,
.pgp-message {
  padding: 1rem;
  margin: 1rem 0;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* FAQ */
.faq-accordion {
  max-width: 48rem;
  margin-inline: auto;
}

.faq-item {
  margin-bottom: 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
}

.faq-question:hover {
  background: var(--accent-muted);
}

.faq-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer.open {
  max-height: 600px;
  padding: 0 1.15rem 1rem;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Reviews & timeline */
.reviews-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.review-card.positive {
  border-left: 3px solid var(--success);
}

.review-card.negative {
  border-left: 3px solid var(--danger);
}

.review-card.warning {
  border-left: 3px solid var(--warning);
}

.review-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.review-rating {
  color: var(--warning);
}

.review-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.review-text {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.author-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.review-type {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.timeline-content h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

/* Stats & misc cards */
.stats-infographic,
.highlight-section {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.market-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.market-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.market-card-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.winner-badge,
.closed-tag,
.feature-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.winner-badge {
  color: var(--success);
  background: rgba(34, 197, 94, 0.15);
}

.closed-tag {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.15);
}

.related-markets {
  margin: 2rem 0;
}

.related-markets h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.related-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.related-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.breadcrumb-nav {
  margin: 2rem 0 0.5rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
  border-bottom: 1px dashed rgba(59, 130, 246, 0.35);
}

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

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.principles,
.verification-steps,
.crypto-comparison {
  margin-bottom: 2rem;
}

.tips-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.safety-item {
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.crypto-card .crypto-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.crypto-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.crypto-features {
  list-style: none;
  margin: 0.75rem 0;
}

.crypto-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.crypto-features li:last-child {
  border-bottom: none;
}

.feature-icon.positive {
  color: var(--success);
}

.feature-icon.negative,
.danger {
  color: var(--danger);
}

.feature-icon.neutral,
.neutral {
  color: var(--warning);
}

.review-author {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.market-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0.5rem 0;
}

.highlight-market {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.red-flag {
  color: var(--danger);
  font-weight: 600;
}

.protection {
  color: var(--success);
}

.tools-grid,
.software-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.lessons-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.stat-card {
  text-align: center;
}

.stat-icon,
.lesson-icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.tool-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.tool-icon svg {
  width: 40px;
  height: 40px;
}

.tool-card {
  text-align: center;
}

.tool-card h3,
.software-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.tool-link,
.software-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.software-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.os-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.category-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.category-card h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.category-card .category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.category-card .category-item:last-child {
  border-bottom: none;
}

.category-card .category-item .name {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.category-card .category-item .value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.comparison-table .rating {
  display: flex;
  gap: 0.1rem;
}

.comparison-table .star {
  color: var(--warning);
  font-size: 0.9rem;
}

.comparison-table .star.empty {
  opacity: 0.2;
}

.lesson-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.lesson-card.red-flag {
  border-left: 3px solid var(--danger);
}

.lesson-card.protection {
  border-left: 3px solid var(--success);
}

.advantage h5 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.85rem 0 0.35rem;
  color: var(--text);
}

.advantage h6 {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.5rem 0 0.25rem;
  color: var(--text-secondary);
}

.main > h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 2rem 0 1.25rem;
  color: var(--text);
}

@media (max-width: 900px) {
  .market-hero,
  .market-hero--with-links {
    grid-template-columns: 1fr;
  }

  .market-links-sidebar {
    position: static;
  }

  .market-item {
    flex-direction: column;
  }

  .market-thumb {
    width: 100%;
    max-width: 200px;
  }

  .market-rating {
    text-align: left;
  }

  .market-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .market-links-container {
    padding: 1.15rem 1rem;
  }
}

/* —— Responsive —— */
@media (max-width: 768px) {
  .nav,
  .markets-dropdown {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .gif-container {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 400px) {
  .hero-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 1rem;
  }

  .markets-grid {
    grid-template-columns: 1fr;
    padding-inline: 1rem;
  }

  .verified-markets {
    padding: 1.5rem 0;
  }
}

.research-disclaimer {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #94a3b8;
  border-left: 3px solid rgba(59, 130, 246, 0.5);
  background: rgba(15, 23, 42, 0.4);
}

.research-disclaimer p {
  margin: 0;
}

.onion-verification-table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.onion-verification-table th,
.onion-verification-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  vertical-align: top;
}

.onion-verification-table th {
  color: #cbd5e1;
  font-weight: 600;
}

.onion-verification-table .link-url {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  word-break: break-all;
  margin: 0;
}

.status-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #86efac;
}
