/* Collectables Intelligence Dashboard Styles */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a24;
  --bg-card: #16161f;

  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b7b;

  --accent-primary: #8b5cf6;
  --accent-secondary: #6366f1;
  --accent-success: #22c55e;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;

  --border-color: #2a2a3a;
  --border-radius: 12px;
  --border-radius-sm: 8px;

  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);

  --transition: 0.2s ease;
}

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

html, body {
  height: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  z-index: 9999;
  gap: 1rem;
}

.loader {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Access Denied */
.access-denied {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  z-index: 9998;
}

.access-denied-content {
  text-align: center;
  padding: 3rem;
}

.access-denied-content svg {
  color: var(--accent-danger);
  margin-bottom: 1.5rem;
}

.access-denied-content h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.access-denied-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Utility */
.hidden { display: none !important; }

/* App Layout */
.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  height: 100vh;
}

/* Sidebar */
.sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.sidebar-header {
  margin-bottom: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  font-size: 1.75rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 600;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.nav-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--accent-primary);
  color: white;
}

.nav-item svg {
  flex-shrink: 0;
}

.sidebar-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

/* Main Content */
.main-content {
  overflow-y: auto;
  padding: 2rem;
}

/* Views */
.view {
  display: none;
}

.view.active {
  display: block;
}

.view-header {
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.view-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
}

.view-subtitle {
  color: var(--text-secondary);
  flex: 1;
}

/* Quick Lookup */
.quick-lookup-section {
  margin-bottom: 2rem;
}

.quick-lookup {
  position: relative;
}

.quick-search-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-family: var(--font-sans);
  transition: var(--transition);
}

.quick-search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.quick-search-input::placeholder {
  color: var(--text-muted);
}

