:root {
  --bg-gradient: linear-gradient(180deg, #090a0d 0%, #0c0e14 100%);
  --accent-purple: #00e676;
  --accent-emerald: #00e676;
  --accent-blue: #00bcd4;
  --accent-gradient: linear-gradient(90deg, #00e676 0%, #00bcd4 100%);
  --card-bg: rgba(13, 16, 23, 0.92);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(0, 230, 118, 0.35);
  --surface: #0e1118;
  --surface-elevated: #131722;
  --input-bg: #10141d;
  --input-border: rgba(255, 255, 255, 0.12);
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --table-header-bg: rgba(17, 20, 28, 0.96);
  --btn-gradient: linear-gradient(135deg, #00e676 0%, #00bcd4 100%);
  --shadow-glow: 0 4px 20px rgba(0, 0, 0, 0.6);
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font-main);
  background: #090a0d;
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding: 0 0 2.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Background Depth */
.glass-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #090a0d;
  z-index: -2;
}

body::before {
  content: '';
  position: fixed;
  top: -15%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.04) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -15%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.04) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 1300px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 1.25rem;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-glow);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-area .icon {
  font-size: 2.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-area h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-area .subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.1rem;
}

.action-panel {
  display: flex;
  gap: 1rem;
}

/* Buttons */
.btn {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary {
  background: var(--btn-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 188, 212, 0.6), var(--shadow-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-filter {
  background: var(--accent-gradient);
  color: white;
  flex-grow: 2;
  justify-content: center;
}

.btn-filter:hover {
  box-shadow: 0 4px 15px rgba(0, 230, 118, 0.4);
  transform: translateY(-1px);
}

.btn-reset {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  justify-content: center;
}

.btn-reset:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 188, 212, 0.5);
}

.stat-card h3 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.stat-card .stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, #d4d4d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Filter Panel */
.filter-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.8rem;
  backdrop-filter: blur(12px);
}

.filter-panel h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.5rem;
}

/* Dashboard Project Tabs */
.project-tab-switcher {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
}

.project-tab-btn {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  border-radius: 6px;
  padding: 0.42rem 0.9rem;
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.18s ease;
}

.project-tab-btn:hover:not(.active) {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.project-tab-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  align-items: flex-end;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.input-group input,
.input-group select {
  font-family: var(--font-main);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  padding: 0.7rem 1rem;
  border-radius: 10px;
  outline: none;
  font-size: 0.9rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.25);
}

.input-group select option {
  background: #10141d;
  color: var(--text-primary);
}

.btn-group {
  display: flex;
  gap: 0.75rem;
}

/* Listings Section & Table */
.listings-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1rem;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.table-container {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.table-container table {
  min-width: 900px;
}

#listingsTable {
  min-width: 1450px;
}

/* Custom Scrollbars */
.table-container::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.table-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
  background: rgba(0, 230, 118, 0.25);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 230, 118, 0.45);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

