/* Dashboard styles — matches landing page theme */

.dash-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 48px 80px;
}

.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 40px;
}

.dash-tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.dash-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
}

.dash-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 8px;
}

/* Buttons */
.btn {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--cyan);
  color: var(--bg);
  border-color: var(--cyan);
}
.btn-primary:hover { opacity: 0.85; }
.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(0,212,255,0.3);
}
.btn-ghost:hover {
  background: rgba(0,212,255,0.1);
}
.btn-danger {
  background: transparent;
  color: #ff6b6b;
  border-color: rgba(255,107,107,0.3);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 48px;
}

.stat-card {
  background: var(--bg-2);
  padding: 28px 24px;
}
.stat-card-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -1px;
  margin-bottom: 6px;
}
.stat-card-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* Signals Feed */
.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.feed-title {
  font-size: 18px;
  font-weight: 700;
}

.feed-filters {
  display: flex;
  gap: 8px;
}

.filter-btn {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn.active,
.filter-btn:hover {
  background: rgba(0,212,255,0.1);
  color: var(--cyan);
  border-color: rgba(0,212,255,0.3);
}

.signals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-empty {
  text-align: center;
  padding: 60px;
  color: var(--text-dim);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
}

/* Signal Card */
.signal-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 24px;
  transition: border-color 0.2s;
}
.signal-card:hover {
  border-color: rgba(0,212,255,0.3);
}

.signal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.signal-badge {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 500;
}

.badge-pricing { background: rgba(245,158,11,0.15); color: var(--amber); }
.badge-product { background: rgba(0,212,255,0.1); color: var(--cyan); }
.badge-content { background: rgba(100,100,200,0.15); color: #8888cc; }
.badge-news { background: rgba(40,200,80,0.1); color: #28ca41; }

.signal-importance {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: auto;
}
.imp-high { background: rgba(255,100,100,0.15); color: #ff6464; }
.imp-medium { background: rgba(245,158,11,0.1); color: var(--amber); }
.imp-low { background: rgba(100,100,100,0.1); color: var(--text-dim); }

.signal-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.signal-content {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 14px;
}

.signal-meta {
  display: flex;
  gap: 16px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
}

.signal-meta a {
  color: var(--cyan);
  text-decoration: none;
}
.signal-meta a:hover { text-decoration: underline; }

.signal-delete {
  background: none;
  border: none;
  color: #ff6b6b;
  cursor: pointer;
  font-size: 11px;
  padding: 2px 6px;
  margin-left: auto;
}

/* Competitor List */
.competitors-section {
  margin-top: 48px;
}

.competitors-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.competitors-title {
  font-size: 18px;
  font-weight: 700;
}

.competitors-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.competitor-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 20px;
}

.competitor-name {
  font-weight: 600;
  font-size: 14px;
  flex: 1;
}

.competitor-url {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
}

.competitor-scan {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}

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

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}
.modal-panel {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  width: 420px;
  max-width: 90vw;
}
.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

/* Forms */
.form-field {
  margin-bottom: 20px;
}
.form-field label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.form-field input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
}
.form-field input:focus {
  border-color: rgba(0,212,255,0.4);
}
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 20px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  z-index: 200;
  animation: slideUp 0.2s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .dash-container { padding: 24px 24px 60px; }
  .dash-header { flex-direction: column; gap: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .feed-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}