/* ========== ANDROMEDA THEME (REMASTERED) ========== */
:root {
  --bg-primary: #020206;
  --bg-surface: #070711;
  --bg-elevated: #0c0c19;
  --bg-card: #10101d;
  --border-subtle: #18182c;
  --border-strong: #262640;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent-red: #d60a2b;
  --accent-red-bright: #ff1a3c;
  --accent-red-glow: rgba(214, 10, 43, 0.12);
  --accent-red-border: rgba(214, 10, 43, 0.28);
  --accent-purple: #a78bfa;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  background-color: var(--bg-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden !important;
  max-width: 100vw;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-red); }

/* Layout & App Shell */
.app-shell { display: flex; min-height: 100vh; background: var(--bg-primary); }

.sidebar {
  width: 220px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: width var(--transition-base);
}

.sidebar.collapsed { width: 60px; }
.sidebar.collapsed .nav-text,
.sidebar.collapsed .sidebar-brand { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 12px; }

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-red);
  letter-spacing: 0.5px;
}

.sidebar-nav {
  flex: 1;
  padding: 10px 8px;
  overflow-y: auto;
}

.sidebar-footer {
  padding: 10px 8px;
  border-top: 1px solid var(--border-subtle);
}

.sidebar-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.sidebar-toggle:hover {
  background: var(--accent-red-glow);
  color: var(--accent-red);
  border-color: var(--accent-red-border);
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  margin-left: 220px;
  width: calc(100vw - 220px);
  max-width: calc(100vw - 220px);
  transition: margin-left var(--transition-base), width var(--transition-base);
  z-index: 99;
}

.sidebar.collapsed ~ .topbar {
  margin-left: 60px;
  width: calc(100vw - 60px);
  max-width: calc(100vw - 60px);
}

/* Content Area */
.content-area, .content {
  margin-left: 220px !important;
  padding: 24px 32px !important;
  width: calc(100vw - 220px) !important;
  max-width: calc(100vw - 220px) !important;
  min-height: 100vh;
  background: var(--bg-primary);
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  transition: margin-left var(--transition-base), width var(--transition-base);
}

.sidebar.collapsed ~ .content-area,
.sidebar.collapsed ~ .content {
  margin-left: 60px !important;
  width: calc(100vw - 60px) !important;
  max-width: calc(100vw - 60px) !important;
}

@media (max-width: 768px) {
  .sidebar { width: 60px; }
  .sidebar .nav-text, .sidebar .sidebar-brand { display: none; }
  .content-area, .content { margin-left: 60px !important; width: calc(100vw - 60px) !important; padding: 16px !important; }
  .topbar { margin-left: 60px !important; width: calc(100vw - 60px) !important; }
}

/* Navigation Items */
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 2px;
  border: 1px solid transparent;
  background: none;
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  text-align: left;
}

.nav-item:hover {
  background: var(--accent-red-glow);
  color: var(--accent-red);
  border-color: var(--accent-red-border);
}

.nav-item.active {
  background: var(--accent-red-glow);
  color: var(--accent-red);
  border-left: 3px solid var(--accent-red);
  border-color: var(--accent-red-border);
}

.sidebar .nav-item svg { width: 18px !important; height: 18px !important; flex-shrink: 0; }
.sidebar-logo svg { width: 28px !important; height: 28px !important; }
.sidebar-toggle svg { width: 16px !important; height: 16px !important; }

/* Cards & Glass Panels */
.glass-card, .card, .stat-card, .profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover, .card:hover, .glass-card:hover {
  border-color: var(--accent-red-border);
  box-shadow: var(--shadow-sm);
}

.card-header, .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3, .modal h3, .compose-box h3, .cp-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.4;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

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

.btn-primary:hover:not(:disabled) {
  background: var(--accent-red-bright);
  box-shadow: 0 0 16px var(--accent-red-glow);
  border-color: var(--accent-red-bright);
}

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

