/* ============================================
   MONTI CASINO — Shared Styles
   Dark crypto leaderboard aesthetic
   ============================================ */

:root {
  /* Background layers */
  --bg-deepest: #08080d;
  --bg-base: #0c0c14;
  --bg-surface: #13131e;
  --bg-elevated: #1a1a28;
  --bg-hover: #222234;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text-primary: #ededf0;
  --text-secondary: #a0a0b2;
  --text-muted: #6e6e85;
  --text-dim: #4d4d60;

  /* Accent — Electric Cyan */
  --accent: #00e5ff;
  --accent-dim: rgba(0, 229, 255, 0.15);
  --accent-glow: rgba(0, 229, 255, 0.08);

  /* Secondary Accent — Gold */
  --gold: #ffd700;
  --gold-dim: rgba(255, 215, 0, 0.12);

  /* Status */
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.12);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.12);
  --orange: #f97316;

  /* Rank colors */
  --rank-1: #ffd700;
  --rank-2: #c0c0c0;
  --rank-3: #cd7f32;

  /* Spacing */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deepest);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ============ LAYOUT ============ */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.container--wide {
  max-width: 1200px;
}

/* ============ HEADER ============ */
.header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--bg-deepest);
}

.logo-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

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

.header-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--text-primary);
}

.header-nav a.active {
  color: var(--accent);
}

/* ============ AUTHOR HERO ============ */
.author-hero {
  padding: 36px 0 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-photo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-photo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.author-photo-placeholder {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-muted);
}

.author-info {
  flex: 1;
  min-width: 0;
}

.author-info h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 4px;
}

.author-info h1 span {
  color: var(--text-secondary);
  font-weight: 500;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.author-tagline {
  font-size: 13px;
  color: var(--text-muted);
}

.author-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-dim);
}

.author-reddit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 3px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 100px;
  transition: all 0.2s;
}

.author-reddit:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.author-reddit svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.author-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.author-subtitle strong {
  color: var(--text-primary);
}

.author-updated {
  font-size: 11px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

/* ============ VOTE COLUMN ============ */
.vote-cell {
  width: 58px;
  text-align: center;
  padding-left: 8px !important;
  padding-right: 4px !important;
}

.vote-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.vote-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 26px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-dim);
  transition: all 0.15s;
  border-radius: 4px;
}

.vote-arrow:hover {
  background: var(--bg-hover);
  color: var(--accent);
}

.vote-arrow svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.vote-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1;
}

.vote-gold .vote-count { color: var(--rank-1); }
.vote-gold .vote-arrow { color: rgba(255, 215, 0, 0.35); }
.vote-gold .vote-arrow:hover { color: var(--rank-1); background: var(--gold-dim); }

.vote-silver .vote-count { color: var(--rank-2); }
.vote-silver .vote-arrow { color: rgba(192, 192, 192, 0.35); }
.vote-silver .vote-arrow:hover { color: var(--rank-2); background: rgba(192, 192, 192, 0.08); }

.vote-bronze .vote-count { color: var(--rank-3); }
.vote-bronze .vote-arrow { color: rgba(205, 127, 50, 0.35); }
.vote-bronze .vote-arrow:hover { color: var(--rank-3); background: rgba(205, 127, 50, 0.08); }

.tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 500;
}

.tag-nokyc {
  background: var(--green-dim);
  color: var(--green);
}

.tag-kyc {
  background: var(--bg-hover);
  color: var(--text-muted);
}

.tag-fast {
  background: var(--accent-dim);
  color: var(--accent);
}

/* ============ FILTER BAR ============ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 0;
}

.filter-group {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.filter-btn {
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  border-right: 1px solid var(--border-default);
}

.filter-btn:last-child {
  border-right: none;
}

.filter-btn:hover {
  color: var(--text-secondary);
  background: var(--bg-hover);
}

.filter-btn.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.filter-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

/* Info icon tooltip */
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--text-dim);
  font-size: 9px;
  font-weight: 600;
  font-style: normal;
  color: var(--text-dim);
  cursor: help;
  position: relative;
  vertical-align: middle;
  margin-left: 4px;
  line-height: 1;
}

.info-icon:hover {
  border-color: var(--text-secondary);
  color: var(--text-secondary);
}

.info-icon:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: normal;
  width: 220px;
  z-index: 100;
  pointer-events: none;
}