th {
  background: var(--table-header-bg);
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid rgba(0, 230, 118, 0.25);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

/* Specific columns */
.business-name {
  font-weight: 600;
  color: var(--text-primary);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-tag {
  background: rgba(0, 230, 118, 0.12);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.store-tags {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 140px;
}

.store-tag {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
}

.store-tag.yes {
  color: #00e676;
}

.store-tag.no {
  color: #ff5252;
  opacity: 0.6;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
}

.btn-nav {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
}

.btn-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

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

#pageInfo {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Spinner / Loading Styles */
.loading-state {
  text-align: center;
  padding: 4rem !important;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

@media(max-width: 768px) {
  body {
    padding: 1rem 0.5rem;
  }
  .app-header {
    flex-direction: column;
    align-items: stretch;
  }
  .action-panel {
    justify-content: stretch;
  }
  .action-panel .btn {
    flex-grow: 1;
    justify-content: center;
  }
  .filter-form {
    grid-template-columns: 1fr;
  }
  .btn-group {
    margin-top: 0.5rem;
  }
}

/* Navigation Styling (Notion-Style Base & Fallback) */
.nav-bar {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.15s ease;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  font-weight: 600;
  position: relative;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, #00e676, #00b4d8);
  border-radius: 2px;
}

/* --- Pan-India Geographic Orchestrator Components --- */
.quick-picks-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.category-pill {
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.category-pill:hover {
  background: rgba(0, 188, 212, 0.15);
  border-color: rgba(0, 188, 212, 0.4);
  color: #26c6da;
}

.category-pill.active {
  background: rgba(0, 230, 118, 0.2);
  border-color: #00e676;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.35);
}

.strategy-segmented {
  display: flex;
  background: rgba(16, 20, 29, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.25rem;
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.strategy-btn {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.strategy-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.strategy-btn.active {
  background: var(--btn-gradient);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 188, 212, 0.35);
}

.area-chip-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
  user-select: none;
}

.area-chip-label:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 188, 212, 0.3);
}

.area-chip-label.checked {
  background: rgba(0, 188, 212, 0.12);
  border-color: rgba(0, 188, 212, 0.5);
  color: #80deea;
}

.area-chip-label input[type="checkbox"] {
  accent-color: #00bcd4;
  cursor: pointer;
}

.info-tip-box {
  background: rgba(0, 188, 212, 0.06);
  border-left: 3px solid #00bcd4;
  border-radius: 0 8px 8px 0;
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
  color: #b2ebf2;
  line-height: 1.4;
  margin-top: 0.4rem;
}

/* --- WhatsApp Marketing & AI Preview Styles --- */
.wa-preview-card {
  background: #0b141a;
  border: 1px solid rgba(38, 198, 218, 0.25);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 0.75rem;
  position: relative;
}

.wa-chat-bubble {
  background: #005c4b;
  color: #e9edef;
  font-size: 0.85rem;
  line-height: 1.45;
  padding: 0.75rem 1rem;
  border-radius: 8px 8px 0 8px;
  position: relative;
  max-width: 90%;
  margin-left: auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  white-space: pre-wrap;
}

.wa-chat-bubble::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -8px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-left-color: #005c4b;
  border-bottom: 0;
}

.preset-chip {
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  padding: 0.2rem 0.6rem;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.preset-chip:hover {
  background: rgba(38, 198, 218, 0.15);
  border-color: #26c6da;
  color: #26c6da;
}

.preset-chip.active {
  background: rgba(0, 230, 118, 0.2);
  border-color: #00e676;
  color: #fff;
}

/* Multi-Channel Outreach Selector Tabs */
.channel-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.76rem;
  font-weight: 500;
  gap: 0.25rem;
}

.channel-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.channel-tab-btn.active[data-channel="whatsapp"] {
  background: rgba(37, 211, 102, 0.15);
  border-color: #25d366;
  color: #25d366;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.25);
}

.channel-tab-btn.active[data-channel="email"] {
  background: rgba(33, 150, 243, 0.18);
  border-color: #2196f3;
  color: #64b5f6;
  box-shadow: 0 0 12px rgba(33, 150, 243, 0.25);
}

.channel-tab-btn.active[data-channel="instagram"] {
  background: rgba(225, 48, 108, 0.18);
  border-color: #e1306c;
  color: #ff4081;
  box-shadow: 0 0 12px rgba(225, 48, 108, 0.25);
}

.channel-tab-btn.active[data-channel="linkedin"] {
  background: rgba(0, 119, 181, 0.2);
  border-color: #0077b5;
  color: #4fc3f7;
  box-shadow: 0 0 12px rgba(0, 119, 181, 0.25);
}

/* Channel Badges */
.badge-whatsapp {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-email {
  background: rgba(33, 150, 243, 0.15);
  color: #64b5f6;
  border: 1px solid rgba(33, 150, 243, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-instagram {
  background: rgba(225, 48, 108, 0.15);
  color: #ff4081;
  border: 1px solid rgba(225, 48, 108, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-linkedin {
  background: rgba(0, 119, 181, 0.15);
  color: #4fc3f7;
  border: 1px solid rgba(0, 119, 181, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Adaptive Channel Chat Bubbles */
.wa-chat-bubble.bubble-email {
  background: #1e293b;
  color: #f1f5f9;
  border-left: 3px solid #38bdf8;
  border-radius: 8px;
}
.wa-chat-bubble.bubble-email::after {
  display: none;
}

.wa-chat-bubble.bubble-instagram {
  background: linear-gradient(135deg, #405de6, #5851db, #833ab4, #c13584, #e1306c);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
}
.wa-chat-bubble.bubble-instagram::after {
  display: none;
}

.wa-chat-bubble.bubble-linkedin {
  background: #004182;
  color: #fff;
  border-left: 3px solid #00a0dc;
  border-radius: 6px;
}
.wa-chat-bubble.bubble-linkedin::after {
  display: none;
}

/* ==========================================================================
   7-LAYER AI OUTREACH PIPELINE STYLES
   ========================================================================== */

.pipeline-stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(13, 16, 23, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem 1.75rem;
  backdrop-filter: blur(12px);
  position: relative;
  overflow-x: auto;
  gap: 0.5rem;
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  flex: 1;
  min-width: 120px;
  position: relative;
  transition: all 0.25s ease;
  z-index: 1;
}

.step-node:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 60%;
  width: 80%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: -1;
  transition: background 0.3s ease;
}

.step-node.completed:not(:last-child)::after {
  background: linear-gradient(90deg, #00e676, #00bcd4);
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-title {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.step-node.active .step-circle {
  background: var(--btn-gradient);
  border-color: #26c6da;
  color: #fff;
  box-shadow: 0 0 15px rgba(38, 198, 218, 0.5);
  transform: scale(1.1);
}

.step-node.active .step-title {
  color: #fff;
  font-weight: 600;
}

.step-node.completed .step-circle {
  background: rgba(0, 230, 118, 0.18);
  border-color: #00e676;
  color: #00e676;
  font-weight: 700;
  font-size: 1rem;
}

.step-node.completed .step-title {
  color: #00e676;
}

.step-node.completed.active .step-circle {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.35), rgba(38, 198, 218, 0.5));
  border-color: #00e676;
  color: #fff;
  box-shadow: 0 0 18px rgba(0, 230, 118, 0.5);
  transform: scale(1.1);
}

.step-node.completed.active .step-title {
  color: #80deea;
  font-weight: 700;
}

.step-node.running .step-circle {
  background: rgba(38, 198, 218, 0.25);
  border-color: #26c6da;
  color: #fff;
  box-shadow: 0 0 18px rgba(38, 198, 218, 0.6);
  animation: pulseStepRing 1.5s infinite;
}

@keyframes pulseStepRing {
  0% { box-shadow: 0 0 0 0 rgba(38, 198, 218, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(38, 198, 218, 0); }
  100% { box-shadow: 0 0 0 0 rgba(38, 198, 218, 0); }
}

/* Phase Viewports */
.phase-panel {
  display: none;
  animation: fadeInPhase 0.3s ease-out forwards;
}

.phase-panel.active {
  display: block;
}

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

/* Battlecards */
.battlecards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.battlecard {
  background: rgba(15, 18, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 1.25rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.battlecard:hover {
  border-color: rgba(38, 198, 218, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.battlecard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.6rem;
}

.battlecard-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.battlecard-tier {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.battlecard-section {
  font-size: 0.8rem;
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.battlecard-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.battlecard-wedge {
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  color: #a7f3d0;
}

/* Campaign Strategy Selection Cards */
.campaign-strategies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.strategy-card {
  background: rgba(15, 18, 26, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 1.35rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.strategy-card:hover {
  border-color: rgba(38, 198, 218, 0.5);
  transform: translateY(-2px);
}

.strategy-card.selected {
  border-color: #26c6da;
  background: rgba(38, 198, 218, 0.08);
  box-shadow: 0 0 20px rgba(38, 198, 218, 0.2);
}

.strategy-badge {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
}

/* Decision Maker Badges */
.badge-dm-found {
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.73rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.badge-dm-pending {
  background: rgba(255, 193, 7, 0.12);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.25);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.73rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.badge-dm-inferred {
  background: rgba(147, 197, 253, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.25);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.73rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Outreach Draft Cards */
.drafts-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}

.draft-card {
  background: rgba(15, 18, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color 0.2s ease;
}

.draft-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

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

.draft-subject-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #fff;
  font-size: 0.88rem;
  font-family: inherit;
  margin-bottom: 0.6rem;
}

.draft-body-textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #f1f5f9;
  font-size: 0.85rem;
  line-height: 1.55;
  font-family: inherit;
  resize: vertical;
}

/* Progress bar */
.pipeline-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0;
}

.pipeline-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--btn-gradient);
  transition: width 0.3s ease;
}

/* Toast Notifications */
.pipeline-toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.pipeline-toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  background: rgba(20, 16, 35, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.85rem 1.15rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(38, 198, 218, 0.15);
  backdrop-filter: blur(14px);
  color: #fff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInToast 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.25s ease;
}

.pipeline-toast.success {
  border-left: 4px solid #00e676;
}

.pipeline-toast.error {
  border-left: 4px solid #ff5252;
}

.pipeline-toast.info {
  border-left: 4px solid #26c6da;
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateX(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Draft Meta & Stats Pills */
.draft-meta-pill {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #b0bec5;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.word-count-pill {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
  background: rgba(38, 198, 218, 0.1);
  border: 1px solid rgba(38, 198, 218, 0.25);
  color: #80deea;
}

/* Queue table in Step 7 */
.queue-table th {
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 20, 28, 0.95);
}

.queue-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.84rem;
}

.queue-status-pill {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.queue-status-pill.draft {
  background: rgba(255, 255, 255, 0.08);
  color: #b0bec5;
}

.queue-status-pill.sending {
  background: rgba(38, 198, 218, 0.15);
  color: #26c6da;
  border: 1px solid rgba(38, 198, 218, 0.3);
}

.queue-status-pill.sent {
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.queue-status-pill.failed {
  background: rgba(255, 82, 82, 0.15);
  color: #ff5252;
  border: 1px solid rgba(255, 82, 82, 0.3);
}

/* --- 1-Click Full Pipeline Auto-Pilot Modal & Overlay --- */
.autopilot-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 6, 15, 0.75);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease-out;
}

.autopilot-modal-card {
  background: rgba(20, 16, 35, 0.95);
  border: 1px solid rgba(38, 198, 218, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(38, 198, 218, 0.2);
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
  padding: 2rem;
  color: #fff;
  position: relative;
  animation: scaleUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUpModal {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(15px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Fullscreen Execution Overlay */
.autopilot-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 5, 14, 0.88);
  backdrop-filter: blur(18px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.autopilot-progress-card {
  background: rgba(18, 14, 32, 0.96);
  border: 1px solid rgba(38, 198, 218, 0.4);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 230, 118, 0.2);
  border-radius: 18px;
  width: 100%;
  max-width: 720px;
  padding: 2.2rem;
  color: #fff;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #00e676;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #00e676;
  animation: pulseBlink 1.4s infinite;
}

@keyframes pulseBlink {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 16px #00e676; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.autopilot-stages-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.autopilot-stage-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.autopilot-stage-item.active {
  background: rgba(38, 198, 218, 0.1);
  border-color: #26c6da;
  box-shadow: 0 0 15px rgba(38, 198, 218, 0.25);
  transform: translateX(4px);
}

.autopilot-stage-item.completed {
  background: rgba(0, 230, 118, 0.07);
  border-color: rgba(0, 230, 118, 0.3);
}

.stage-status-icon {
  font-size: 1.25rem;
  min-width: 28px;
  text-align: center;
}

.stage-info {
  flex-grow: 1;
}

.stage-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.autopilot-stage-item.completed .stage-name {
  color: #c8e6c9;
}

.stage-detail {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.autopilot-stage-item.active .stage-detail {
  color: #80deea;
}

.autopilot-stage-item.completed .stage-detail {
  color: #a7f3d0;
}

.autopilot-log-console {
  background: #080611;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.78rem;
  color: #b0bec5;
  height: 110px;
  overflow-y: auto;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* ==========================================================================
   Tell Us About Your Business Questionnaire & Modal (No Website Flow)
   ========================================================================== */
.layer1-tab-switch {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.35rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.layer1-tab-btn {
  flex: 1;
  padding: 0.6rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.layer1-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.layer1-tab-btn.active {
  background: rgba(38, 198, 218, 0.18);
  color: #80deea;
  border: 1px solid rgba(38, 198, 218, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Standalone Modal Card (Obsidian Black Theme) */
.no-website-modal-card {
  background: #0e1118;
  color: var(--text-primary);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  padding: 2.2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 230, 118, 0.15);
  position: relative;
  animation: scaleUpModal 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-main);
}

.no-website-modal-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.015em;
}

.no-website-modal-card p.modal-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0.35rem 0 1.5rem 0;
}

.no-website-modal-card label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e4e4e7;
  margin-bottom: 0.45rem;
}

.no-website-modal-card textarea,
.no-website-modal-card input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.45;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: #ffffff;
  outline: none;
  transition: all 0.2s ease;
  resize: vertical;
}

.no-website-modal-card textarea::placeholder,
.no-website-modal-card input[type="text"]::placeholder {
  color: #71717a;
}

.no-website-modal-card textarea:focus,
.no-website-modal-card input[type="text"]:focus {
  background: #141824;
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(0, 188, 212, 0.3);
}

.btn-generate-campaigns-action {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #00e676 0%, #00bcd4 100%);
  color: #050505;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  margin-top: 1.4rem;
  box-shadow: 0 4px 18px rgba(0, 230, 118, 0.35);
}

.btn-generate-campaigns-action:hover,
.btn-generate-campaigns-action.active-ready {
  background: linear-gradient(135deg, #00ff88 0%, #00e5ff 100%);
  color: #000000;
  box-shadow: 0 6px 22px rgba(0, 230, 118, 0.5);
  transform: translateY(-2px);
}

.btn-generate-campaigns-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   Live Floating Pipeline Progress HUD (Non-blocking, Dynamic View Tracker)
   ========================================================================== */
.live-pipeline-hud {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2.5rem);
  max-width: 1020px;
  background: rgba(10, 13, 19, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 230, 118, 0.45);
  box-shadow: 0 16px 55px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 230, 118, 0.2);
  border-radius: 16px;
  padding: 0.9rem 1.5rem;
  z-index: 1000;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: slideUpHud 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
}

@keyframes slideUpHud {
  from {
    opacity: 0;
    transform: translate(-50%, 25px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.live-pipeline-hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-pipeline-hud-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.hud-step-chips {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.hud-step-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.25s ease;
}

.hud-step-chip.active {
  background: rgba(38, 198, 218, 0.25);
  color: #80deea;
  border-color: #26c6da;
  box-shadow: 0 0 10px rgba(38, 198, 218, 0.4);
  transform: scale(1.1);
}

.hud-step-chip.completed {
  background: rgba(0, 230, 118, 0.2);
  color: #00e676;
  border-color: #00e676;
}

.hud-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.hud-progress-fill {
  height: 100%;
  width: 14%;
  background: linear-gradient(90deg, #00e676, #00bcd4, #26c6da);
  transition: width 0.4s ease;
}

/* ==========================================================================
   AutoGTM Modern Sleek Black Workspace Layout & Central Interface
   Exact Black Theme Match (#090a0d & #0d0f14 with Emerald Green Accents)
   ========================================================================== */
body:has(.autogtm-app-container),
body.autogtm-body {
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  background: #090a0d !important;
  overflow-x: hidden;
}

body.autogtm-body::before,
body.autogtm-body::after,
body:has(.autogtm-app-container)::before,
body:has(.autogtm-app-container)::after {
  display: none !important;
}

.autogtm-app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: #090a0d !important;
  color: #ededed;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* Sidebar */
.autogtm-sidebar {
  width: 260px;
  background: #0d0f14;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  padding: 1.25rem 1rem;
}

.autogtm-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.autogtm-brand-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.autogtm-brand-sub {
  color: #71717a;
  font-size: 0.8rem;
  font-weight: 400;
}

/* Project Selector in Sidebar */
.autogtm-project-selector-wrap {
  margin: 1.1rem 0;
}

.autogtm-project-select-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  color: #f4f4f5;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.autogtm-project-select-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Sidebar Nav Items */
.autogtm-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.autogtm-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.86rem;
  color: #a1a1aa;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}

.autogtm-nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.autogtm-nav-item.active {
  color: #00e676;
  background: rgba(0, 230, 118, 0.08);
  font-weight: 600;
}

/* Sidebar User Footer */
.autogtm-user-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.autogtm-user-badge:hover {
  background: rgba(255, 255, 255, 0.07);
}

.autogtm-avatar-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #27272a;
  color: #a1a1aa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Central Stage */
.autogtm-main-stage {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 2.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  background: #090a0d;
}

/* Central Hero View (Exact match with screenshot) */
.autogtm-central-hero {
  max-width: 760px;
  margin: 2rem auto 0 auto;
  width: 100%;
}

.autogtm-hero-tag {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #71717a;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.autogtm-hero-title {
  font-size: 2.6rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem 0;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.autogtm-hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #8e8e93;
  margin: 0 0 2rem 0;
  max-width: 680px;
}

/* Dual Mode Toggle */
.autogtm-mode-pill-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 0.3rem;
  margin-bottom: 1.5rem;
  gap: 0.25rem;
}

.autogtm-pill-btn {
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.autogtm-pill-btn:hover {
  color: #fff;
}

.autogtm-pill-btn.active {
  background: #27272a;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Input Form Row */
.autogtm-input-field-label {
  display: block;
  font-size: 0.88rem;
  color: #a1a1aa;
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.autogtm-input-action-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.autogtm-website-input {
  flex: 1;
  background: #12141a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.9rem 1.15rem;
  font-size: 1rem;
  color: #fff;
  outline: none;
  transition: all 0.2s ease;
}

.autogtm-website-input::placeholder {
  color: #52525b;
}

.autogtm-website-input:focus {
  border-color: #00e676;
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.15);
  background: #161822;
}

.btn-autogtm-primary {
  background: #00e676;
  color: #090a0d;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 10px;
  padding: 0.9rem 1.45rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(0, 230, 118, 0.25);
}

.btn-autogtm-primary:hover {
  background: #00c853;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 230, 118, 0.35);
}

.btn-autogtm-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* No Website Form Cards */
.autogtm-noweb-form-box {
  background: #12141a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.autogtm-noweb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.autogtm-form-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.autogtm-form-item.full-width {
  grid-column: 1 / -1;
}

.autogtm-form-item label {
  font-size: 0.86rem;
  color: #d4d4d8;
  font-weight: 600;
}

.autogtm-form-item input,
.autogtm-form-item textarea {
  background: #0d0f14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  color: #fff;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}

.autogtm-form-item input:focus,
.autogtm-form-item textarea:focus {
  border-color: #00e676;
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.12);
}

/* 3 Feature Highlight Cards (Screenshot Match) */
.autogtm-feature-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.autogtm-feature-card {
  background: #12141a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  transition: all 0.2s ease;
}

.autogtm-feature-card:hover {
  background: #161822;
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

.autogtm-card-icon-bubble {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.autogtm-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.autogtm-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.autogtm-card-desc {
  font-size: 0.84rem;
  color: #71717a;
  line-height: 1.4;
}

/* Floating Chat Help Bubble in Bottom Right */
.autogtm-help-bubble {
  position: fixed;
  bottom: 24px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #00e676;
  color: #090a0d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.35);
  transition: all 0.2s ease;
  z-index: 999;
}

.autogtm-help-bubble:hover {
  transform: scale(1.08);
}

/* Live Execution Runner View (When running 7 steps) */
.autogtm-live-runner {
  max-width: 860px;
  margin: 1rem auto;
  width: 100%;
}

.autogtm-runner-header {
  background: #12141a;
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 14px;
  padding: 1.4rem 1.8rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.autogtm-step-list-stream {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.autogtm-stream-card {
  background: #12141a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: all 0.3s ease;
}

.autogtm-stream-card.active {
  border-color: #26c6da;
  background: rgba(38, 198, 218, 0.05);
  box-shadow: 0 4px 20px rgba(38, 198, 218, 0.15);
}

.autogtm-stream-card.completed {
  border-color: rgba(0, 230, 118, 0.35);
  background: rgba(0, 230, 118, 0.04);
}

.autogtm-stream-card.error {
  border-color: rgba(255, 82, 82, 0.4);
  background: rgba(255, 82, 82, 0.05);
}

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

.autogtm-stream-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
}

.badge-stream-pending {
  background: rgba(255, 255, 255, 0.06);
  color: #71717a;
}

.badge-stream-running {
  background: rgba(38, 198, 218, 0.2);
  color: #80deea;
  border: 1px solid rgba(38, 198, 218, 0.4);
}

.badge-stream-completed {
  background: rgba(0, 230, 118, 0.2);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.4);
}

.badge-stream-failed {
  background: rgba(255, 82, 82, 0.2);
  color: #ff5252;
  border: 1px solid rgba(255, 82, 82, 0.4);
}

.autogtm-stream-preview {
  font-size: 0.84rem;
  color: #a1a1aa;
  line-height: 1.5;
  background: #0a0b0e;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-top: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}







