/* ===========================================
   TRADING PORTAL - Professional CMC-style
   Clean, data-focused design
   =========================================== */

:root {
  --tp-bg: #0b0e11;
  --tp-bg-secondary: #1e2329;
  --tp-bg-tertiary: #2b3139;
  --tp-text: #eaecef;
  --tp-text-secondary: #848e9c;
  --tp-text-muted: #5e6673;
  --tp-border: #2b3139;
  --tp-accent: #f0b90b;
  --tp-accent-hover: #d9a60b;
  --tp-green: #0ecb81;
  --tp-red: #f6465d;
  --tp-blue: #1890ff;
  --tp-link: #f0b90b;
}

/* Base */
.trading-portal {
  background: var(--tp-bg);
  color: var(--tp-text);
  min-height: 100vh;
  padding-top: 130px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.tp-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================================
   HERO - Minimal, data-focused
   =========================================== */
.tp-hero {
  background: var(--tp-bg);
  padding: 48px 24px 32px;
  border-bottom: 1px solid var(--tp-border);
}

.tp-hero__content {
  max-width: 1400px;
  margin: 0 auto;
}

.tp-hero__title {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--tp-text);
}

.tp-hero__subtitle {
  font-size: 14px;
  color: var(--tp-text-secondary);
  margin: 0 0 24px;
}

/* Market Stats Row */
.tp-market-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 16px 0;
}

.tp-market-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tp-market-stat__label {
  font-size: 12px;
  color: var(--tp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tp-market-stat__value {
  font-size: 20px;
  font-weight: 600;
  color: var(--tp-text);
}

.tp-market-stat__change {
  font-size: 12px;
  font-weight: 500;
}

.tp-market-stat__change--up { color: var(--tp-green); }
.tp-market-stat__change--down { color: var(--tp-red); }

/* ===========================================
   TABS / NAVIGATION
   =========================================== */
.tp-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--tp-border);
  padding: 0 24px;
  background: var(--tp-bg);
}

.tp-tab {
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--tp-text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tp-tab:hover {
  color: var(--tp-text);
}

.tp-tab--active {
  color: var(--tp-accent);
  border-bottom-color: var(--tp-accent);
}

/* ===========================================
   SECTION HEADERS
   =========================================== */
.tp-section {
  padding: 32px 0;
}

.tp-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.tp-section__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--tp-text);
  margin: 0;
}

.tp-section__link {
  font-size: 14px;
  color: var(--tp-accent);
  text-decoration: none;
}

.tp-section__link:hover {
  color: var(--tp-accent-hover);
}

/* ===========================================
   DATA TABLE - Simple, explicit styles
   =========================================== */
.tp-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

table.tp-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background: #0b0e11;
}

table.tp-table thead tr {
  background: #0b0e11;
}

table.tp-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: #5e6673;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #2b3139;
  white-space: nowrap;
}

table.tp-table td {
  padding: 16px;
  text-align: left;
  font-size: 14px;
  color: #eaecef;
  border-bottom: 1px solid #2b3139;
  vertical-align: middle;
  white-space: nowrap;
}

table.tp-table th.text-right,
table.tp-table td.text-right {
  text-align: right;
}

table.tp-table th.text-center,
table.tp-table td.text-center {
  text-align: center;
}

table.tp-table tbody tr {
  cursor: pointer;
  background: #0b0e11;
}

table.tp-table tbody tr:hover {
  background: #1e2329;
}

/* Rank */
.tp-table__rank {
  color: #848e9c;
  width: 40px;
  min-width: 40px;
}

/* Name cell - single line */
.tp-table__name-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.tp-table__logo {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: #2b3139;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.tp-table__logo img {
  width: 24px;
  height: 24px;
  object-fit: cover;
}

.tp-table__logo--square {
  border-radius: 4px;
}

.tp-table__logo-fallback {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #eaecef;
}

/* Price */
.tp-table__price {
  font-weight: 500;
  font-family: monospace;
}