/* ============ RANKING TABLE ============ */
.ranking-table {
  width: 100%;
  border-collapse: collapse;
}

.ranking-table thead th {
  padding: 14px 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-base);
  position: sticky;
  top: 0;
  z-index: 2;
}

.ranking-table thead th:last-child {
  text-align: right;
}

.ranking-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.15s;
  cursor: pointer;
}

.ranking-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.ranking-table tbody tr:hover {
  background: var(--bg-surface);
}

.ranking-table tbody td {
  padding: 18px 20px;
  font-size: 15px;
  vertical-align: middle;
}

.rank-cell {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-muted);
  width: 48px;
}

.rank-cell .rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
}

.rank-cell .rank-num.top-1 {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.2);
  color: var(--rank-1);
}
.rank-cell .rank-num.top-2 {
  background: rgba(192, 192, 192, 0.08);
  border-color: rgba(192, 192, 192, 0.15);
  color: var(--rank-2);
}
.rank-cell .rank-num.top-3 {
  background: rgba(205, 127, 50, 0.08);
  border-color: rgba(205, 127, 50, 0.15);
  color: var(--rank-3);
}

.casino-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.casino-logo-sm {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  border: 1px solid var(--border-default);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted);
  overflow: hidden;
}

.casino-logo-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.casino-info {
  display: flex;
  flex-direction: column;
}

.casino-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
}

.casino-domain {
  font-size: 13px;
  color: var(--text-muted);
}

.volume-cell {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}

.wow-cell {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 500;
}

.wow-up { color: var(--green); }
.wow-down { color: var(--red); }
.wow-flat { color: var(--text-muted); }

.kyc-cell .kyc-badge {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
}

.kyc-none {
  background: var(--green-dim);
  color: var(--green);
}

.kyc-partial {
  background: var(--bg-hover);
  color: #ffffff;
}

.kyc-required {
  background: rgba(255, 160, 40, 0.12);
  color: #f59e0b;
}

.cta-cell {
  text-align: right;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--bg-deepest);
  font-weight: 700;
  font-size: 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  background: #33ebff;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

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

.cta-btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  box-shadow: none;
}

/* ============ METHODOLOGY CARD ============ */
.methodology {
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
}

.methodology-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.methodology p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.methodology a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============ FOOTER ============ */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border-default);
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-size: 12px;
  color: var(--text-dim);
}

.footer-right {
  font-size: 11px;
  color: var(--text-dim);
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* ============ BONUS BADGE ============ */
.bonus-badge {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--gold-dim);
  color: var(--gold);
  font-weight: 500;
  white-space: nowrap;
}

/* ============ SECTION DIVIDER ============ */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0 0;
}

.section-header h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-default);
}

/* ============ TWO-COLUMN LAYOUT ============ */
.page-layout {
  display: flex;
  gap: 40px;
  padding-top: 36px;
}

.page-main {
  flex: 1;
  min-width: 0;
}

.page-sidebar {
  width: 300px;
  flex-shrink: 0;
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

/* ============ SIDEBAR WIDGET ============ */
.sidebar-widget {
  position: sticky;
  top: 24px;
}

.sidebar-widget-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 0;
}

/* ---- Sidebar Row (flat, like ranking table) ---- */
.sidebar-row {
  display: grid;
  grid-template-columns: auto 42px 1fr auto;
  gap: 0 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.15s;
}

.sidebar-row:hover {
  background: transparent;
}

.sidebar-vote {
  grid-column: 1;
}

.vote-widget--compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.vote-widget--compact .vote-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 26px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-dim);
  transition: all 0.15s;
  border-radius: 4px;
  padding: 0;
}

.vote-widget--compact .vote-arrow:hover {
  background: var(--bg-hover);
  color: var(--accent);
}

.vote-widget--compact .vote-arrow svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.vote-widget--compact .vote-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1;
}

.vote-widget--compact.vote-gold .vote-count { color: var(--rank-1); }
.vote-widget--compact.vote-gold .vote-arrow { color: rgba(255, 215, 0, 0.35); }
.vote-widget--compact.vote-gold .vote-arrow:hover { color: var(--rank-1); background: var(--gold-dim); }

