/* ==========================================================================
   KOKPIT BURUAN KLIEN - LOCAL DASHBOARD STYLESHEET
   Aesthetic: Warm Editorial Charcoal. Handcrafted, high-contrast, zero-AI-slop.
   ========================================================================== */

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

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Base Accessibility: Focus Visible */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Custom Sleek Editorial Scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
  border: 1px solid transparent;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Vector Icon System */
.ui-icon {
  display: inline-flex;
  align-self: center;
  flex-shrink: 0;
  vertical-align: -0.15em;
  stroke-width: 2;
  transition: transform var(--transition-fast), stroke var(--transition-fast);
}

button:hover .ui-icon {
  transform: scale(1.05);
}

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

.ui-icon.spin {
  animation: spin 0.9s linear infinite;
}

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */
.cockpit-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 20px 80px 20px;
}

/* Top Header Bar */
.cockpit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.sender-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
}

.sender-pill.clickable {
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.sender-pill.clickable:hover {
  border-color: var(--accent);
  background: var(--bg-surface-elevated);
  transform: translateY(-1px);
}

.sender-pill.clickable:active {
  transform: translateY(0);
}

.sender-pill strong {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 40px;
}

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

.nav-tab.active {
  background: var(--bg-panel);
  color: var(--text-main);
  border-color: var(--border-strong);
}

.theme-toggle-btn {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-main);
}

/* ==========================================================================
   DAILY TARGET PROGRESS BANNER
   ========================================================================== */
.daily-banner {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.target-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.target-stat-number {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

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

.target-stat-label strong {
  color: var(--text-main);
}

.target-progress-bar-container {
  flex: 1;
  min-width: 200px;
  max-width: 380px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--bg-surface-elevated);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.target-completed-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--semantic-success-subtle);
  border: 1px solid var(--semantic-success);
  color: var(--semantic-success-contrast);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.followup-due-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--semantic-warning-subtle);
  border: 1px solid var(--semantic-warning);
  color: var(--semantic-warning);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

/* ==========================================================================
   VIEW TOGGLE (FOCUS VS LIST)
   ========================================================================== */
.view-toggle-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.view-pills {
  display: inline-flex;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.view-pill {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-pill.active {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  box-shadow: var(--shadow-subtle);
}

/* ==========================================================================
   SIGNATURE ELEMENT: STEMPEL STATUS MIRING (Tilted Rubber Stamp)
   ========================================================================== */
.stamp-tag {
  display: inline-block;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 3px;
  line-height: 1.2;
  transform: rotate(-2deg);
  transition: transform var(--transition-fast);
}

.stamp-tag:hover {
  transform: rotate(0deg) scale(1.02);
}

.stamp-social {
  border: 1.5px dashed #9D4EDD;
  color: #C77DFF;
  background: rgba(157, 78, 221, 0.12);
}

.stamp-none {
  border: 1.5px dashed var(--semantic-warning);
  color: var(--semantic-warning);
  background: var(--semantic-warning-subtle);
}

.stamp-poor {
  border: 1.5px dashed var(--semantic-danger);
  color: var(--semantic-danger);
  background: var(--semantic-danger-subtle);
}

.stamp-verified {
  border: 1.5px solid var(--semantic-success);
  color: var(--semantic-success);
  background: var(--semantic-success-subtle);
}

/* ==========================================================================
   SIGNATURE ELEMENT: SEGMENTED TICK METER (Presisi Skor Lead)
   ========================================================================== */
.segmented-meter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px 0;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.meter-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 12px;
}

.meter-score-badge {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}

.meter-segments-row {
  display: flex;
  gap: 4px;
  height: 10px;
  align-items: center;
}

.meter-segment {
  flex: 1;
  height: 6px;
  background: var(--border-subtle);
  border-radius: 2px;
  position: relative;
  transition: all var(--transition-fast);
}

.meter-segment.filled {
  background: var(--accent);
  height: 8px;
}

.meter-ticks-legend {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 4px;
}

.meter-reasons-list {
  margin-top: 8px;
  padding-left: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   MODE FOKUS: SATU LEAD AKTIF (HERO STAGE)
   ========================================================================== */
.focus-stage-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.focus-hero-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-warm);
  position: relative;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.focus-hero-card.animating {
  opacity: 0.3;
  transform: translateY(6px);
}

.hero-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.hero-lead-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 4px;
}