/* Change % */
.tp-table__change {
  font-weight: 500;
  font-family: monospace;
}
.tp-table__change--up { color: #0ecb81; }
.tp-table__change--down { color: #f6465d; }

/* Market cap / Volume */
.tp-table__mcap,
.tp-table__volume {
  font-family: monospace;
  color: #848e9c;
}

/* Badge */
.tp-table__badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
  text-transform: uppercase;
}
.tp-table__badge--cex {
  background: rgba(240, 185, 11, 0.15);
  color: #f0b90b;
}
.tp-table__badge--dex {
  background: rgba(24, 144, 255, 0.15);
  color: #1890ff;
}

/* Rating */
.tp-table__rating {
  font-weight: 600;
}
.tp-table__rating--high { color: #0ecb81; }
.tp-table__rating--medium { color: #f0b90b; }
.tp-table__rating--low { color: #f6465d; }

/* Sparkline */
.tp-table__sparkline {
  width: 100px;
  height: 32px;
  display: inline-block;
}
.tp-table__sparkline svg {
  width: 100%;
  height: 100%;
  display: block;
}
.tp-sparkline__line {
  fill: none;
  stroke-width: 1.5;
}
.tp-sparkline__line--up { stroke: #0ecb81; }
.tp-sparkline__line--down { stroke: #f6465d; }
.tp-sparkline__area { opacity: 0.15; }
.tp-sparkline__area--up { fill: #0ecb81; }
.tp-sparkline__area--down { fill: #f6465d; }

/* Sortable */
table.tp-table th[data-sort] {
  cursor: pointer;
}
table.tp-table th[data-sort]:hover {
  color: #eaecef;
}

/* Search */
.tp-filter-bar {
  margin-bottom: 16px;
}
.tp-search {
  position: relative;
  max-width: 300px;
}
.tp-search__input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: #1e2329;
  border: 1px solid #2b3139;
  border-radius: 6px;
  color: #eaecef;
  font-size: 14px;
}
.tp-search__input:focus {
  outline: none;
  border-color: #f0b90b;
}
.tp-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #5e6673;
}

/* ===========================================
   QUICK CARDS - For category overview
   =========================================== */
.tp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.tp-card {
  background: #1e2329;
  border: 1px solid #2b3139;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  transition: all 0.2s;
}

.tp-card:hover {
  border-color: #f0b90b;
  transform: translateY(-2px);
}

.tp-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2b3139 0%, #1e2329 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #f0b90b;
  margin-bottom: 16px;
}

.tp-card__title {
  font-size: 16px;
  font-weight: 600;
  color: #eaecef;
  margin: 0 0 8px;
}

.tp-card__desc {
  font-size: 13px;
  color: #848e9c;
  line-height: 1.5;
  margin: 0 0 12px;
}

.tp-card__count {
  font-size: 12px;
  font-weight: 500;
  color: #f0b90b;
}

/* ===========================================
   DETAIL PAGE - Exchange/Token
   =========================================== */
.tp-detail {
  padding: 24px;
}

.tp-detail__header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--tp-border);
  margin-bottom: 24px;
}

.tp-detail__logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--tp-bg-tertiary);
  flex-shrink: 0;
  overflow: hidden;
}

.tp-detail__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tp-detail__logo--square {
  border-radius: 12px;
}

.tp-detail__info {
  flex-grow: 1;
}

.tp-detail__name {
  font-size: 24px;
  font-weight: 600;
  color: var(--tp-text);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tp-detail__symbol {
  font-size: 14px;
  color: var(--tp-text-muted);
  font-weight: 400;
}

.tp-detail__meta {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.tp-detail__price-section {
  text-align: right;
}

.tp-detail__price {
  font-size: 28px;
  font-weight: 600;
  color: var(--tp-text);
  font-family: 'SF Mono', Monaco, monospace;
}

.tp-detail__change {
  font-size: 16px;
  font-weight: 500;
  margin-top: 4px;
}

.tp-detail__change--up { color: var(--tp-green); }
.tp-detail__change--down { color: var(--tp-red); }

/* Inline Header (stats on same row) */
.tp-detail__header--inline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.tp-detail__header--inline .tp-detail__info {
  flex: 1;
  min-width: 0;
}

.tp-detail__inline-stats {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-shrink: 0;
}

.tp-detail__inline-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 90px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--tp-bg-secondary) 0%, var(--tp-bg-tertiary) 100%);
  border: 1px solid var(--tp-border);
  border-radius: 8px;
}

.tp-detail__inline-stat-label {
  font-size: 10px;
  color: var(--tp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tp-detail__inline-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--tp-text);
  font-family: 'SF Mono', Monaco, monospace;
}

