/* Watchlist Column Subheader */
.col-subheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 6px 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.collapse-all-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--sub-border);
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.15s ease;
  user-select: none;
}

.collapse-all-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.4);
}

.collapse-all-arrow {
  font-size: 11px;
  font-weight: 900;
  color: inherit;
  display: inline-block;
  line-height: 1;
  transition: transform 0.2s ease;
}

.refresh-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--sub-border);
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.15s ease;
}

.refresh-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.4);
}

.refresh-btn:active svg {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* Section Component */
.section-wrap {
  margin-bottom: 12px;
}

.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 6px 2px;
  cursor: pointer;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-arrow {
  font-size: 11px;
  font-weight: 900;
  color: var(--text-secondary);
  width: 14px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.section-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-search-pill {
  background: rgba(41, 98, 255, 0.14);
  border: 1px solid rgba(41, 98, 255, 0.35);
  color: #2962ff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-sec-icon {
  background: transparent;
  border: none;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
  opacity: 0.8;
  color: var(--text-secondary);
  border-radius: 4px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-sec-icon:hover {
  opacity: 1;
  color: var(--text-primary);
}

.btn-sec-icon.btn-sec-delete {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
}

.btn-sec-icon.btn-sec-delete:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.empty-sec-box {
  font-size: 11px;
  font-style: italic;
  color: var(--text-muted);
  padding: 10px 12px;
  line-height: 1.4;
}

/* Symbol Card / Row */
.symbol-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  gap: 8px;
}

.symbol-card.selected {
  border-color: rgba(56, 189, 248, 0.45);
  background: var(--surface-bg);
}

.symbol-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.symbol-info-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.symbol-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.symbol-name {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.symbol-dot {
  color: var(--text-muted);
  font-size: 10px;
  flex-shrink: 0;
}

.symbol-tools-row {
  display: flex;
  align-items: center;
  gap: 3.5px;
  flex-wrap: nowrap;
}

/* Symbol Reorder & Avatar Vertical Column */
.symbol-reorder-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  flex-shrink: 0;
  width: 24px;
}

.order-tool-btn {
  background: transparent;
  border: none;
  color: var(--text-muted, #787b86);
  font-size: 8px;
  width: 22px;
  height: 12px;
  min-width: unset;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  line-height: 1;
  transition: all 0.15s ease;
  user-select: none;
}

.order-tool-btn:hover {
  color: var(--text-primary, #f8fafc);
  background: rgba(255, 255, 255, 0.08);
}

.order-tool-btn:active {
  transform: scale(0.92);
}

.symbol-feed-badge,
.symbol-avatar-badge {
  width: 24px;
  height: 18px;
  min-width: 24px;
  min-height: 18px;
  border: none !important;
  box-shadow: none !important;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  user-select: none;
  transition: all 0.15s ease;
}

.symbol-feed-badge.feed-ab,
.symbol-avatar-badge.feed-ab {
  background: transparent;
  border: none !important;
  color: #38bdf8;
  box-shadow: none !important;
}

.symbol-feed-badge.feed-tv,
.symbol-avatar-badge.feed-tv {
  background: transparent;
  border: none !important;
  color: #c084fc;
  box-shadow: none !important;
}

.symbol-feed-badge.feed-bn,
.symbol-avatar-badge.feed-bn {
  background: transparent;
  border: none !important;
  color: #f59e0b;
  box-shadow: none !important;
}

.symbol-feed-badge.feed-unk,
.symbol-avatar-badge.feed-unk,
.symbol-feed-badge.feed-\?,
.symbol-avatar-badge.feed-\? {
  background: transparent;
  border: none !important;
  color: #94a3b8;
  box-shadow: none !important;
}

.tool-btn {
  background: var(--input-bg);
  border: 1px solid var(--sub-border);
  color: var(--text-secondary);
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 9.5px;
  min-width: 20px;
  height: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.tool-btn:hover {
  color: var(--text-primary);
  background: var(--border);
}

.tool-btn.tool-btn-star {
  font-size: 11px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--sub-border);
  transition: all 0.15s ease;
  padding: 1px 4px;
}

@media (hover: hover) {
  .tool-btn.tool-btn-star:not(.active):hover {
    color: var(--text-primary);
    background: var(--border);
    border-color: var(--sub-border);
  }
}

.tool-btn.tool-btn-star.active {
  color: #fbbf24 !important;
  background: rgba(251, 191, 36, 0.16) !important;
  border-color: rgba(251, 191, 36, 0.5) !important;
  text-shadow: 0 0 6px rgba(251, 191, 36, 0.45);
}

.tool-btn.tool-btn-remove {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
}

.tool-btn.tool-btn-remove:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
}

.tool-btn.tool-btn-remove.protected-btn {
  opacity: 0.3;
  cursor: not-allowed;
}

.tool-btn.tool-btn-remove.protected-btn:hover {
  color: var(--text-muted);
  background: var(--input-bg);
  border-color: var(--sub-border);
}

.exchange-tag {
  font-size: 8.5px;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
  max-width: 58px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0.85;
}

.symbol-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: 0 0 auto;
  flex-shrink: 0;
  text-align: right;
}

.symbol-price-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.tick-arrow {
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10px;
  user-select: none;
  transition: transform 0.12s ease-out, color 0.12s ease-out;
}

.tick-arrow.up {
  color: #22c55e; /* Vibrant Green (▲) */
}

.tick-arrow.down {
  color: #ef4444; /* Vibrant Red (▼) */
}

.tick-arrow.neutral {
  display: none;
}

.symbol-price {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--text-primary);
  transition: color 0.15s ease-out;
  white-space: nowrap;
}
.order-action-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-ls {
  background: var(--input-bg);
  border: 1px solid var(--sub-border);
  color: var(--text-primary);
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 10.5px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 26px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-ls:hover {
  background: var(--border);
}

.btn-ls.buy:hover {
  border-color: var(--buy-green);
  color: #34d399;
}

.btn-ls.sell:hover {
  border-color: var(--sell-red);
  color: #f87171;
}

/* Global Watchlist Bottom Buttons */
.add-sec-btn {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--sub-border);
  border-radius: 10px;
  padding: 12px;
  color: #2962ff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 8px;
}

.clear-btn {
  width: 100%;
  background: transparent;
  border: 1.5px dashed var(--sell-red);
  border-radius: 10px;
  padding: 12px;
  color: var(--sell-red);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 24px;
}
