/**
 * PredictGap Styles
 * Dark cyber theme with neon accents
 */

:root {
  /* Dark blue cyber theme */
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1629;
  --bg-card: #152b56;
  --bg-elevated: #1a3a6e;
  --bg-hover: #1e4080;
  --border-color: rgba(100, 150, 255, 0.15);
  --border-glow: rgba(100, 200, 255, 0.3);

  /* Text colors */
  --text-primary: #f0f6ff;
  --text-secondary: #a0b4d0;
  --text-muted: #6080a0;

  /* Accent colors */
  --accent: #00d4ff;
  --accent-dim: rgba(0, 212, 255, 0.15);
  --accent-glow: rgba(0, 212, 255, 0.4);

  /* Profit colors - neon style */
  --green: #00ff88;
  --green-dim: rgba(0, 255, 136, 0.15);
  --green-glow: rgba(0, 255, 136, 0.4);
  --red: #ff4466;
  --red-dim: rgba(255, 68, 102, 0.15);

  /* Platform colors */
  --poly: #8b5cf6;
  --poly-dim: rgba(139, 92, 246, 0.2);
  --kalshi: #f97316;
  --kalshi-dim: rgba(249, 115, 22, 0.2);
  --opinion: #22c55e;
  --opinion-dim: rgba(34, 197, 94, 0.2);
  --predictfun: #06b6d4;
  --predictfun-dim: rgba(6, 182, 212, 0.2);
  --probable: #ec4899;
  --probable-dim: rgba(236, 72, 153, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Exo 2', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.logo span {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.last-update {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.toggle-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--bg-elevated);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.toggle-switch.on {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 3px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-switch.on::after {
  transform: translateX(20px);
}

.status-live {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--green-dim), rgba(0, 255, 136, 0.05));
  border: 1px solid var(--green);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 20px var(--green-glow);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 10px var(--green);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.9);
  }
}

/* Main */
.main {
  padding: 28px 32px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 8px 32px rgba(0, 100, 200, 0.2);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.stat-value.green {
  color: var(--green);
  text-shadow: 0 0 20px var(--green-glow);
}

.stat-value.accent {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

/* Platform Chips */
.platforms-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.platforms-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-right: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.platform-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.platform-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.platform-chip.poly {
  background: var(--poly-dim);
  color: var(--poly);
  border-color: var(--poly);
}

.platform-chip.kalshi {
  background: var(--kalshi-dim);
  color: var(--kalshi);
  border-color: var(--kalshi);
}

.platform-chip.opinion {
  background: var(--opinion-dim);
  color: var(--opinion);
  border-color: var(--opinion);
}

.platform-chip.predictfun {
  background: var(--predictfun-dim);
  color: var(--predictfun);
  border-color: var(--predictfun);
}

.platform-chip.probable {
  background: var(--probable-dim);
  color: var(--probable);
  border-color: var(--probable);
}

.platform-chip.inactive {
  opacity: 0.35;
  border-color: transparent;
  transform: none;
}

.platform-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: white;
}

.platform-icon.poly { background: var(--poly); }
.platform-icon.kalshi { background: var(--kalshi); }
.platform-icon.opinion { background: var(--opinion); }
.platform-icon.predictfun { background: var(--predictfun); }
.platform-icon.probable { background: var(--probable); }

/* Filters */
.filters-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid var(--border-color);
  border-radius: 14px;
  flex-wrap: wrap;
  position: relative;
}

.filters-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 0 0 14px 14px;
}

.filters-bar .refresh-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #8b5cf6, var(--green));
  border-radius: 0 0 14px 14px;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--accent-glow);
  z-index: 1;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.filter-input {
  width: 90px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  transition: all 0.2s;
}

.filter-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.search-box {
  margin-left: auto;
  position: relative;
}

.search-box input {
  width: 220px;
  padding: 10px 14px 10px 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Exo 2', sans-serif;
  transition: all 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
  width: 280px;
}

.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

/* Investment section */
.invest-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-invest {
  display: flex;
  gap: 6px;
}

.quick-btn {
  padding: 8px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-secondary);
  font-family: 'Exo 2', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.quick-btn.active {
  background: linear-gradient(135deg, var(--accent-dim), rgba(0, 212, 255, 0.2));
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* MAX button special style */
.quick-btn.max-btn {
  background: linear-gradient(135deg, var(--green-dim), rgba(0, 255, 136, 0.1));
  border-color: var(--green);
  color: var(--green);
}

.quick-btn.max-btn:hover {
  box-shadow: 0 0 10px var(--green-glow);
}

.quick-btn.max-btn.active {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 255, 136, 0.15));
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 15px var(--green-glow);
}