.btn-ghost:hover:not(:disabled) {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-danger {
  background: transparent;
  color: var(--accent-red-bright);
  border-color: var(--accent-red-border);
}

.btn-danger:hover:not(:disabled) {
  background: var(--accent-red-glow);
  border-color: var(--accent-red);
}

.btn-success {
  background: var(--accent-emerald);
  color: #000;
  border-color: var(--accent-emerald);
}
.btn-success:hover { background: #34d399; }

.btn-sm { padding: 4px 8px; font-size: 0.75rem; }
.btn-lg { padding: 12px 24px; font-size: 1rem; }

/* Forms & Inputs */
.form-group { margin-bottom: 16px; }
.form-group label, .modal label, .compose-box label, .template-selector label { 
  display: block; 
  margin-bottom: 6px; 
  font-size: 0.85rem; 
  color: var(--text-secondary); 
}

.form-control, input[type="text"], input[type="number"], select, textarea, .input-field {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus, input:focus, select:focus, textarea:focus {
  outline: none !important;
  border-color: var(--accent-red) !important;
  box-shadow: 0 0 0 3px var(--accent-red-glow) !important;
}

select { cursor: pointer; }
select option { background: var(--bg-surface) !important; color: var(--text-primary) !important; }

/* Tables */
.table-container, .table-wrap { overflow-x: auto; background: var(--bg-surface); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; }

th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-purple);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

td {
  padding: 10px 12px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--bg-elevated);
}

tr:hover td { background: var(--bg-elevated); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pending { background: var(--accent-amber); color: #000; }
.badge-success { background: var(--accent-emerald); color: #000; }
.badge-error { background: var(--accent-red); color: #fff; }
.badge-info { background: var(--accent-purple); color: #fff; }
.badge-warning { background: var(--accent-amber); color: #000; }
.badge-scope { background: var(--accent-purple); color: #fff; }
.badge-click { background: var(--accent-emerald); color: #000; }

/* Modals & Overlays */
.modal-overlay, .compose-overlay, .actions-layer, .modal-layer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 2, 6, 0.75) !important;
  z-index: 10000 !important;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  overflow-y: auto;
  padding: 20px;
}

.modal-overlay.open, .compose-overlay.open { display: flex !important; }

.modal, .compose-box {
  background: var(--bg-surface) !important;
  border: 1px solid var(--accent-red-border) !important;
  border-radius: var(--radius-lg) !important;
  padding: 24px !important;
  width: 90% !important;
  max-width: 600px !important;
  max-height: 85vh !important;
  overflow-y: auto !important;
  box-shadow: var(--shadow-lg) !important;
  margin: auto !important;
}

.cert-modal { max-width: 700px !important; }
.action-modal { max-width: 600px !important; }

.modal-actions, .modal-footer, .enrich-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.modal-close, .modal-header .modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color var(--transition-fast);
}
.modal-close:hover { color: var(--accent-red); }

.modal-instruction, .notice {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Toast System */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.toast-success { border-left: 3px solid var(--accent-emerald); }
.toast-error { border-left: 3px solid var(--accent-red); }
.toast-info { border-left: 3px solid var(--accent-purple); }

/* Loading & Spinners */
.loading-spinner, .spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* Animations */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Tab Navigation System */
.tab-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.tab-nav button, .tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-nav button:hover, .tab-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.tab-nav button.active, .tab-btn.active, .active-mode {
  background: var(--accent-red-glow);
  color: var(--accent-red);
  border-color: var(--accent-red-border);
  font-weight: 600;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Avatar & User Branding */
.avatar, .profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.profile-avatar { width: 48px; height: 48px; font-size: 1.2rem; }

.user { display: flex; align-items: center; gap: 10px; }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--accent-red); }

/* Dashboard Grids & Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card .num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-red);
  line-height: 1.2;
}

.stat-card .label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.settings-grid, .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 900px) { .settings-grid, .grid-2 { grid-template-columns: 1fr; } }

/* Token Health & Metrics */
.token-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.token-health-item {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border-subtle);
}

.th-num { font-size: 1.5rem; font-weight: 700; }
.th-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }
.th-blue { color: #60a5fa; }
.th-green { color: #34d399; }
.th-yellow { color: #fbbf24; }
.th-red { color: #f87171; }
.th-gray { color: #94a3b8; }

/* Activity & Feed Components */
.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-elevated);
}
.activity-item:last-child { border-bottom: none; }

.activity-item .icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-red-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  flex-shrink: 0;
}

.activity-item .title { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.activity-item .time { font-size: 0.75rem; color: var(--text-muted); }

/* Code Editor Component */
.code-editor {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 300px;
}

.code-editor textarea {
  width: 100%;
  height: 100%;
  min-height: 300px;
  padding: 16px;
  background: var(--bg-primary) !important;
  border: none !important;
  color: var(--text-primary) !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  resize: vertical;
}

.code-editor textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--accent-red) !important;
}

/* Telegram & Toggles */
.telegram-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.connected { background: var(--accent-emerald); box-shadow: 0 0 10px var(--accent-emerald); }
.dot.disconnected { background: var(--accent-red); box-shadow: 0 0 10px var(--accent-red); }

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-elevated);
}
.toggle-row:last-child { border-bottom: none; }

.toggle-label { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.toggle-desc { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: all var(--transition-base);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all var(--transition-base);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--accent-red-glow);
  border-color: var(--accent-red);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: var(--accent-red);
}

/* Logs, Results & Code Snippets */
.log-box, .logs-box, .result-box, .dns-record-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  max-height: 200px;
  overflow-y: auto;
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
}

.log-entry {
  padding: 4px 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--bg-card);
}
.log-entry:last-child { border-bottom: none; }

code {
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent-red);
}