.vote-widget--compact.vote-silver .vote-count { color: var(--rank-2); }
.vote-widget--compact.vote-silver .vote-arrow { color: rgba(192, 192, 192, 0.35); }
.vote-widget--compact.vote-silver .vote-arrow:hover { color: var(--rank-2); background: rgba(192, 192, 192, 0.08); }

.vote-widget--compact.vote-bronze .vote-count { color: var(--rank-3); }
.vote-widget--compact.vote-bronze .vote-arrow { color: rgba(205, 127, 50, 0.35); }
.vote-widget--compact.vote-bronze .vote-arrow:hover { color: var(--rank-3); background: rgba(205, 127, 50, 0.08); }

.sidebar-logo {
  grid-column: 2;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.sidebar-name {
  grid-column: 3;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.sidebar-kyc {
  display: none;
}

.sidebar-kyc .kyc-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.sidebar-cta {
  grid-column: 4;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}

.sidebar-cta:hover {
  background: var(--accent-dim);
}

.sidebar-meta {
  display: none;
}

.sidebar-domain {
  font-size: 11px;
  color: var(--text-muted);
}

.sidebar-volume {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.sidebar-wow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
}

.sidebar-wow.wow-up { color: var(--green); }
.sidebar-wow.wow-down { color: var(--red); }
.sidebar-wow.wow-flat { color: var(--text-muted); }

.sidebar-more {
  padding-top: 14px;
  text-align: center;
}

.sidebar-more a {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.sidebar-more a:hover {
  text-decoration: underline;
}

/* ============ BLOG CARDS ============ */
.blog-card {
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}

.blog-card:hover {
  border-color: var(--border-strong);
}

.blog-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card-title a:hover {
  color: var(--accent);
}

.blog-card-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.blog-card-link:hover {
  text-decoration: underline;
}

/* ============ ARTICLE CONTENT ============ */
.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-default);
}

.article-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.article-meta {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-meta strong {
  color: var(--text-secondary);
}

.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
}

.article-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.article-body li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 6px;
}

.article-body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--bg-surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-body blockquote p {
  margin-bottom: 0;
  font-style: italic;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body strong {
  color: var(--text-primary);
}

/* ============ WALLET MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 400px;
  max-width: 90vw;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.15s;
}

.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.wallet-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.wallet-option:last-child {
  margin-bottom: 0;
}

.wallet-option:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.wallet-option.connecting {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.wallet-option.connected {
  border-color: var(--green);
  background: var(--green-dim);
}

.wallet-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.wallet-name {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
}

.wallet-status {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.wallet-option.connecting .wallet-status {
  color: var(--gold);
}

.wallet-option.connected .wallet-status {
  color: var(--green);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .author-hero {
    padding: 28px 0 20px;
  }
  .author-info h1 {
    font-size: 18px;
  }
  .author-meta {
    gap: 6px;
  }
  .ranking-table thead th:nth-child(4),
  .ranking-table tbody td:nth-child(4),
  .ranking-table thead th:nth-child(5),
  .ranking-table tbody td:nth-child(5) {
    display: none;
  }
  .page-layout {
    flex-direction: column;
  }
  .page-sidebar {
    width: 100%;
  }
  .sidebar-widget {
    position: static;
  }
  .sidebar-card-stats {
    flex-wrap: wrap;
  }
  .article-title {
    font-size: 24px;
  }
  .footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ============ WALLET-VERIFIED VOTING STATES ============ */

/* Voted arrow — stays cyan, no background box */
.vote-arrow.voted {
  color: var(--accent) !important;
  background: transparent !important;
}

/* All arrows locked after voting — dimmed, normal cursor */
.vote-arrow.vote-locked {
  opacity: 0.3;
  cursor: pointer;
}

/* Voted arrow stays bright even when locked */
.vote-arrow.vote-locked.voted {
  opacity: 1;
  color: var(--accent) !important;
  cursor: default;
}

/* Disabled state after voting (one vote per wallet) */
.vote-arrow.voted-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Wallet error state */
.wallet-option.error .wallet-status {
  color: var(--red);
}

/* ── Toast notification ── */
.vote-status-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 9999;
  white-space: nowrap;
}

.vote-status-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.vote-status-toast--success {
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--green);
}

.vote-status-toast--error {
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--red);
}