.quick-results {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

.quick-result-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.quick-result-item:last-child {
  border-bottom: none;
}

.quick-result-item:hover {
  background: var(--bg-tertiary);
}

.result-name {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.result-set {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.result-prices {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.price-item {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.price-value {
  color: var(--accent-success);
  font-weight: 500;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  font-size: 2rem;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Dashboard Section */
.dashboard-section {
  margin-bottom: 2rem;
}

.dashboard-section h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Bids List */
.bids-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bid-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bid-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.bid-status.won { background: var(--accent-success); }
.bid-status.lost { background: var(--accent-danger); }

.bid-info {
  flex: 1;
}

.bid-name {
  font-weight: 500;
}

.bid-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.bid-amount {
  font-family: var(--font-mono);
  font-weight: 600;
}

.bid-amount.won { color: var(--accent-success); }
.bid-amount.lost { color: var(--text-muted); }

/* Lookup */
.lookup-container {
  max-width: 800px;
}

.lookup-form {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.lookup-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lookup-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.25rem;
}

.lookup-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.lookup-item-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.lookup-item-set {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.lookup-item-category {
  font-size: 0.75rem;
  background: var(--accent-primary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.lookup-prices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.lookup-price-box {
  background: var(--bg-tertiary);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-sm);
  text-align: center;
}

.lookup-price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.lookup-price-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-success);
}

.lookup-price-range {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Streams */
.streams-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.streams-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.manual-stream-add {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.manual-stream-add h3 {
  margin-bottom: 0.5rem;
}

.manual-stream-add p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.stream-url-form {
  display: flex;
  gap: 1rem;
}

.stream-url-form .input {
  flex: 1;
}

.streams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

/* Want List */
.wantlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.wantlist-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.25rem;
}

.wantlist-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.wantlist-item-name {
  font-weight: 600;
}

.wantlist-item-priority {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.wantlist-item-priority.high {
  background: var(--accent-warning);
  color: black;
}

.wantlist-max-bid {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent-success);
  margin-bottom: 0.5rem;
}

.wantlist-item-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Sellers */
.sellers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.seller-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.25rem;
}

.seller-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.seller-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.seller-rating {
  color: var(--accent-warning);
}

.seller-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.seller-notes {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.seller-flagged {
  color: var(--accent-danger);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* History Filters */
.history-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.filter-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

/* Form Elements */
.input, .select {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition);
}

.input:focus, .select:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.input::placeholder {
  color: var(--text-muted);
}

.input-lg {
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
}

.select {
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
}

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

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card);
}

.btn-danger {
  background: var(--accent-danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

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

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

.modal-body .form-group {
  margin-bottom: 1rem;
}

.modal-body label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.modal-body .input,
.modal-body .select,
.modal-body textarea {
  width: 100%;
}

.modal-body textarea {
  min-height: 100px;
  resize: vertical;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: inherit;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 9999;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 1rem 1.25rem;
  min-width: 280px;
  box-shadow: var(--shadow-md);
  animation: slideIn 0.3s ease;
}

.toast.success { border-left: 4px solid var(--accent-success); }
.toast.error { border-left: 4px solid var(--accent-danger); }
.toast.warning { border-left: 4px solid var(--accent-warning); }

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

/* Nav Shortcut Keys */
.nav-shortcut {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.nav-item.active .nav-shortcut {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

/* Keyboard Shortcuts Help */
.keyboard-shortcuts {
  padding: 1rem 0;
}

.keyboard-shortcuts summary {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.85rem;
  list-style: none;
}

.keyboard-shortcuts summary::-webkit-details-marker {
  display: none;
}

.shortcuts-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.shortcuts-list kbd {
  background: var(--bg-tertiary);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border: 1px solid var(--border-color);
  margin-right: 0.5rem;
}

/* Stream Cards */
.stream-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.25rem;
}

.stream-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.stream-seller {
  font-weight: 600;
  font-size: 1.1rem;
}

.stream-status {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.stream-status.live {
  background: var(--accent-success);
  color: white;
}

.stream-status.paused {
  background: var(--accent-warning);
  color: black;
}

.stream-status.ended {
  background: var(--text-muted);
  color: white;
}

.stream-title {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.stream-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.stream-duration {
  font-family: var(--font-mono);
}

.stream-category {
  background: var(--bg-tertiary);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.stream-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.keyword-tag {
  background: var(--accent-primary);
  color: white;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.stream-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.stream-actions {
  display: flex;
  gap: 0.5rem;
}

/* Saved Filters */
.saved-filters-section,
.active-streams-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-header h3 {
  font-size: 1rem;
  font-weight: 500;
}

.saved-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.filter-card {
  background: var(--bg-tertiary);
  border-radius: var(--border-radius-sm);
  padding: 1rem;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.filter-name {
  font-weight: 500;
}

.filter-alert {
  font-size: 0.85rem;
}

.filter-category {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.filter-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
}

/* Set Calculator */
.set-calculator {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.set-calculator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.set-calculator-header h3 {
  font-size: 1rem;
  font-weight: 500;
}

.set-calculator-header h3 span {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.set-calculator-total {
  font-family: var(--font-mono);
  font-size: 1.1rem;
}

.set-calculator-total strong {
  color: var(--accent-success);
}

.set-calculator-items {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 0.75rem;
}

.set-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.set-item:last-child {
  border-bottom: none;
}

.set-item-name {
  flex: 1;
  font-size: 0.9rem;
}

.set-item-price {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-success);
}

.set-calculator-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

/* Dashboard Streams */
.dashboard-streams {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.25rem;
}

.dashboard-streams h3 {
  margin-bottom: 1rem;
}

.dashboard-streams-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* Want list high priority */
.wantlist-item.high-priority {
  border-color: var(--accent-warning);
}

.wantlist-notes {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Seller flagged */
.seller-card.flagged {
  border-color: var(--accent-danger);
}

/* Quick result enhancements */
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.25rem;
}

.result-category {
  font-size: 0.7rem;
  background: var(--bg-tertiary);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--text-muted);
}

.result-sales {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.price-range {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
}

/* Lookup item meta */
.lookup-item-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.lookup-item-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Checkbox label */
.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--text-primary) !important;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Toast info */
.toast.info {
  border-left: 4px solid var(--accent-primary);
}

/* Discovered streams */
.stream-card.discovered {
  border-color: var(--accent-secondary);
}

.stream-viewers {
  font-size: 0.85rem;
  color: var(--accent-success);
  font-family: var(--font-mono);
}

.stream-rating {
  color: var(--accent-warning);
}

/* Responsive */
@media (max-width: 768px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .main-content {
    padding: 1rem;
  }

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

  .lookup-form {
    flex-direction: column;
  }

  .streams-filters {
    flex-direction: column;
  }

  .stream-url-form {
    flex-direction: column;
  }
}

/* ============================================
   STREAM MODE - Fast Auction Price Lookup
   ============================================ */

.stream-mode {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  border: 2px solid var(--accent-primary);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.stream-mode-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.stream-mode-header h2 {
  font-size: 1.5rem;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stream-mode-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
}

.stream-mode-search {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stream-mode-search .input-xl {
  flex: 1;
  font-size: 1.25rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border-color);
  background: var(--bg-primary);
}

.stream-mode-search .input-xl:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.stream-mode-search .btn-lg {
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  white-space: nowrap;
}

.stream-mode-results {
  min-height: 200px;
}

.stream-mode-empty {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.stream-mode-empty span {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* Stream Mode Price Card */
.stream-price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.stream-price-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.stream-price-query {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.stream-price-status {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

.stream-price-status.cached {
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent-success);
}

.stream-price-status.live {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-primary);
}

/* Main Price Display */
.stream-price-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.price-stat {
  background: var(--bg-tertiary);
  border-radius: var(--border-radius-sm);
  padding: 1rem;
  text-align: center;
}

.price-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.price-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-success);
}

.price-stat-value.median {
  color: var(--accent-primary);
  font-size: 2.25rem;
}

.price-stat-value.low {
  color: var(--accent-success);
}

.price-stat-value.high {
  color: var(--accent-warning);
}

/* Deal Score */
.deal-score {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius-sm);
  margin-bottom: 1rem;
}

.deal-score-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.deal-score-input {
  width: 120px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  padding: 0.5rem;
  text-align: center;
}

.deal-score-result {
  flex: 1;
  text-align: right;
  font-size: 1.25rem;
  font-weight: 600;
}

.deal-score-result.good {
  color: var(--accent-success);
}

.deal-score-result.fair {
  color: var(--accent-warning);
}

.deal-score-result.bad {
  color: var(--accent-danger);
}

/* Price Sources */
.price-sources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.price-source {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem;
}

.price-source-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.price-source-name {
  font-weight: 500;
  font-size: 0.9rem;
}

.price-source-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.price-source-values {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.price-source-link {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--accent-primary);
  text-decoration: none;
}

.price-source-link:hover {
  text-decoration: underline;
}

/* Accent button */
.btn-accent {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  color: white;
  font-weight: 600;
}

.btn-accent:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Stream Mode Active State */
#view-lookup.stream-mode-active .view-header h1,
#view-lookup.stream-mode-active .view-header .view-subtitle,
#view-lookup.stream-mode-active #normal-lookup {
  display: none;
}

#view-lookup.stream-mode-active #btn-stream-mode {
  display: none;
}