/* Map & Iframe Containers */
#map, #tab-pages iframe {
  width: 100% !important;
  height: calc(100vh - 200px) !important;
  min-height: 500px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

#previewModal .modal {
  max-width: 90vw !important;
  width: 90vw !important;
  max-height: 90vh !important;
  height: 90vh !important;
  display: flex;
  flex-direction: column;
}

#previewModal iframe {
  width: 100% !important;
  height: 100% !important;
  flex: 1;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: white;
}

/* Choice & Proxy Cards */
.choice-check, .proxy-choice-card, .action-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.choice-check:hover, .proxy-choice-card:hover, .action-item:hover {
  border-color: var(--accent-red-border);
  background: var(--bg-card);
}

.proxy-choice-card.selected {
  border-color: var(--accent-red) !important;
  background: var(--accent-red-glow) !important;
}

.choice-icon, .action-icon { font-size: 1.5rem; flex-shrink: 0; }
.choice-title, .action-label { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); }
.choice-sub, .action-desc { font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; }

/* Utilities & Spacing */
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent-red); }
.danger { color: var(--accent-red-bright); }
.flex { display: flex; gap: 10px; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.empty-state, .table-empty, .loading { text-align: center; color: var(--text-muted); padding: 30px; font-size: 0.9rem; }
/* Andromeda Icon Integration Utilities */
.icon-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-shrink: 0;
}
.icon-inline svg {
  width: 1em;
  height: 1em;
  stroke: currentColor;
}

/* --- CYBER-TACTICAL ALIVE & DYNAMIC POLISH --- */

/* Glowing live pulse on active status dots */
@keyframes cyberPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.dot.connected {
  animation: cyberPulse 2s infinite;
  background-color: var(--accent-emerald);
}

/* Subtle background grid scanline effect for glass cards */
.glass-card {
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 10, 43, 0.4), transparent);
}

/* Live stream smooth fade-in animation for incoming telemetry logs */
@keyframes streamFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.activity-item {
  animation: streamFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: background var(--transition-fast);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}
.activity-item:hover {
  background: var(--bg-elevated);
}

/* Counter number shine update effect */
@keyframes valueFlash {
  0% { color: var(--accent-red-bright); text-shadow: 0 0 12px rgba(214,10,43,0.6); }
  100% { color: inherit; text-shadow: none; }
}
.metric-updated {
  animation: valueFlash 0.8s ease-out;
}