.tp-detail__rating-box {
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .tp-detail__header--inline {
    flex-wrap: wrap;
  }

  .tp-detail__inline-stats {
    width: 100%;
    justify-content: flex-start;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--tp-border);
  }
}

/* Token Header with Stats Row */
.tp-detail__header--token {
  flex-wrap: wrap;
}

.tp-detail__header-stats {
  width: 100%;
  display: flex;
  gap: 32px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--tp-border);
}

.tp-detail__header-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tp-detail__header-stat-label {
  font-size: 12px;
  color: var(--tp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tp-detail__header-stat-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--tp-text);
  font-family: 'SF Mono', Monaco, monospace;
}

@media (max-width: 768px) {
  .tp-detail__header-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* Detail Stats Grid */
.tp-detail__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--tp-border);
  border: 1px solid var(--tp-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}

.tp-detail__stat {
  background: var(--tp-bg-secondary);
  padding: 16px;
}

.tp-detail__stat-label {
  font-size: 12px;
  color: var(--tp-text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tp-detail__stat-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--tp-text);
  font-family: 'SF Mono', Monaco, monospace;
}

/* Detail Info Table */
.tp-detail__table {
  width: 100%;
  border-collapse: collapse;
}

.tp-detail__table tr {
  border-bottom: 1px solid var(--tp-border);
}

.tp-detail__table td {
  padding: 14px 0;
  font-size: 14px;
}

.tp-detail__table td:first-child {
  color: var(--tp-text-muted);
  width: 40%;
}

.tp-detail__table td:last-child {
  color: var(--tp-text);
  text-align: right;
  font-weight: 500;
}

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

.tp-detail__table a:hover {
  text-decoration: underline;
}

/* CTA Button */
.tp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--tp-accent);
  color: #000;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.tp-btn:hover {
  background: var(--tp-accent-hover);
}

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

.tp-btn--outline:hover {
  border-color: var(--tp-accent);
  color: var(--tp-accent);
  background: transparent;
}

/* About Section */
.tp-detail__about {
  background: var(--tp-bg-secondary);
  border-radius: 8px;
  padding: 24px;
  margin-top: 24px;
}

.tp-detail__about h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--tp-text);
  margin: 0 0 12px;
}

