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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: #0f1117;
  color: #e1e4e8;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: #161b22;
  border-bottom: 1px solid #30363d;
  padding: 24px 0;
  margin-bottom: 32px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #f7931a, #8dc63f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: #8b949e;
  font-size: 14px;
}

.locale-select {
  background: #0d1117;
  color: #c9d1d9;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 6px 28px 6px 10px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238b949e'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.locale-select:hover {
  border-color: #8b949e;
}

.locale-select:focus {
  border-color: #58a6ff;
}

.search-input {
  background: #0f1117;
  border: 1px solid #30363d;
  color: #e1e4e8;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  width: 220px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: #58a6ff;
}

.search-input::placeholder {
  color: #484f58;
}

.glow-link {
  color: #e1e4e8;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  animation: glow-pulse 2s ease-in-out infinite;
  transition: color 0.15s;
}

.glow-link:hover {
  color: #f0883e;
}

@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 4px rgba(255, 255, 255, 0.15); }
  50% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 0 0 20px rgba(255, 255, 255, 0.15); }
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 16px;
  color: #c9d1d9;
}

.hidden { display: none !important; }

.hidden { display: none !important; }

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  color: #8b949e;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #30363d;
  border-top-color: #58a6ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error {
  background: #3d1111;
  border: 1px solid #da3633;
  color: #ff7b72;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.empty-msg {
  color: #484f58;
  text-align: center;
  padding: 24px;
  font-size: 14px;
}

/* Trending grid */

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

.trending-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 14px;
  transition: border-color 0.2s;
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
}

.trending-card:hover {
  border-color: #58a6ff;
}

.trending-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.trending-top img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.trending-name {
  flex: 1;
  min-width: 0;
}

