/* ============================================
   PassivePin - Enhanced Styles
   Trust indicators, advanced filters, portfolio
   ============================================ */

/* ── Quick Filters Bar ── */
.quick-filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.quick-filter {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s ease;
}
.quick-filter:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}
.quick-filter.link {
  text-decoration: none;
  display: inline-flex;
}

/* ── Advanced Filters Panel ── */
.advanced-filters {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  animation: slideDown 0.2s ease;
}
.advanced-filters.active {
  display: block;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.filter-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.filter-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.filter-group select {
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
}
.filter-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.result-count {
  font-size: 0.85rem;
  color: var(--text-3);
  font-weight: 500;
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--danger);
  border-color: var(--danger);
}

/* ── Enhanced Project Cards ── */
.project-card {
  position: relative;
}

/* Badges */
.trending-badge, .freshness-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 2;
}
.trending-badge {
  background: linear-gradient(135deg, var(--warning), #f97316);
  color: #fff;
}
.freshness-badge {
  background: var(--success);
  color: #fff;
}
.freshness-badge.upcoming {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.freshness-badge.verified {
  background: var(--accent);
}

/* Trust Indicators */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
}
.trust-badge.verified {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
}
.trust-badge.community {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
}
.trust-badge.warning {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}
.trust-badge.info {
  background: var(--surface-2);
  color: var(--text-2);
}

/* Risk Tags */
.tag.risk-tag.success { background: rgba(34, 197, 94, 0.1); color: #16a34a; border-color: rgba(34, 197, 94, 0.2); }
.tag.risk-tag.warning { background: rgba(245, 158, 11, 0.1); color: #d97706; border-color: rgba(245, 158, 11, 0.2); }
.tag.risk-tag.danger { background: rgba(239, 68, 68, 0.1); color: #dc2626; border-color: rgba(239, 68, 68, 0.2); }

/* Difficulty Tags */
.tag.difficulty-easy { background: rgba(34, 197, 94, 0.08); color: #16a34a; }
.tag.difficulty-medium { background: rgba(245, 158, 11, 0.08); color: #d97706; }
.tag.difficulty-hard { background: rgba(239, 68, 68, 0.08); color: #dc2626; }

/* KYC Tags */
.tag.kyc-tag { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.tag.no-kyc-tag { background: rgba(34, 197, 94, 0.1); color: #16a34a; }

/* Device Tags */
.tag.device-tag { background: var(--primary-soft); color: var(--primary); }

/* Cost Tags */
.tag.cost-tag { background: var(--surface-2); color: var(--text-2); }

/* TGE Status */
.tge-completed { color: var(--success); font-weight: 600; }
.tge-upcoming { color: var(--primary); font-weight: 600; }
.tge-n\/a { color: var(--text-3); }

/* Verified Date */
.verified-date {
  font-size: 0.75rem;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Favorites */
.fav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-3);
  flex-shrink: 0;
}
.fav-btn:hover {
  border-color: var(--warning);
  color: var(--warning);
}
.fav-btn.active {
  background: var(--warning);
  color: #fff;
  border-color: var(--warning);
}

/* Project Stats Row */
.project-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-2);
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

/* Portfolio Status */
.portfolio-actions {
  margin-bottom: 8px;
}
.portfolio-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
}
.portfolio-status.joined {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}
.portfolio-status.watching {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}
.portfolio-status.dropped {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

/* No Results */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}
.no-results-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}
.no-results h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text);
}
.no-results p {
  color: var(--text-2);
  margin-bottom: 20px;
}

/* ── Portfolio Summary ── */
.portfolio-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 32px;
}
.portfolio-summary h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.portfolio-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

/* ── Footer Disclaimer ── */
.footer-disclaimer {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
.footer-disclaimer p {
  font-size: 0.82rem;
  color: var(--text-3);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 8px;
}
.footer-disclaimer p strong {
  color: var(--warning);
}

/* ── Buttons ── */
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: var(--surface-2);
}
.share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.share-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

/* ── Project Detail Page ── */
.project-detail-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.project-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}
.project-detail-main h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 2rem;
  margin-bottom: 16px;
}
.project-detail-main h1 .icon {
  font-size: 2.5rem;
}