.tp-detail__about p {
  font-size: 14px;
  color: var(--tp-text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Features Grid */
.tp-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.tp-feature {
  background: var(--tp-bg-secondary);
  border: 1px solid var(--tp-border);
  border-radius: 6px;
  padding: 12px;
  text-align: center;
}

.tp-feature__label {
  font-size: 12px;
  color: var(--tp-text-muted);
  margin-bottom: 4px;
}

.tp-feature__value {
  font-size: 14px;
  font-weight: 600;
}

.tp-feature__value--yes { color: var(--tp-green); }
.tp-feature__value--no { color: var(--tp-red); }

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
  .tp-container {
    padding: 0 16px;
  }

  .tp-hero {
    padding: 32px 16px 24px;
  }

  .tp-hero__title {
    font-size: 22px;
  }

  .tp-market-stats {
    gap: 20px;
  }

  .tp-market-stat__value {
    font-size: 16px;
  }

  .tp-table {
    font-size: 13px;
  }

  .tp-table th,
  .tp-table td {
    padding: 12px 8px;
  }

  .tp-table__logo {
    width: 28px;
    height: 28px;
  }

  .tp-detail__header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .tp-detail__price-section {
    text-align: center;
    margin-top: 16px;
  }

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

/* Hide columns at different breakpoints - use tp-hide-* to avoid conflict with styles.css */
/* tp-hide-sm: hidden below 768px (mobile) */
/* tp-hide-md: hidden below 1024px (tablet + mobile) */
/* tp-hide-lg: hidden below 1280px (smaller desktops + tablet + mobile) */
/* tp-hide-xl: hidden below 1440px */

@media (max-width: 768px) {
  table.tp-table .tp-hide-sm {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  table.tp-table .tp-hide-md {
    display: none !important;
  }
}

@media (max-width: 1280px) {
  table.tp-table .tp-hide-lg {
    display: none !important;
  }
}

@media (max-width: 1440px) {
  table.tp-table .tp-hide-xl {
    display: none !important;
  }
}

/* Yes/No indicator styling */
.tp-yes { color: #0ecb81; }
.tp-no { color: #5e6673; }
.tp-yes-text { color: #0ecb81; font-weight: 500; }
.tp-no-text { color: #f6465d; font-weight: 500; }

/* ===========================================
   CATEGORIES SECTION
   =========================================== */
.tp-categories {
  padding: 32px 0;
  background: #1e2329;
  border-bottom: 1px solid #2b3139;
}

/* ===========================================
   SECTION INTRO TEXT
   =========================================== */
.tp-section__intro {
  font-size: 14px;
  color: var(--tp-text-secondary);
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 800px;
}

/* ===========================================
   EDUCATIONAL CONTENT
   =========================================== */
.tp-content {
  padding: 48px 0 32px;
  border-top: 1px solid var(--tp-border);
  margin-top: 32px;
}

.tp-content__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--tp-text);
  margin: 0 0 24px;
}

.tp-content__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.tp-content__block {
  background: var(--tp-bg-secondary);
  border: 1px solid var(--tp-border);
  border-radius: 8px;
  padding: 24px;
}

.tp-content__block h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--tp-text);
  margin: 0 0 12px;
}

.tp-content__block p {
  font-size: 14px;
  color: var(--tp-text-secondary);
  line-height: 1.7;
  margin: 0 0 12px;
}

.tp-content__block p:last-child {
  margin-bottom: 0;
}

.tp-content__block ul {
  margin: 12px 0 0;
  padding: 0 0 0 20px;
}

.tp-content__block li {
  font-size: 14px;
  color: var(--tp-text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.tp-content__block li:last-child {
  margin-bottom: 0;
}

.tp-content__block strong {
  color: var(--tp-text);
}

/* ===========================================
   DISCLAIMER
   =========================================== */
.tp-disclaimer {
  background: var(--tp-bg-tertiary);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 32px 0;
}

.tp-disclaimer p {
  font-size: 13px;
  color: var(--tp-text-muted);
  line-height: 1.6;
  margin: 0;
}

.tp-disclaimer strong {
  color: var(--tp-accent);
}

/* ===========================================
   REVIEW/DESCRIPTION CONTENT STYLES
   =========================================== */
.tp-review-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--tp-text);
}

.tp-review-content p {
  margin-bottom: 20px;
}

.tp-review-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 32px 0 16px 0;
  color: var(--tp-text);
  border-bottom: 1px solid var(--tp-border);
  padding-bottom: 8px;
}

.tp-review-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 24px 0 12px 0;
  color: var(--tp-text);
}

.tp-review-content h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 20px 0 10px 0;
  color: var(--tp-text-secondary);
}

.tp-review-content ul,
.tp-review-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.tp-review-content ul {
  list-style: disc;
}

.tp-review-content ol {
  list-style: decimal;
}

.tp-review-content li {
  margin-bottom: 8px;
  color: var(--tp-text-secondary);
}

.tp-review-content strong {
  color: var(--tp-text);
  font-weight: 600;
}

.tp-review-content a {
  color: var(--tp-accent);
  text-decoration: none;
}

.tp-review-content a:hover {
  text-decoration: underline;
}

.tp-review-content blockquote {
  border-left: 3px solid var(--tp-accent);
  padding-left: 16px;
  margin: 20px 0;
  color: var(--tp-text-secondary);
  font-style: italic;
}

/* ===========================================
   PROS/CONS SECTIONS (no background boxes)
   =========================================== */
.tp-pros-cons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin: 32px 0;
}

.tp-pros,
.tp-cons {
  padding: 0;
}

.tp-pros h3,
.tp-cons h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid;
}

.tp-pros h3 {
  color: var(--tp-green);
  border-color: var(--tp-green);
}

.tp-cons h3 {
  color: var(--tp-red);
  border-color: var(--tp-red);
}

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

.tp-pros li,
.tp-cons li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--tp-text-secondary);
}

.tp-pros li::before,
.tp-cons li::before {
  position: absolute;
  left: 0;
  font-size: 14px;
}

.tp-pros li::before {
  content: "✓";
  color: var(--tp-green);
}

.tp-cons li::before {
  content: "✗";
  color: var(--tp-red);
}

/* Verdict section */
.tp-verdict {
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid var(--tp-border);
}

.tp-verdict h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--tp-accent);
  margin: 0 0 12px;
}

.tp-verdict p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--tp-text);
  margin: 0;
}

/* Investment thesis section (for tokens) */
.tp-thesis {
  margin: 24px 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--tp-border);
}