.hero-subinfo {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.channel-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* Verification Alert in Card */
.verification-alert {
  background: var(--semantic-warning-subtle);
  border: 1px solid var(--semantic-warning);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.verification-alert-title {
  font-weight: 700;
  font-size: 12px;
  color: var(--semantic-warning);
  display: flex;
  align-items: center;
  gap: 6px;
}

.verification-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Outreach Message Editor */
.message-workbench {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 18px 0;
}

.message-workbench-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--accent);
}

.char-counter {
  color: var(--text-dim);
  font-size: 11px;
}

.message-live-textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  min-height: 110px;
  outline: none;
}

/* Big Actions Bar */
.focus-actions-primary {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn-hero-wa {
  flex: 2;
  min-width: 220px;
  background: var(--wa-primary);
  color: var(--wa-text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  min-height: 48px;
}

.btn-hero-wa:hover {
  background: var(--wa-primary-hover);
  transform: translateY(-1px);
}

.btn-hero-advance {
  flex: 1;
  min-width: 160px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  min-height: 48px;
}

.btn-hero-advance:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.kbd-badge {
  background: rgba(0, 0, 0, 0.25);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Secondary status actions */
.focus-actions-secondary {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.btn-status-pill {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  min-height: 36px;
}

.btn-status-pill:hover {
  border-color: var(--border-strong);
  color: var(--text-main);
}

.btn-status-pill.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

/* Quick Notes in Card */
.hero-notes-form {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.input-editorial {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast);
}

.input-editorial:focus {
  border-color: var(--accent);
}

/* ==========================================================================
   QUEUE DRAWER / SIDEBAR (Antrean Berikutnya)
   ========================================================================== */
.queue-sidebar {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  max-height: 800px;
  display: flex;
  flex-direction: column;
}

.queue-sidebar-header {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.queue-list::-webkit-scrollbar {
  width: 5px;
}

.queue-list::-webkit-scrollbar-track {
  background: transparent;
}

.queue-list::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

.queue-list::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.queue-item {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
  min-height: 48px;
}

.queue-item:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface-elevated);
}

.queue-item.active {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.queue-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.queue-item-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.queue-item-score {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

/* Navigation prev / next row */
.queue-nav-controls {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.btn-nav-control {
  flex: 1;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
}

.btn-nav-control:hover:not(:disabled) {
  border-color: var(--border-strong);
  background: var(--bg-panel);
}

.btn-nav-control:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ==========================================================================
   PIPELINE KANBAN BOARD
   ========================================================================== */
.pipeline-metrics-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.pipeline-metric-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.pipeline-metric-val {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 4px;
}

.pipeline-metric-val.accent {
  color: var(--accent);
}

.pipeline-metric-val.success {
  color: var(--semantic-success);
}

.pipeline-metric-lbl {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
}

.kanban-board-scroll {
  overflow-x: auto;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) var(--bg-surface-elevated);
}

.kanban-board-scroll::-webkit-scrollbar {
  height: 8px;
}

.kanban-board-scroll::-webkit-scrollbar-track {
  background: var(--bg-surface-elevated);
  border-radius: 999px;
  margin: 0 4px;
}

.kanban-board-scroll::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.kanban-board-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.kanban-board {
  display: flex;
  gap: 16px;
  min-width: 1100px;
}

.kanban-column {
  flex: 1;
  min-width: 210px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 280px);
}

.kanban-column-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.kanban-col-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kanban-col-count {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.kanban-cards-container {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  flex: 1;
  min-height: 150px;
  transition: background-color var(--transition-fast);
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.kanban-cards-container::-webkit-scrollbar {
  width: 5px;
}

.kanban-cards-container::-webkit-scrollbar-track {
  background: transparent;
}

.kanban-cards-container::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

.kanban-cards-container::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
  flex: 1;
  min-height: 150px;
  transition: background-color var(--transition-fast);
}

.kanban-cards-container.drag-over {
  background: var(--accent-subtle);
  border: 1px dashed var(--accent);
}

.kanban-card {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  cursor: grab;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.kanban-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.kanban-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.kanban-move-select {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 3px 6px;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 8px;
  width: 100%;
}

/* ==========================================================================
   DETAIL LEAD: VERTICAL TIMELINE
   ========================================================================== */
.timeline-track {
  position: relative;
  padding-left: 28px;
  margin: 16px 0;
}

.timeline-track::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border-subtle);
}

.timeline-event-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-node-dot {
  position: absolute;
  left: -28px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 2px solid var(--accent);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.timeline-action {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-main);
  margin: 2px 0;
}

.timeline-note-box {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   EMPTY STATES BERKARAKTER
   ========================================================================== */
.empty-state-editorial {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-panel);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  margin: 24px 0;
}

.empty-state-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.empty-state-body {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 20px auto;
}

/* ==========================================================================
   SHORTCUTS MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.shortcuts-dialog {
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 24px;
  box-shadow: var(--shadow-warm);
}

.scanner-dialog {
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 740px;
  width: 100%;
  padding: 26px;
  box-shadow: var(--shadow-warm);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.live-terminal {
  background: #11100E;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: #D6D0C4;
  max-height: 250px;
  min-height: 160px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.category-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.category-chip-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
}

.category-chip-label:hover {
  border-color: var(--border-strong);
}

.category-chip-label input[type="checkbox"]:checked + span {
  color: var(--accent);
  font-weight: 700;
}

.shortcuts-dialog-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shortcut-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
}

/* Toast */
.toast-editorial {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  display: none;
  z-index: 99999;
  box-shadow: var(--shadow-warm);
}

/* ==========================================================================
   RESPONSIVE (MOBILE DOCKED BOTTOM NAV)
   ========================================================================== */
@media (max-width: 768px) {
  .cockpit-container {
    padding: 14px 12px 90px 12px;
  }

  .focus-stage-grid {
    grid-template-columns: 1fr;
  }

  .queue-sidebar {
    max-height: 380px;
  }

  .cockpit-header .nav-actions {
    display: none; /* Pindah ke bottom dock */
  }

  .mobile-bottom-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-around;
    padding: 8px 12px;
    z-index: 9000;
  }

  .mobile-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 4px 8px;
    min-height: 44px;
    justify-content: center;
  }

  .mobile-dock-item.active {
    color: var(--accent);
  }
}

@media (min-width: 769px) {
  .mobile-bottom-dock {
    display: none;
  }
}

/* ==========================================================================
   LEADS DATABASE TABLE, BADGES & MODERN EDITORIAL STYLING
   ========================================================================== */
.table-card-container {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-warm);
}

.leads-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 13px;
}

