/* n.codes Demo Styles - Dark Theme */

:root {
  --bg-body: #050505;
  --bg-card: #0f0f0f;
  --bg-code: #111111;
  --bg-sidebar: #0a0a0a;
  --bg-panel: #0d0d0d;
  --border-color: #262626;
  --border-light: #1a1a1a;
  --text-main: #ededed;
  --text-muted: #a1a1aa;
  --text-dim: #52525b;
  --accent: #4ade80;
  --accent-dim: rgba(74, 222, 128, 0.1);
  --accent-hover: #86efac;
  --danger: #f87171;
  --danger-dim: rgba(248, 113, 113, 0.1);
  --warning: #fbbf24;
  --warning-dim: rgba(251, 191, 36, 0.1);
}

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

html, body {
  height: 100%;
  background: var(--bg-body);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==================== App Shell ==================== */
.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 220px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-logo {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-light);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #000;
  font-size: 14px;
}

.logo-text {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-main);
}

.sidebar-nav {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
}

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

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

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

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.main-header {
  padding: 20px 32px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.main-header h1 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
}

.user-badge {
  font-size: 13px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-muted);
}

.content-area {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-weight: 500;
}

.stat-value {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

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

.stat-change.positive {
  color: var(--accent);
}

.stat-change.negative {
  color: var(--danger);
}

/* Placeholder Section */
.placeholder-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: 16px;
}

.placeholder-icon {
  color: var(--text-dim);
  margin-bottom: 20px;
  opacity: 0.5;
}

.placeholder-section h3 {
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 8px;
  font-weight: 600;
}

.placeholder-section p {
  color: var(--text-muted);
  font-size: 14px;
}

.highlight-text {
  color: var(--accent);
  font-weight: 500;
}

/* ==================== n.codes Trigger Button ==================== */
.ncodes-trigger {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  height: 36px;
  padding: 0 16px;
  border-radius: 99px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  z-index: 1000;
  animation: breathe 3s infinite ease-in-out;
}

@keyframes breathe {
  0% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--border-color);
  }
  50% {
    box-shadow: 0 0 25px var(--accent-dim), 0 0 10px var(--accent-dim);
    border-color: var(--accent);
  }
  100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--border-color);
  }
}

.ncodes-trigger svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.ncodes-trigger:hover {
  background: var(--bg-panel);
  border-color: var(--accent);
  color: var(--text-main);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.ncodes-trigger:active {
  transform: translateX(-50%) scale(0.98);
}

.ncodes-trigger.hidden {
  transform: translateX(-50%) scale(0.9);
  opacity: 0;
  pointer-events: none;
}

/* ==================== n.codes Panel ==================== */
.ncodes-panel {
  position: fixed;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  width: 400px;
  max-height: calc(100vh - 100px);
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform-origin: bottom center;
  transition: all 0.2s ease;
}

.ncodes-panel.open {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}

.panel-logo {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
  font-size: 16px;
  font-family: 'JetBrains Mono', monospace;
}

.panel-close {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.panel-close:hover {
  background: var(--bg-card);
  color: var(--text-main);
}

.panel-body {
  padding: 20px;
  overflow-y: auto;
}

.panel-intro {
  margin-bottom: 20px;
}

.panel-intro p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Prompt Section */
.prompt-section {
  margin-bottom: 24px;
}

.prompt-input {
  width: 100%;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text-main);
  font-size: 14px;
  font-family: inherit;
  resize: none;
  margin-bottom: 12px;
  transition: border-color 0.15s ease;
}

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

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

.generate-btn {
  width: 100%;
  padding: 12px 20px;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

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

.btn-loading {
  display: flex;
  gap: 4px;
}

.loading-dot {
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Quick Prompts */
.quick-prompts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-prompts-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-bottom: 4px;
}

.quick-prompt {
  padding: 10px 14px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-prompt:hover {
  border-color: var(--accent);
  color: var(--text-main);
  background: var(--accent-dim);
}

/* Generation Status */
.generation-status {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-body);
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
}

.status-icon {
  font-size: 16px;
}

.status-icon.spinning {
  animation: spin 1s linear infinite;
}

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

/* ==================== Generated UI Styles ==================== */
.generated-ui {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

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

.generated-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.generated-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.generated-title h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
}

.generated-badge {
  font-size: 11px;
  padding: 4px 10px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 99px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

.generated-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}

.generated-action-btn.secondary {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.generated-action-btn.secondary:hover {
  background: var(--bg-card);
  color: var(--text-main);
}

.generated-body {
  padding: 24px;
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  color: var(--text-dim);
  font-weight: 500;
  padding: 12px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 16px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

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

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.customer-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 36px;
  height: 36px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.avatar.small {
  width: 28px;
  height: 28px;
  font-size: 10px;
}

.customer-name {
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 2px;
}

.customer-email {
  font-size: 12px;
  color: var(--text-dim);
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.amount {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-main);
  font-weight: 500;
}

.overdue-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.overdue-badge.mild {
  background: var(--warning-dim);
  color: var(--warning);
}

.overdue-badge.moderate {
  background: rgba(251, 146, 60, 0.1);
  color: #fb923c;
}

.overdue-badge.severe {
  background: var(--danger-dim);
  color: var(--danger);
}

.action-btn {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}

.action-btn.remind {
  background: var(--accent-dim);
  color: var(--accent);
}

.action-btn.remind:hover {
  background: var(--accent);
  color: #000;
}

.action-btn.primary {
  background: var(--accent);
  color: #000;
}

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

.action-btn.secondary {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.action-btn.secondary:hover {
  color: var(--text-main);
  background: var(--bg-card);
}

.action-btn.danger {
  background: var(--danger);
  color: #fff;
}

.action-btn.danger:hover {
  background: #ef4444;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  margin-top: 8px;
  border-top: 1px solid var(--border-color);
}

.table-info {
  font-size: 13px;
  color: var(--text-dim);
}

/* ==================== Dashboard Styles ==================== */
.health-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.health-stat {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
}

.health-stat-value {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 4px;
}

.health-stat.healthy .health-stat-value { color: var(--accent); }
.health-stat.at-risk .health-stat-value { color: var(--warning); }
.health-stat.churning .health-stat-value { color: var(--danger); }

.health-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.health-bar {
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
}

.health-bar-fill {
  height: 100%;
  border-radius: 2px;
}

.health-stat.healthy .health-bar-fill { background: var(--accent); }
.health-stat.at-risk .health-bar-fill { background: var(--warning); }
.health-stat.churning .health-bar-fill { background: var(--danger); }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.dashboard-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
}

.dashboard-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 16px;
}

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

.risk-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.risk-customer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.risk-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
}

.risk-score.high {
  background: var(--danger-dim);
  color: var(--danger);
}

.risk-score.medium {
  background: var(--warning-dim);
  color: var(--warning);
}

.chart-placeholder {
  padding-top: 8px;
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  margin-bottom: 8px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--accent), rgba(74, 222, 128, 0.3));
  border-radius: 4px 4px 0 0;
  min-height: 10px;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-dim);
}