.trending-name-text {
  font-size: 14px;
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trending-symbol {
  font-size: 11px;
  color: #8b949e;
}

.signal-badge-xs {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.signal-badge-xs.buy {
  background: rgba(63, 185, 80, 0.15);
  color: #3fb950;
  border: 1px solid rgba(63, 185, 80, 0.3);
}

.signal-badge-xs.sell {
  background: rgba(248, 81, 73, 0.15);
  color: #f85149;
  border: 1px solid rgba(248, 81, 73, 0.3);
}

.signal-badge-xs.hold {
  background: rgba(139, 148, 158, 0.15);
  color: #8b949e;
  border: 1px solid rgba(139, 148, 158, 0.3);
}

.trending-mid {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}

.trending-price {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.trending-change {
  font-size: 12px;
  font-weight: 500;
}

.trending-change.positive { color: #3fb950; }
.trending-change.negative { color: #f85149; }

.trending-bottom {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}

.trending-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.trending-stat-label {
  font-size: 10px;
  color: #484f58;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.trending-stat-value {
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.trending-stat-value.low { color: #3fb950; }
.trending-stat-value.mid { color: #d29922; }
.trending-stat-value.high { color: #f85149; }
.trending-stat-value.positive { color: #3fb950; }
.trending-stat-value.negative { color: #f85149; }

.trending-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.reason-tag-sm {
  background: #21262d;
  color: #8b949e;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
}

/* Inline detail (search single match) */

.inline-detail {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.inline-detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.inline-detail-head img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.inline-detail-head h2 {
  font-size: 22px;
  font-weight: 700;
}

.inline-detail-symbol {
  color: #8b949e;
  font-size: 14px;
}

.inline-detail-head .signal-badge {
  margin-left: auto;
  flex-shrink: 0;
}

.inline-detail-price {
  margin-bottom: 16px;
}

.inline-detail-price .price {
  font-size: 28px;
  font-weight: 700;
}

.inline-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.inline-detail-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inline-detail-stat-label {
  font-size: 11px;
  color: #8b949e;
}

.inline-detail-stat-value {
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.inline-detail-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

/* Search results list */

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.search-result-item:hover {
  border-color: #58a6ff;
}

.search-result-item img {
  border-radius: 50%;
  flex-shrink: 0;
}

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

.search-result-name {
  font-size: 14px;
  font-weight: 600;
  display: block;
}

.search-result-name strong {
  color: #58a6ff;
}

.search-result-symbol {
  font-size: 11px;
  color: #8b949e;
}

.search-result-price {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.search-result-change {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  min-width: 60px;
  text-align: right;
}

.search-result-change.positive { color: #3fb950; }
.search-result-change.negative { color: #f85149; }

/* Old card/dashboard styles (kept for modal) */

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.signal-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.signal-badge.buy {
  background: rgba(63, 185, 80, 0.15);
  color: #3fb950;
  border: 1px solid rgba(63, 185, 80, 0.3);
}

.signal-badge.sell {
  background: rgba(248, 81, 73, 0.15);
  color: #f85149;
  border: 1px solid rgba(248, 81, 73, 0.3);
}

.signal-badge.hold {
  background: rgba(139, 148, 158, 0.15);
  color: #8b949e;
  border: 1px solid rgba(139, 148, 158, 0.3);
}

.price { font-weight: 700; font-variant-numeric: tabular-nums; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}

.stat-label { color: #8b949e; }
.stat-value { text-align: right; font-variant-numeric: tabular-nums; }

.reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.reason-tag {
  background: #21262d;
  color: #8b949e;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
}

.trade-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #21262d;
  align-items: center;
}

.trade-links-title {
  width: 100%;
  color: #8b949e;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 2px;
}

.trade-link {
  background: #1c2128;
  border: 1px solid #30363d;
  color: #58a6ff;
  padding: 4px 12px;
  border-radius: 5px;
  font-size: 11px;
  text-decoration: none;
  transition: all 0.2s;
}

.trade-link:hover {
  background: #30363d;
  border-color: #58a6ff;
}

.trade-link.main {
  background: rgba(88, 166, 255, 0.1);
  border-color: rgba(88, 166, 255, 0.3);
  color: #79c0ff;
  font-weight: 500;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.rsi-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #8b949e;
}

.rsi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.rsi-dot.low { background: #3fb950; }
.rsi-dot.mid { background: #d29922; }
.rsi-dot.high { background: #f85149; }

.detail-insight {
  margin-top: 16px;
  padding: 14px;
  background: #1c2128;
  border-radius: 8px;
  border-left: 3px solid #58a6ff;
}

.detail-insight h3 {
  font-size: 13px;
  font-weight: 600;
  color: #8b949e;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-insight p {
  font-size: 14px;
  line-height: 1.5;
  color: #c9d1d9;
}

/* Modal */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 14px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: #8b949e;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
}

.modal-close:hover {
  color: #c9d1d9;
  background: #21262d;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-right: 40px;
}

.modal-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.modal-symbol {
  color: #8b949e;
  font-size: 14px;
}

.modal-header .signal-badge {
  margin-left: auto;
  flex-shrink: 0;
}

.modal-body .stats {
  margin-bottom: 16px;
}

.modal-price {
  margin-bottom: 16px;
}

.modal-price .price {
  font-size: 28px;
}

.modal-sparkline {
  margin-bottom: 16px;
  background: #1c2128;
  border-radius: 6px;
  padding: 8px;
}

.modal-sparkline svg {
  display: block;
  width: 100%;
  height: auto;
}

.modal-body .reasons {
  margin-bottom: 16px;
}

/* Table */

.table-wrap {
  overflow-x: auto;
  border: 1px solid #30363d;
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}

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

.coins-table th {
  padding: 10px 12px;
  background: #161b22;
  color: #8b949e;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #30363d;
  white-space: nowrap;
}

.coins-table td {
  padding: 12px 12px;
  border-bottom: 1px solid #21262d;
  vertical-align: middle;
  white-space: nowrap;
  line-height: 20px;
}

.coins-table th:nth-child(1) { width: 24px; text-align: center; }
.coins-table th:nth-child(2) { width: 30px; text-align: center; }
.coins-table th:nth-child(3) { width: 20%; }
.coins-table th:nth-child(4) { width: 15%; text-align: right; }
.coins-table th:nth-child(5) { width: 8%; text-align: right; }
.coins-table th:nth-child(6) { width: 8%; text-align: right; }
.coins-table th:nth-child(7) { width: 11%; text-align: right; }
.coins-table th:nth-child(8) { width: 7%; text-align: center; }
.coins-table th:nth-child(9) { width: 6%; text-align: center; }
.coins-table th:nth-child(10) { width: 7%; text-align: center; }

.coins-table .th-label {
  cursor: help;
}

.col-tooltip {
  position: fixed;
  background: #1c2128;
  border: 1px solid #30363d;
  color: #c9d1d9;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.1s;
}

.col-tooltip.show {
  opacity: 1;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #161b22;
  border: 1px solid #30363d;
  border-top: none;
  border-radius: 0 0 8px 8px;
  font-size: 13px;
  color: #8b949e;
  gap: 12px;
  flex-wrap: wrap;
}

.pagination-info {
  white-space: nowrap;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-btn {
  background: #21262d;
  border: 1px solid #30363d;
  color: #c9d1d9;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.page-btn:hover:not(:disabled) {
  background: #30363d;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.page-indicator {
  padding: 0 8px;
  font-size: 13px;
  white-space: nowrap;
}

.pagination-rows {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.rows-select {
  background: #0d1117;
  color: #c9d1d9;
  border: 1px solid #30363d;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
}

.rows-select:hover {
  border-color: #8b949e;
}

.news-ticker {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 8px 0;
}

.ticker-track {
  display: flex;
  gap: 24px;
  animation: ticker-scroll 60s linear infinite;
  width: max-content;
}

.news-ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  color: #e1e4e8;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  transition: color 0.15s;
}

.ticker-item:hover {
  color: #58a6ff;
}

.ticker-sep {
  color: #30363d;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.coins-table td {
  padding: 12px 12px;
  border-bottom: 1px solid #21262d;
  vertical-align: middle;
  white-space: nowrap;
  line-height: 20px;
}

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

.coins-table tbody tr {
  cursor: pointer;
}

.coins-table tbody tr:hover td {
  background: rgba(88, 166, 255, 0.04);
}

.th-star, .td-star {
  width: 24px;
  min-width: 24px;
  text-align: center;
  cursor: pointer;
  color: #8b949e;
  font-size: 14px;
  user-select: none;
}

.td-star:hover {
  color: #d29922;
}

.td-star.watched {
  color: #d29922;
}

.th-rank, .td-rank {
  width: 32px;
  min-width: 32px;
  text-align: center;
  color: #8b949e;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
}

.td-volume {
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  color: #8b949e;
  font-size: 12px;
  text-align: right;
}

.td-rsi {
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  text-align: center;
}

.sortable {
  cursor: pointer;
  user-select: none;
}

.sortable:hover .th-label {
  color: #58a6ff;
}

.coins-table th .th-label {
  transition: color 0.15s;
}

@media (max-width: 850px) {
}

@media (max-width: 700px) {
  h1 { font-size: 22px; }
  .trending-grid { grid-template-columns: 1fr 1fr; }
  .header-content { flex-direction: column; align-items: flex-start; }
  .header-right { width: 100%; flex-wrap: wrap; }
  .locale-select { max-width: 100%; }
  .search-input { flex: 1 1 100%; }
  .coins-table { font-size: 12px; }
  .coins-table th, .coins-table td { padding: 8px 8px; }
  .inline-detail-grid { grid-template-columns: 1fr; }
  .coins-table .coin-name-cell { display: none; }
  .pagination-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .pagination-info, .pagination-controls, .pagination-rows {
    justify-content: center;
  }
  .page-btn { padding: 6px 12px; }
  .modal-content { padding: 16px; margin: 10px; }
  .inline-detail { padding: 16px; }
}

@media (max-width: 500px) {
  h1 { font-size: 18px; }
  .trending-grid { grid-template-columns: 1fr; }
  .trending-card { padding: 10px; }
  .trending-top { gap: 8px; }
  .trending-top img { width: 18px; height: 18px; }
  .trending-name-text { font-size: 13px; }
  .trending-symbol { font-size: 10px; }
  .trending-price { font-size: 15px; }
  .trending-change { font-size: 11px; }
  .trending-bottom { gap: 10px; }
  .trending-stat-value { font-size: 12px; }
  .trending-reasons { margin-top: -2px; }
  .reason-tag-sm { font-size: 9px; padding: 1px 6px; }
  .coins-table { font-size: 11px; }
  .coins-table th, .coins-table td { padding: 6px 6px; }
  .coins-table .td-coin img { width: 16px; height: 16px; margin-right: 4px; }
  .coins-table .coin-symbol-cell { font-size: 10px; }
  .ticker-item { font-size: 13px; }
  .news-ticker { padding: 8px 0; }
  .subtitle { font-size: 12px; }
  .disclaimer { padding: 14px; font-size: 13px; }
  footer { font-size: 12px; padding: 16px 0; }
}

@media (max-width: 400px) {
  .header-right { gap: 6px; }
  .search-input { font-size: 13px; padding: 7px 10px; }
  .locale-select { font-size: 12px; padding: 5px 8px; }
  .coins-table { font-size: 10px; }
  .coins-table th, .coins-table td { padding: 5px 4px; }
  .coins-table .td-coin img { display: none; }
  .modal-content { padding: 12px; }
  .modal-header { gap: 8px; }
  .modal-header h2 { font-size: 16px; }
  .modal-header img { width: 32px; height: 32px; }
  .modal-price .price { font-size: 22px; }
}

.modal-star {
  cursor: pointer;
  font-size: 22px;
  color: #8b949e;
  user-select: none;
  transition: color 0.15s;
  vertical-align: middle;
  line-height: 1;
}

.modal-star:hover {
  color: #d29922;
}

.modal-star.watched {
  color: #d29922;
}

.modal-header h2 .modal-star {
  font-size: 26px;
  margin-left: 8px;
  line-height: 1;
}

.td-coin img {
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
}

.coin-name-cell {
  font-weight: 500;
  vertical-align: middle;
}

.coin-symbol-cell {
  color: #8b949e;
  font-size: 11px;
  margin-left: 4px;
  vertical-align: middle;
}

.td-price {
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  text-align: right;
}

.td-change {
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  text-align: right;
}

.td-change.positive { color: #3fb950; }
.td-change.negative { color: #f85149; }

.td-rsi {
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
}

.td-rsi .rsi-dot {
  vertical-align: middle;
  margin-right: 3px;
}

.td-score {
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  text-align: center;
}

.td-action {
  text-align: center;
}

.signal-badge-sm {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.signal-badge-sm.buy {
  background: rgba(63, 185, 80, 0.15);
  color: #3fb950;
  border: 1px solid rgba(63, 185, 80, 0.3);
}

.signal-badge-sm.sell {
  background: rgba(248, 81, 73, 0.15);
  color: #f85149;
  border: 1px solid rgba(248, 81, 73, 0.3);
}

.signal-badge-sm.hold {
  background: rgba(139, 148, 158, 0.15);
  color: #8b949e;
  border: 1px solid rgba(139, 148, 158, 0.3);
}

.disclaimer {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 20px;
  margin: 32px 0 24px;
  font-size: 14px;
  line-height: 1.6;
  color: #8b949e;
  scroll-margin-top: 80px;
}

.disclaimer strong {
  color: #c9d1d9;
}

.disclaimer a {
  color: #58a6ff;
  text-decoration: none;
}

.disclaimer a:hover {
  text-decoration: underline;
}

.disclaimer p {
  margin-bottom: 8px;
}

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

@keyframes disc-glow {
  0%, 100% { border-color: #30363d; box-shadow: none; }
  25%, 75% { border-color: #f0883e; box-shadow: 0 0 20px rgba(240, 136, 62, 0.3); }
}

.disclaimer-glow {
  animation: disc-glow 15s ease-in-out 1;
}

.tip-section {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 32px;
}

.tip-btn {
  display: inline-block;
  background: linear-gradient(135deg, #f7931a, #8dc63f);
  color: #0f1117;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.tip-btn:hover {
  opacity: 0.85;
}

footer {
  margin-top: 0;
  padding: 20px 0;
  text-align: center;
  color: #484f58;
  font-size: 13px;
  border-top: 1px solid #21262d;
}