.filter-input.shares-input {
  width: 80px;
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg-card));
  border-color: var(--border-color);
  text-align: center;
}

.filter-input.shares-input:focus {
  border-color: var(--accent);
}

.filter-input.shares-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Liquidity indicator */
.liquidity-tag {
  display: inline-block;
  padding: 2px 6px;
  background: var(--bg-elevated);
  border-radius: 4px;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 8px;
}

.liquidity-tag.high {
  background: var(--green-dim);
  color: var(--green);
}

.liquidity-tag.medium {
  background: var(--accent-dim);
  color: var(--accent);
}

/* Table */
.table-container {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow-x: auto;
  max-height: calc(100vh - 380px);
  overflow-y: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1300px;
}

thead {
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-card));
  position: sticky;
  top: 0;
  z-index: 10;
}

th {
  padding: 16px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--border-color);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s;
  background: var(--bg-elevated);
}

th:hover {
  color: var(--text-secondary);
}

th.sorted {
  color: var(--accent);
}

td {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(100, 150, 255, 0.08);
  vertical-align: middle;
}

tr {
  transition: all 0.2s ease;
}

tr:hover {
  background: linear-gradient(90deg, rgba(0, 100, 200, 0.1), transparent);
}

/* Event column */
.event-name {
  font-weight: 700;
  font-size: 15px;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.event-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* Profit column */
.profit-cell {
  text-align: center;
}

.profit-block {
  display: inline-block;
  padding: 14px 20px;
  border-radius: 12px;
  min-width: 100px;
}

.profit-block.tier-high {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.25), rgba(0, 255, 136, 0.1));
  border: 2px solid var(--green);
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.5);
}

.profit-block.tier-medium {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.08));
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.profit-block.tier-low {
  background: linear-gradient(135deg, var(--green-dim), rgba(0, 255, 136, 0.05));
  border: 1px solid rgba(0, 255, 136, 0.4);
}

.profit-usd {
  font-weight: 800;
  font-size: 20px;
  color: var(--green);
  text-shadow: 0 0 15px var(--green-glow);
}

.profit-block.tier-medium .profit-usd {
  color: var(--accent);
  text-shadow: 0 0 15px var(--accent-glow);
}