.dashboard-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ==================== Archive Styles ==================== */
.archive-info {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.archive-stat-value {
  font-size: 48px;
  font-weight: 600;
  color: var(--warning);
  display: block;
}

.archive-stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

.selection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 8px 8px 0 0;
  border-bottom: none;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.selection-count {
  font-size: 12px;
  color: var(--text-dim);
}

.data-table.selectable {
  border: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
}

.data-table.selectable th:first-child,
.data-table.selectable td:first-child {
  width: 40px;
  text-align: center;
}

.row-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

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

.type-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
}

.status-badge.inactive {
  background: var(--border-color);
  color: var(--text-dim);
}

.archive-actions {
  display: flex;
  gap: 12px;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .health-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .ncodes-panel {
    width: calc(100% - 32px);
    left: 16px;
    right: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== Walkthrough Overlay ==================== */
.walkthrough-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.walkthrough-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.walkthrough-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

/* Spotlight effect for highlighted elements */
.walkthrough-spotlight {
  position: relative;
  z-index: 2001;
  box-shadow: 0 0 0 4px var(--accent), 0 0 0 9999px rgba(0, 0, 0, 0.75);
  border-radius: inherit;
}

/* ==================== Walkthrough Tooltips ==================== */
.walkthrough-tooltip {
  position: fixed;
  z-index: 2002;
  width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.walkthrough-tooltip.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Welcome tooltip - centered */
.walkthrough-tooltip[data-step="1"] {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.walkthrough-tooltip[data-step="1"].active {
  transform: translate(-50%, -50%);
}

/* Trigger tooltip - above the button */
.walkthrough-tooltip[data-step="2"] {
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
}

.walkthrough-tooltip[data-step="2"].active {
  transform: translateX(-50%) translateY(0);
}

/* Panel tooltip - to the side of panel */
.walkthrough-tooltip[data-step="3"] {
  bottom: 120px;
  left: calc(50% + 220px);
  transform: translateY(10px);
}

.walkthrough-tooltip[data-step="3"].active {
  transform: translateY(0);
}

/* Tooltip arrow */
.tooltip-arrow {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.walkthrough-tooltip[data-step="2"] .tooltip-arrow {
  bottom: -7px;
  left: 50%;
  margin-left: -6px;
}

.walkthrough-tooltip[data-step="3"] .tooltip-arrow {
  left: -7px;
  top: 50%;
  margin-top: -6px;
  transform: rotate(135deg);
}

/* Tooltip content */
.tooltip-content {
  padding: 24px;
}

.tooltip-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.tooltip-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.tooltip-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Tooltip footer */
.tooltip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-body);
  border-radius: 0 0 16px 16px;
}

.tooltip-step {
  font-size: 12px;
  color: var(--text-dim);
}

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

.tooltip-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}

.tooltip-btn.skip {
  background: transparent;
  color: var(--text-muted);
}

.tooltip-btn.skip:hover {
  color: var(--text-main);
}

.tooltip-btn.secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.tooltip-btn.secondary:hover {
  color: var(--text-main);
  background: var(--bg-panel);
}

.tooltip-btn.primary {
  background: var(--accent);
  color: #000;
}

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

/* Pulsing highlight for trigger button during walkthrough */
.ncodes-trigger.walkthrough-highlight {
  animation: pulse-highlight 1.5s infinite ease-in-out;
  z-index: 2001;
}

@keyframes pulse-highlight {
  0% {
    box-shadow: 0 0 0 0 var(--accent), 0 0 0 0 rgba(74, 222, 128, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px var(--accent), 0 0 0 12px rgba(74, 222, 128, 0.2);
  }
  100% {
    box-shadow: 0 0 0 0 var(--accent), 0 0 0 0 rgba(74, 222, 128, 0.4);
  }
}

/* Responsive walkthrough */
@media (max-width: 768px) {
  .walkthrough-tooltip {
    width: calc(100% - 32px);
    left: 16px !important;
    right: 16px !important;
  }

  .walkthrough-tooltip[data-step="3"] {
    left: 16px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }

  .walkthrough-tooltip[data-step="3"].active {
    transform: translateY(-50%);
  }

  .walkthrough-tooltip[data-step="3"] .tooltip-arrow {
    display: none;
  }
}