.tp-thesis h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--tp-accent);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tp-thesis p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--tp-text);
  margin: 0;
  font-style: italic;
}

/* Section title helper */
.tp-section-title {
  font-size: 16px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--tp-text);
}

/* Risk level colors */
.tp-risk--low { color: var(--tp-green); }
.tp-risk--medium { color: var(--tp-accent); }
.tp-risk--high { color: var(--tp-red); }

/* ===========================================
   TWO-COLUMN LAYOUT WITH SIDEBAR
   =========================================== */
.tp-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  margin-top: 24px;
}

.tp-main {
  min-width: 0;
}

/* Sidebar */
.tp-sidebar {
  position: static;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tp-sidebar__box {
  border: 1px solid var(--tp-border);
  border-radius: 8px;
  padding: 16px;
}

.tp-sidebar__cta {
  padding: 12px;
}

.tp-sidebar__title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
  color: var(--tp-text-secondary);
}

.tp-sidebar__title--gold {
  color: var(--tp-accent);
}

.tp-sidebar__title--green {
  color: var(--tp-green);
}

.tp-sidebar__title--red {
  color: var(--tp-red);
}

.tp-sidebar__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--tp-text);
  margin: 0;
}

.tp-sidebar__text--italic {
  font-style: italic;
}

/* Sidebar lists */
.tp-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tp-sidebar__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--tp-text-secondary);
}

.tp-sidebar__list li:last-child {
  margin-bottom: 0;
}

.tp-sidebar__list li::before {
  position: absolute;
  left: 0;
  font-size: 11px;
}

.tp-sidebar__list--pros li::before {
  content: "+";
  color: var(--tp-green);
  font-weight: 700;
}

.tp-sidebar__list--cons li::before {
  content: "-";
  color: var(--tp-red);
  font-weight: 700;
}

/* Sidebar features (key-value pairs) */
.tp-sidebar__features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tp-sidebar__feature {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.tp-sidebar__feature span:first-child {
  color: var(--tp-text-muted);
}

.tp-sidebar__feature span:last-child {
  font-weight: 500;
}

/* Sidebar details */
.tp-sidebar__details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tp-sidebar__detail {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.tp-sidebar__detail span:first-child {
  color: var(--tp-text-muted);
}

.tp-sidebar__detail span:last-child,
.tp-sidebar__detail a {
  color: var(--tp-text);
  font-weight: 500;
}

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

.tp-sidebar__detail a:hover {
  text-decoration: underline;
}

/* Sidebar links */
.tp-sidebar__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tp-sidebar__links a {
  font-size: 13px;
  color: var(--tp-accent);
  text-decoration: none;
}

.tp-sidebar__links a:hover {
  text-decoration: underline;
}

/* Full-width button */
.tp-btn--full {
  display: block;
  width: 100%;
  text-align: center;
}

/* Glowing CTA button */
.tp-btn--glow {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #ff9500 0%, #ff7c18 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(255, 149, 0, 0.4);
  transition: all 0.3s ease;
}

.tp-btn--glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 149, 0, 0.5);
}

.tp-sidebar__cta-glow {
  padding: 0;
  border: none;
  background: transparent;
}

/* CTA in main content */
.tp-main__cta {
  margin-top: 32px;
  max-width: 320px;
}

/* Related exchanges toplist */
.tp-related-exchanges {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--tp-border);
}

.tp-related-exchanges h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--tp-text);
  margin: 0 0 20px;
}

.tp-related-exchanges .tp-table-wrapper {
  margin-bottom: 16px;
}

.tp-related-exchanges__link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--tp-accent);
  text-decoration: none;
  margin-top: 12px;
}

.tp-related-exchanges__link:hover {
  text-decoration: underline;
}

/* Responsive: Stack on mobile */
@media (max-width: 1024px) {
  .tp-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tp-sidebar {
    position: static;
    order: -1;
  }
}

/* ===========================================
   RESPONSIVE ADDITIONS
   =========================================== */
@media (max-width: 768px) {
  .tp-categories {
    padding: 24px 0;
  }

  .tp-content__grid {
    grid-template-columns: 1fr;
  }

  .tp-content__title {
    font-size: 18px;
  }

  .tp-detail__name {
    justify-content: center;
  }

  .tp-detail__inline-stats {
    align-items: center;
    justify-content: center;
    padding-top: 30px;
  }
}