/* ── Wallet Connect Button ──────────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.wallet-btn-wrap {
  position: relative;
  margin-left: auto;
}

.wallet-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}

.wallet-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.wallet-btn[data-state="connected"] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.wallet-btn-icon {
  font-size: 1rem;
  line-height: 1;
}

.wallet-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 10px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.wallet-dropdown-address {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 4px 6px 10px;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 8px;
  word-break: break-all;
}

.wallet-dropdown-disconnect {
  width: 100%;
  padding: 7px 10px;
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  color: var(--red);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.wallet-dropdown-disconnect:hover {
  background: var(--red-dim);
  border-color: var(--red);
}

/* ============================================================
   ARTICLE COMPONENTS — Rich content elements
   ============================================================ */

/* ── Reading progress bar ── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── Article table ── */
.article-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.article-table thead th {
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
}

.article-table tbody td {
  padding: 12px 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

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

.article-table tbody tr:hover td {
  background: var(--bg-surface);
}

.article-table tbody td:first-child {
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

.article-table tbody td strong {
  color: var(--text-primary);
}

/* ── Stat callout box ── */
.stat-callout {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 24px 0;
}

.stat-callout-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  line-height: 1;
}

.stat-callout-label {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Stat grid (multiple stats side by side) ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.stat-card-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.stat-card-value.green { color: var(--green); }
.stat-card-value.cyan  { color: var(--accent); }
.stat-card-value.gold  { color: var(--gold); }

.stat-card-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Casino card (mini profile) ── */
.casino-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin: 20px 0;
  transition: border-color 0.15s;
}

.casino-card:hover {
  border-color: var(--border-strong);
}

.casino-card-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.casino-card > div {
  flex: 1;
  min-width: 0;
}

.casino-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.casino-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.casino-card-domain {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.casino-card-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

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

.casino-card-stat-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}

.casino-card-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.casino-card-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--accent);
  color: #000;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.casino-card-cta:hover {
  opacity: 0.85;
  text-decoration: none;
  color: #000;
}

/* ── Section label chip ── */
.section-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}

.section-chip.chip-cyan   { background: var(--accent-dim); color: var(--accent); }
.section-chip.chip-gold   { background: var(--gold-dim); color: var(--gold); }
.section-chip.chip-green  { background: var(--green-dim); color: var(--green); }
.section-chip.chip-red    { background: var(--red-dim); color: var(--red); }

/* ── Highlight / pull quote ── */
.pull-quote {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--bg-surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 17px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ── Info / warning / tip boxes ── */
.callout-box {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.callout-box.info    { background: rgba(0,229,255,0.06); border: 1px solid rgba(0,229,255,0.15); }
.callout-box.warning { background: rgba(249,115,22,0.06); border: 1px solid rgba(249,115,22,0.2); }
.callout-box.tip     { background: rgba(34,197,94,0.06); border: 1px solid rgba(34,197,94,0.15); }

.callout-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.4;
}

.callout-box strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

/* ── In-article CTA button ── */
.article-cta-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 32px 0;
}

.article-cta-text {
  font-size: 15px;
  color: var(--text-secondary);
}

.article-cta-text strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.article-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--accent);
  color: #000;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.article-cta-btn:hover {
  opacity: 0.85;
  text-decoration: none;
  color: #000;
}

/* ── Comparison pros/cons ── */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.pros-cons-col {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px;
}

.pros-cons-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.pros-cons-col.pros .pros-cons-title { color: var(--green); }
.pros-cons-col.cons .pros-cons-title { color: var(--red); }

.pros-cons-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pros-cons-list li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 5px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.pros-cons-list li:last-child { border-bottom: none; }

.pros .pros-cons-list li::before { content: '+'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.cons .pros-cons-list li::before { content: '−'; color: var(--red); font-weight: 700; flex-shrink: 0; }

/* ── FAQ accordion ── */
.faq-list {
  margin: 24px 0;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}

.faq-question:hover { background: var(--bg-surface); }

.faq-question::after {
  content: '+';
  font-size: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ── Article disclosure footer ── */
.article-disclosure {
  margin-top: 48px;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Article table: mobile ── */
@media (max-width: 640px) {
  .pros-cons { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .casino-card { flex-wrap: wrap; }
  .casino-card-cta { width: 100%; justify-content: center; }
  .article-cta-block { flex-direction: column; align-items: flex-start; }
}