.leads-table thead tr {
  background: var(--bg-surface-elevated);
}

.leads-table th {
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.leads-table tbody tr {
  transition: background-color var(--transition-fast);
}

.leads-table tbody tr:hover td {
  background-color: rgba(255, 255, 255, 0.028);
}

.leads-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  background-color: transparent;
  transition: background-color var(--transition-fast);
}

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

.lead-name-link {
  color: var(--text-main);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 3px;
  transition: color var(--transition-fast);
}

.lead-name-link:hover {
  color: var(--accent);
}

.lead-area-tag {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid rgba(232, 89, 12, 0.3);
}

.score-pill.dim {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.channel-pill-wa {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(37, 211, 102, 0.1);
  color: #25D366;
  border: 1px solid rgba(37, 211, 102, 0.25);
  white-space: nowrap;
}

.channel-pill-other {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.status-badge.belum_dihubungi {
  background: rgba(120, 112, 101, 0.15);
  color: #A89F91;
  border: 1px solid rgba(120, 112, 101, 0.3);
}

.status-badge.terkirim {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.status-badge.follow_up_1,
.status-badge.follow_up_2,
.status-badge.follow_up {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.status-badge.balas {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.demo {
  background: rgba(168, 85, 247, 0.14);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.status-badge.negosiasi {
  background: rgba(236, 72, 153, 0.14);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.status-badge.deal {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-weight: 700;
}

.status-badge.tidak_tertarik,
.status-badge.jangan_hubungi {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.status-badge.data_lama {
  background: rgba(100, 116, 139, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.web-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.web-status-pill.proven {
  background: rgba(232, 89, 12, 0.12);
  color: #ff922b;
  border-color: rgba(232, 89, 12, 0.3);
}

.web-status-pill.social {
  background: rgba(14, 165, 233, 0.1);
  color: #38bdf8;
  border-color: rgba(14, 165, 233, 0.25);
}

.table-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.table-detail-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateX(2px);
}

.leads-filter-card {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--bg-panel);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

/* Respects Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