/* Trust Panel */
.trust-panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 80px;
}
.trust-panel h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-2);
}
.trust-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.trust-item:last-child {
  border-bottom: none;
}
.trust-item .label {
  color: var(--text-2);
}
.trust-item .value {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Score Display */
.score-display {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.score-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.score-circle.high { background: linear-gradient(135deg, var(--success), #16a34a); }
.score-circle.medium { background: linear-gradient(135deg, var(--warning), #d97706); }
.score-circle.low { background: linear-gradient(135deg, var(--danger), #dc2626); }
.score-info {
  flex: 1;
}
.score-info .score-label {
  font-size: 0.8rem;
  color: var(--text-3);
}
.score-info .score-text {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Proof Section */
.proof-section {
  margin: 32px 0;
}
.proof-section h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.proof-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.proof-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}
.proof-item .proof-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--surface);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 2rem;
}
.proof-item p {
  font-size: 0.8rem;
  color: var(--text-2);
}

/* Risk Warning Box */
.risk-warning-box {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 16px 0;
}
.risk-warning-box h4 {
  color: var(--danger);
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.risk-warning-box ul {
  margin: 0;
  padding-left: 20px;
  font-size: 0.85rem;
  color: var(--text-2);
}
.risk-warning-box li {
  margin-bottom: 4px;
}

/* Setup Checklist */
.setup-checklist {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}
.setup-checklist h3 {
  margin-bottom: 16px;
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.checklist-item:last-child {
  border-bottom: none;
}
.checklist-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.checklist-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

/* ── Comparison Page ── */
.comparison-header {
  text-align: center;
  padding: 60px 0 40px;
}
.comparison-header h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.comparison-header p {
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.comparison-table th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--text-2);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.comparison-table tr:hover {
  background: var(--surface-2);
}
.comparison-table .project-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.comparison-table .project-cell .icon {
  font-size: 1.5rem;
}

/* ── About / Methodology Page ── */
.methodology-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}
.methodology-section h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}
.methodology-section .last-updated {
  color: var(--text-3);
  font-size: 0.85rem;
  margin-bottom: 32px;
}
.methodology-section h2 {
  font-size: 1.3rem;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-soft);
}
.methodology-section p {
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 16px;
}
.methodology-section ul {
  margin: 0 0 20px;
  padding-left: 24px;
}
.methodology-section li {
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 8px;
}
.methodology-section .disclaimer-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 24px 0;
}
.methodology-section .disclaimer-box h3 {
  color: var(--warning);
  font-size: 1rem;
  margin-bottom: 12px;
}
.scoring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.scoring-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.scoring-card h4 {
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.scoring-card p {
  font-size: 0.85rem;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .project-detail-grid {
    grid-template-columns: 1fr;
  }
  .trust-panel {
    position: static;
  }
  .filter-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .filter-row {
    grid-template-columns: 1fr;
  }
  .quick-filters-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .quick-filter {
    white-space: nowrap;
  }
}

/* ============================================
   About Page Styles
   ============================================ */
.about-page h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.about-page .lead {
  font-size: 1.15rem;
  color: var(--text-2);
  margin-bottom: 40px;
}
.about-page section {
  margin-bottom: 48px;
}
.about-page h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-soft);
}
.about-page h3 {
  font-size: 1.1rem;
  margin: 16px 0 8px;
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.method-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.method-number {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.method-card h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}
.method-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  margin: 0;
}

.risk-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.risk-table th,
.risk-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.risk-table th {
  font-weight: 600;
  background: var(--surface-2);
}
.risk-table td {
  font-size: 0.92rem;
}

.risk-labels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.risk-label-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.9rem;
}
.risk-label-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.badge-low, .badge-medium, .badge-high {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
}
.badge-low { background: #dcfce7; color: #166534; }
.badge-medium { background: #fef3c7; color: #92400e; }
.badge-high { background: #fee2e2; color: #991b1b; }

.disclaimer-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 20px 0;
}
.disclaimer-card p:first-child {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

/* ============================================
   Comparisons Page Styles
   ============================================ */
.comparisons-page h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.comparisons-page .lead {
  font-size: 1.15rem;
  color: var(--text-2);
  margin-bottom: 40px;
}
.comparison-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.comp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}
.comp-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.comp-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.comp-card h3 {
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.comp-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  margin: 0 0 12px;
}
.comp-count {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
}

.comparison-section {
  margin-bottom: 48px;
}
.comparison-section h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.comparison-section > p {
  color: var(--text-2);
  margin-bottom: 20px;
}
.comparison-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.comparison-table th {
  background: var(--surface-2);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-2);
  border-bottom: 2px solid var(--border);
}
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.comparison-table tr:hover td {
  background: var(--surface-2);
}
.project-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.project-link:hover {
  text-decoration: underline;
}

/* ============================================
   Alerts Page Styles
   ============================================ */
.alerts-page h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.alerts-page .lead {
  font-size: 1.15rem;
  color: var(--text-2);
  margin-bottom: 40px;
}
.alerts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.alert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.alert-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.alert-card h2 {
  font-size: 1.25rem;
  margin: 0 0 8px;
}
.alert-card > p {
  color: var(--text-2);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.alert-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.alert-form input[type="email"] {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
}
.alert-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}
.alert-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}
.alert-options input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}
.alert-note {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-top: 12px;
}
.alert-features ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.alert-features li {
  padding: 6px 0;
  font-size: 0.92rem;
}
.rss-url {
  display: block;
  background: var(--surface-2);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.85rem;
  margin: 12px 0;
  word-break: break-all;
}

.what-you-get {
  margin-top: 48px;
}
.what-you-get h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feature-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.feature-content h3 {
  font-size: 1.1rem;
  margin: 0 0 6px;
}
.feature-content p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.92rem;
}