.profit-pct {
  font-weight: 600;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.profit-block.tier-high .profit-pct {
  color: var(--green);
}

.profit-block.tier-medium .profit-pct {
  color: var(--accent);
}

.profit-formula {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Platform price columns */
.platform-prices {
  text-align: center;
  font-size: 13px;
}

.price-yes {
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 4px;
}

.price-yes.highlight {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid var(--green);
}

.price-no {
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  display: inline-block;
}

.price-no.highlight {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid var(--red);
}

/* Clickable price links */
a.price-yes.clickable,
a.price-no.clickable {
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

a.price-yes.clickable:hover {
  background: var(--green);
  color: #000;
  transform: scale(1.05);
}

a.price-no.clickable:hover {
  background: var(--red);
  color: #000;
  transform: scale(1.05);
}

.price-empty {
  color: var(--text-muted);
}

/* Strategy column */
.strategy-cell {
  font-size: 12px;
  line-height: 1.8;
}

.strategy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.strategy-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.strategy-badge.yes {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid var(--green);
}

.strategy-badge.no {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid var(--red);
}

.strategy-detail {
  color: var(--text-secondary);
  font-weight: 500;
}

.strategy-shares {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Used $ column */
.used-cell {
  text-align: center;
}

.used-amount {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.used-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Guaranteed column */
.guaranteed-cell {
  text-align: center;
}

.guaranteed-amount {
  font-weight: 800;
  font-size: 18px;
  color: var(--green);
  text-shadow: 0 0 10px var(--green-glow);
}

.guaranteed-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Links column */
.links-cell {
  white-space: nowrap;
}

.links-cell a {
  display: inline-flex;
  margin-right: 6px;
}

.links-cell a:last-child {
  margin-right: 0;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* YES button - green */
.link-btn.yes-btn {
  background: var(--green-dim);
  color: var(--green);
  border-color: var(--green);
}

.link-btn.yes-btn:hover {
  box-shadow: 0 4px 15px var(--green-glow);
}

/* NO button - red */
.link-btn.no-btn {
  background: var(--red-dim);
  color: var(--red);
  border-color: var(--red);
}

.link-btn.no-btn:hover {
  box-shadow: 0 4px 15px rgba(255, 68, 102, 0.4);
}

/* Platform colors */
.link-btn.poly {
  background: var(--poly-dim);
  color: var(--poly);
  border-color: var(--poly);
}

.link-btn.kalshi {
  background: var(--kalshi-dim);
  color: var(--kalshi);
  border-color: var(--kalshi);
}

.link-btn.opinion {
  background: var(--opinion-dim);
  color: var(--opinion);
  border-color: var(--opinion);
}

.link-btn.predictfun {
  background: var(--predictfun-dim);
  color: var(--predictfun);
  border-color: var(--predictfun);
}

.link-btn.probable {
  background: var(--probable-dim);
  color: var(--probable);
  border-color: var(--probable);
}

/* Empty & Loading states */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px;
  gap: 12px;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bg-hover);
}

/* ============================================
   MOBILE RESPONSIVE
============================================ */

@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .header {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .logo {
    font-size: 20px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .main {
    padding: 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-value {
    font-size: 24px;
  }

  .platforms-row {
    gap: 8px;
  }

  .platform-chip {
    padding: 8px 12px;
    font-size: 11px;
  }

  .platform-icon {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }

  .filters-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
  }

  .filter-group {
    width: 100%;
    justify-content: space-between;
  }

  .invest-group {
    flex-wrap: wrap;
  }

  .quick-invest {
    flex-wrap: wrap;
  }

  .search-box {
    margin-left: 0;
    width: 100%;
  }

  .search-box input {
    width: 100%;
  }

  .search-box input:focus {
    width: 100%;
  }

  .table-container {
    max-height: calc(100vh - 500px);
    border-radius: 12px;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat-card {
    padding: 12px;
  }

  .stat-value {
    font-size: 20px;
  }

  .stat-label {
    font-size: 9px;
  }

  .stat-card:last-child {
    grid-column: span 2;
  }

  .header-right {
    gap: 8px;
  }

  .toggle span {
    display: none;
  }

  .last-update {
    display: none;
  }

  .platforms-label {
    display: none;
  }

  .platform-chip {
    padding: 6px 10px;
    font-size: 10px;
  }

  .platform-chip span:last-child {
    display: none;
  }

  .quick-btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  .filter-label {
    font-size: 11px;
  }

  /* Hide table on mobile, show cards */
  .table-container {
    display: none;
  }

  .mobile-cards {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
  }

  .mobile-card {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
  }

  .mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
  }

  .mobile-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    line-height: 1.3;
  }

  .mobile-card-profit {
    padding: 10px 14px;
    border-radius: 10px;
    text-align: center;
    min-width: 80px;
  }

  .mobile-card-profit.tier-high {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.25), rgba(0, 255, 136, 0.1));
    border: 2px solid var(--green);
  }

  .mobile-card-profit.tier-medium {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.08));
    border: 2px solid var(--accent);
  }

  .mobile-card-profit.tier-low {
    background: linear-gradient(135deg, var(--green-dim), rgba(0, 255, 136, 0.05));
    border: 1px solid rgba(0, 255, 136, 0.4);
  }

  .mobile-card-profit-usd {
    font-weight: 800;
    font-size: 16px;
    color: var(--green);
  }

  .mobile-card-profit.tier-medium .mobile-card-profit-usd {
    color: var(--accent);
  }

  .mobile-card-profit-pct {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 2px;
  }

  .mobile-card-meta {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
  }

  .mobile-card-meta .liquidity-tag {
    margin-left: 0;
  }

  .mobile-card-strategy {
    background: var(--bg-elevated);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    font-size: 11px;
  }

  .mobile-card-strategy-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
  }

  .mobile-card-strategy-row:last-child {
    margin-bottom: 0;
  }

  .mobile-card-summary {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding: 8px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-card-summary-item {
    text-align: center;
  }

  .mobile-card-summary-value {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
  }

  .mobile-card-summary-label {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .mobile-card-actions {
    display: flex;
    gap: 8px;
  }

  .mobile-card-actions .link-btn {
    flex: 1;
    justify-content: center;
    padding: 12px;
  }
}

/* Desktop: hide mobile cards */
.mobile-cards {
  display: none;
}