/* ============================================
   Project Detail Page Styles
   ============================================ */
.project-detail-page {
  padding-bottom: 60px;
}
.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-3);
  margin: 20px 0;
}
.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}
.project-title-section {
  display: flex;
  gap: 16px;
  align-items: center;
}
.project-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.project-title-info h1 {
  font-size: 2rem;
  margin: 0 0 8px;
}
.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-badges span {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.badge-risk-low { background: #dcfce7; color: #166534; }
.badge-risk-medium { background: #fef3c7; color: #92400e; }
.badge-risk-high { background: #fee2e2; color: #991b1b; }
.badge-custodial { background: #fee2e2; color: #991b1b; }
.badge-noncustodial { background: #dcfce7; color: #166534; }
.badge-token-live { background: #dcfce7; color: #166534; }
.badge-token-pending { background: #fef3c7; color: #92400e; }
.badge-nokyc { background: #e0e7ff; color: #3730a3; }
.badge-verified { background: #dcfce7; color: #166534; }

.project-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 32px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust-label {
  font-size: 0.8rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.trust-value {
  font-weight: 600;
  font-size: 0.95rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}
.detail-main {
  min-width: 0;
}
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.detail-section h2 {
  font-size: 1.25rem;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.detail-section p {
  line-height: 1.7;
  color: var(--text-2);
}

.info-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child {
  border-bottom: none;
}
.info-row span:first-child {
  color: var(--text-3);
  font-size: 0.9rem;
}
.info-row span:last-child {
  font-weight: 500;
}

.risk-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.risk-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.risk-list li:last-child {
  border-bottom: none;
}
.risk-dot {
  flex-shrink: 0;
  margin-top: 2px;
}

.proof-item {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
}
.proof-item img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.proof-item p {
  font-size: 0.85rem;
  color: var(--text-3);
  margin: 0;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.sidebar-card h3 {
  font-size: 1rem;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.stat-row:last-child {
  border-bottom: none;
}
.stat-row span:first-child {
  color: var(--text-3);
}
.stat-row span:last-child {
  font-weight: 500;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.link-row:hover {
  background: var(--surface-2);
  color: var(--primary);
}

.referral-box {
  display: flex;
  gap: 8px;
  align-items: center;
}
.referral-box code {
  flex: 1;
  background: var(--surface-2);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.9rem;
}
.referral-box button {
  padding: 10px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
}
.referral-note {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-top: 10px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checklist li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.checklist li:last-child {
  border-bottom: none;
}
.checklist label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
}
.checklist input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .project-header {
    flex-direction: column;
  }
  .project-actions {
    width: 100%;
  }
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  font-weight: 500;
  animation: toastIn 0.3s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
