@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Core Tokens (Explee Edition) */
  --brand-navy: #111827;
  --brand-navy-dark: #0F172A;
  --brand-navy-elevated: #1F2937;
  --brand-electric-blue: #10B981;
  --brand-violet: #059669;
  --brand-indigo-dot: #10B981;
  --brand-white: #FFFFFF;
  --brand-light-panel: #F9FAFB;
  --brand-royal-blue: #0D9467;
  --brand-soft-periwinkle: #A7F3D0;
  --brand-pale-blue-tint: #ECFDF5;
  --brand-border: #E5E7EB;
  --brand-border-subtle: #F3F4F6;
  --brand-body-text: #4B5563;
  --brand-muted-grey: #6B7280;

  /* Theme Tokens mapped to Explee Warm Off-White & Emerald Palette */
  --bg-gradient: #F6F5F3;
  --accent-purple: #10B981;
  --accent-emerald: #10B981;
  --accent-blue: #10B981;
  --accent-violet: #059669;
  --accent-gradient: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --card-bg: #FFFFFF;
  --card-bg-subtle: #F9FAFB;
  --card-border: #E5E7EB;
  --card-border-hover: #10B981;
  --surface: #FFFFFF;
  --surface-elevated: #F9FAFB;
  --input-bg: #FFFFFF;
  --input-border: #E5E7EB;
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --table-header-bg: #F9FAFB;
  --btn-gradient: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --shadow-glow: 0 4px 16px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -2px rgba(0, 0, 0, 0.03);
  --font-main: 'DM Sans', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background: #F6F5F3;
  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 with soft subtle glow matching Explee reference */
.glass-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 88% 18%, rgba(16, 185, 129, 0.08) 0%, transparent 55%),
              radial-gradient(circle at 12% 82%, rgba(245, 158, 11, 0.05) 0%, transparent 55%),
              #F6F5F3;
  z-index: -2;
}

body::before {
  content: '';
  position: fixed;
  top: -15%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 65%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -15%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 65%);
  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(47, 107, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.55), var(--shadow-glow);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1px solid var(--brand-border);
  box-shadow: 0 1px 3px rgba(11, 20, 55, 0.04);
}

.btn-secondary:hover {
  background: var(--brand-light-panel);
  border-color: #2F6BFF;
  transform: translateY(-2px);
}

.btn-filter {
  background: var(--btn-gradient);
  color: white;
  flex-grow: 2;
  justify-content: center;
}

.btn-filter:hover {
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
  transform: translateY(-1px);
}

.btn-reset {
  background: #F3F5FA;
  color: var(--text-secondary);
  border: 1px solid var(--brand-border);
  justify-content: center;
}

.btn-reset:hover {
  background: #EAF0FF;
  color: #2F6BFF;
  border-color: #2F6BFF;
}

/* 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);
  box-shadow: var(--shadow-glow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: #2F6BFF;
}

.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, #0B1437 0%, #2F6BFF 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);
  box-shadow: var(--shadow-glow);
}

.filter-panel h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
  border-bottom: 1px solid #D3DCF4;
  padding-bottom: 0.5rem;
}

/* Dashboard Project Tabs */
.project-tab-switcher {
  display: flex;
  background: #F3F5FA;
  border: 1px solid #D3DCF4;
  border-radius: 9999px;
  padding: 3px;
  gap: 4px;
}

.project-tab-btn {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  border-radius: 9999px;
  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: #0B1437;
  background: #EAF0FF;
}

.project-tab-btn.active {
  background: #FFFFFF;
  color: #0B1437;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(11, 20, 55, 0.08);
}

.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(47, 107, 255, 0.2);
}

.input-group select option {
  background: #FFFFFF;
  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 var(--brand-border);
  background: #FFFFFF;
}

.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: #F3F5FA;
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
  background: rgba(47, 107, 255, 0.25);
  border-radius: 4px;
  border: 1px solid #D3DCF4;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: rgba(47, 107, 255, 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 var(--brand-border);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--brand-border);
  color: var(--text-secondary);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  color: var(--text-primary);
  background: #F3F5FA;
}

/* 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: #EAF0FF;
  color: #2F6BFF;
  border: 1px solid #D3DCF4;
}

.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: #2F6BFF;
}

.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: #0B1437;
  background: #EAF0FF;
  border-color: #2F6BFF;
}
.nav-link.active {
  color: #2F6BFF;
  background: #EAF0FF;
  border: 1px solid #D3DCF4;
  box-shadow: 0 1px 4px rgba(11, 20, 55, 0.05);
  font-weight: 600;
  position: relative;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, #2F6BFF, #7C4DFF);
  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: #F3F5FA;
  border: 1px solid var(--brand-border);
  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: #EAF0FF;
  border-color: #2F6BFF;
  color: #2F6BFF;
}

.category-pill.active {
  background: #2F6BFF;
  border-color: #2F6BFF;
  color: #fff;
  box-shadow: 0 2px 8px rgba(47, 107, 255, 0.3);
}

.strategy-segmented {
  display: flex;
  background: #F3F5FA;
  border: 1px solid var(--brand-border);
  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: #EAF0FF;
}

.strategy-btn.active {
  background: var(--btn-gradient);
  color: #fff;
  box-shadow: 0 2px 10px rgba(47, 107, 255, 0.3);
}

.area-chip-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  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: #F3F5FA;
  border-color: #2F6BFF;
}

.area-chip-label.checked {
  background: #EAF0FF;
  border-color: #2F6BFF;
  color: #2F6BFF;
}

.area-chip-label input[type="checkbox"] {
  accent-color: #2F6BFF;
  cursor: pointer;
}

.info-tip-box {
  background: #EAF0FF;
  border-left: 3px solid #2F6BFF;
  border-radius: 0 8px 8px 0;
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
  color: #0B1437;
  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(47, 107, 255, 0.15);
  border-color: #2F6BFF;
  color: #8FA9FF;
}

.preset-chip.active {
  background: #2F6BFF;
  border-color: #2F6BFF;
  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: #FFFFFF;
  border: 1px solid var(--brand-border);
  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: #F3F5FA;
  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: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  padding: 1.25rem 1.75rem;
  box-shadow: 0 4px 20px rgba(11, 20, 55, 0.05);
  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: var(--brand-border);
  z-index: -1;
  transition: background 0.3s ease;
}

.step-node.completed:not(:last-child)::after {
  background: #10B981;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F9FAFB;
  border: 2px solid var(--brand-border);
  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: #10B981;
  color: #fff;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
  transform: scale(1.1);
}

.step-node.active .step-title {
  color: #111827;
  font-weight: 700;
}

.step-node.completed .step-circle {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #065F46;
  font-weight: 700;
  font-size: 1rem;
}

.step-node.completed .step-title {
  color: #065F46;
  font-weight: 600;
}

.step-node.completed.active .step-circle {
  background: #10B981;
  border-color: #059669;
  color: #fff;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.5);
  transform: scale(1.1);
}

.step-node.completed.active .step-title {
  color: #10B981;
  font-weight: 700;
}

.step-node.running .step-circle {
  background: #ECFDF5;
  border-color: #10B981;
  color: #065F46;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.6);
  animation: pulseStepRing 1.5s infinite;
}

@keyframes pulseStepRing {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Phase Viewports */
.phase-panel {
  display: none;
}

.phase-panel.active {
  display: block;
  animation: expleeCardEnter 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.phase-panel.phase-docking {
  display: block !important;
  animation: expleePhaseDock 0.22s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  pointer-events: none;
}

@keyframes expleePhaseDock {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(0.99);
  }
}

@keyframes fadeInPhase {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Battlecards */
.battlecards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.battlecard {
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  padding: 1.25rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(11, 20, 55, 0.04);
}

.battlecard:hover {
  border-color: #2F6BFF;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(11, 20, 55, 0.08);
}

.battlecard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--brand-border);
  padding-bottom: 0.6rem;
}

.battlecard-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0B1437;
}

.battlecard-tier {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  background: #EAF0FF;
  color: #2F6BFF;
  border: 1px solid var(--brand-border);
}

.battlecard-section {
  font-size: 0.8rem;
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.battlecard-label {
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.battlecard-label.label-strengths {
  color: #047857;
  display: flex;
  align-items: center;
  gap: 5px;
}

.battlecard-label.label-weaknesses {
  color: #B91C1C;
  display: flex;
  align-items: center;
  gap: 5px;
}

.battlecard-label.label-wedge {
  color: #1D4ED8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.battlecard-text-strengths {
  color: #065F46;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 500;
}

.battlecard-text-weaknesses {
  color: #991B1B;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 500;
}

.battlecard-wedge {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  color: #1E3A8A;
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 500;
}

/* 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: #FFFFFF;
  border: 2px solid var(--brand-border);
  border-radius: 14px;
  padding: 1.35rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 4px 16px rgba(11, 20, 55, 0.04);
}

.strategy-card:hover {
  border-color: #2F6BFF;
  transform: translateY(-2px);
}

.strategy-card.selected {
  border-color: #2F6BFF;
  background: #EAF0FF;
  box-shadow: 0 0 20px rgba(47, 107, 255, 0.15);
}

.strategy-badge {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  background: #EAF0FF;
  color: #2F6BFF;
  border: 1px solid var(--brand-border);
}

/* Decision Maker Badges */
.badge-dm-found {
  background: #EAF0FF;
  color: #2F6BFF;
  border: 1px solid #D3DCF4;
  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: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  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: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  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: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(11, 20, 55, 0.04);
  transition: border-color 0.2s ease;
}

.draft-card:hover {
  border-color: #2F6BFF;
}

.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: #F3F5FA;
  border: 1px solid var(--brand-border);
  border-radius: 6px;
  color: #0B1437;
  font-size: 0.88rem;
  font-family: inherit;
  margin-bottom: 0.6rem;
}

.draft-body-textarea {
  width: 100%;
  padding: 0.75rem;
  background: #F3F5FA;
  border: 1px solid var(--brand-border);
  border-radius: 6px;
  color: #0B1437;
  font-size: 0.85rem;
  line-height: 1.55;
  font-family: inherit;
  resize: vertical;
}

/* Progress bar */
.pipeline-progress-bar {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  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: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  padding: 0.85rem 1.15rem;
  box-shadow: 0 10px 30px rgba(11, 20, 55, 0.12);
  color: #0B1437;
  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 #2F6BFF;
}

.pipeline-toast.error {
  border-left: 4px solid #ff5252;
}

.pipeline-toast.info {
  border-left: 4px solid #7C4DFF;
}

@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: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
}

.draft-meta-pill.pill-whatsapp {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.35);
  color: #15803D;
  font-weight: 600;
}

.draft-meta-pill.pill-linkedin {
  background: rgba(10, 102, 194, 0.1);
  border-color: rgba(10, 102, 194, 0.3);
  color: #0A66C2;
  font-weight: 600;
}

.draft-meta-pill.pill-email {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1E40AF;
  font-weight: 600;
}

.btn-wa-direct {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center !important;
  gap: 0.3rem !important;
  border-radius: 6px !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.btn-wa-direct:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35) !important;
}

.btn-li-direct {
  background: linear-gradient(135deg, #0a66c2 0%, #004182 100%) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center !important;
  gap: 0.3rem !important;
  border-radius: 6px !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.btn-li-direct:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.35) !important;
}

.word-count-pill {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px solid #D3DCF4;
  color: #4A5578;
  font-weight: 600;
}

/* 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 var(--brand-border);
  background: var(--brand-light-panel);
}

.queue-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--brand-border);
  font-size: 0.84rem;
  color: var(--text-primary);
}

.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: #F3F5FA;
  color: var(--text-secondary);
  border: 1px solid var(--brand-border);
}

.queue-status-pill.sending {
  background: #EAF0FF;
  color: #2F6BFF;
  border: 1px solid var(--brand-border);
}

.queue-status-pill.sent {
  background: #EAF0FF;
  color: #2F6BFF;
  border: 1px solid #D3DCF4;
}

.queue-status-pill.failed {
  background: #fee2e2;
  color: #ef4444;
  border: 1px solid #fecaca;
}

/* --- 1-Click Full Pipeline Auto-Pilot Modal & Overlay --- */
.autopilot-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 20, 55, 0.4);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease-out;
}

.autopilot-modal-card {
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  box-shadow: 0 20px 60px rgba(11, 20, 55, 0.15);
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
  padding: 2rem;
  color: var(--text-primary);
  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(11, 20, 55, 0.5);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.autopilot-progress-card {
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  box-shadow: 0 25px 70px rgba(11, 20, 55, 0.15);
  border-radius: 18px;
  width: 100%;
  max-width: 720px;
  padding: 2.2rem;
  color: var(--text-primary);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #10B981;
  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 #10B981; }
  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: #F3F5FA;
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.autopilot-stage-item.active {
  background: #EAF0FF;
  border-color: #2F6BFF;
  box-shadow: 0 0 15px rgba(47, 107, 255, 0.15);
  transform: translateX(4px);
}

.autopilot-stage-item.completed {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.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: #0B1437;
}

.autopilot-stage-item.completed .stage-name {
  color: #15803d;
}

.stage-detail {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.autopilot-stage-item.active .stage-detail {
  color: #2F6BFF;
}

.autopilot-stage-item.completed .stage-detail {
  color: #16a34a;
}

.autopilot-log-console {
  background: #0B1437;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.78rem;
  color: #8FA9FF;
  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: #F3F5FA;
  padding: 0.35rem;
  border-radius: 10px;
  border: 1px solid var(--brand-border);
}

.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: #0B1437;
  background: #EAF0FF;
}

.layer1-tab-btn.active {
  background: #FFFFFF;
  color: #0B1437;
  border: 1px solid var(--brand-border);
  box-shadow: 0 2px 8px rgba(11, 20, 55, 0.08);
}

/* Standalone Modal Card (Light Theme) */
.no-website-modal-card {
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  padding: 2.2rem;
  box-shadow: 0 25px 60px rgba(11, 20, 55, 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: #0B1437;
  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: #0B1437;
  outline: none;
  transition: all 0.2s ease;
  resize: vertical;
}

.no-website-modal-card textarea::placeholder,
.no-website-modal-card input[type="text"]::placeholder {
  color: #6B76A0;
}

.no-website-modal-card textarea:focus,
.no-website-modal-card input[type="text"]:focus {
  background: #FFFFFF;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.15);
}

.btn-generate-campaigns-action {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #2F6BFF 0%, #7C4DFF 100%);
  color: #ffffff;
  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(47, 107, 255, 0.35);
}

.btn-generate-campaigns-action:hover,
.btn-generate-campaigns-action.active-ready {
  background: linear-gradient(135deg, #4480FF 0%, #9066FF 100%);
  color: #ffffff;
  box-shadow: 0 6px 22px rgba(47, 107, 255, 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(11, 20, 55, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(47, 107, 255, 0.45);
  box-shadow: 0 16px 55px rgba(7, 13, 36, 0.85), 0 0 30px rgba(47, 107, 255, 0.25);
  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(211, 220, 244, 0.16);
  transition: all 0.25s ease;
}

.hud-step-chip.active {
  background: rgba(47, 107, 255, 0.25);
  color: #8FA9FF;
  border-color: #2F6BFF;
  box-shadow: 0 0 10px rgba(47, 107, 255, 0.4);
  transform: scale(1.1);
}

.hud-step-chip.completed {
  background: rgba(124, 77, 255, 0.25);
  color: #7C4DFF;
  border-color: #7C4DFF;
}

.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, #2F6BFF, #7C4DFF);
  transition: width 0.4s ease;
}

/* ==========================================================================
   AutoGTM Modern Sleek Workspace Layout & Central Interface
   Deep Navy Brand Theme (#0B1437 with Electric Blue & Violet Accents)
   ========================================================================== */
body:has(.autogtm-app-container),
body.autogtm-body {
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  background: #0B1437 !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: #FFFFFF !important;
  color: #0B1437;
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
}

/* Sidebar */
.autogtm-sidebar {
  width: 260px;
  background: #FFFFFF;
  border-right: 1px solid var(--brand-border);
  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 var(--brand-border);
}

.autogtm-brand-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #0B1437;
  letter-spacing: -0.01em;
}

.autogtm-brand-sub {
  color: #4A5578;
  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: #F3F5FA;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  color: #0B1437;
  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: #EAF0FF;
  border-color: #2F6BFF;
}

/* 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: #4A5578;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}

.autogtm-nav-item:hover {
  color: #0B1437;
  background: #F3F5FA;
}

.autogtm-nav-item.active {
  color: #2F6BFF;
  background: #EAF0FF;
  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(211, 220, 244, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.autogtm-user-badge:hover {
  background: rgba(47, 107, 255, 0.1);
}

.autogtm-avatar-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1B2FA6;
  color: #FFFFFF;
  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: #FFFFFF;
}

/* 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: #2F6BFF;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.autogtm-hero-title {
  font-size: 2.6rem;
  font-weight: 700;
  color: #0B1437;
  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: #4A5578;
  margin: 0 0 2rem 0;
  max-width: 680px;
}

/* Dual Mode Toggle */
.autogtm-mode-pill-tabs {
  display: inline-flex;
  background: #F3F5FA;
  border: 1px solid var(--brand-border);
  border-radius: 24px;
  padding: 0.3rem;
  margin-bottom: 1.5rem;
  gap: 0.25rem;
}

.autogtm-pill-btn {
  background: transparent;
  border: none;
  color: #4A5578;
  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: #0B1437;
}

.autogtm-pill-btn.active {
  background: #2F6BFF;
  color: #fff;
  box-shadow: 0 2px 8px rgba(47, 107, 255, 0.35);
}

/* Input Form Row */
.autogtm-input-field-label {
  display: block;
  font-size: 0.88rem;
  color: #0B1437;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.autogtm-input-action-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.autogtm-website-input {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  padding: 0.9rem 1.15rem;
  font-size: 1rem;
  color: #0B1437;
  outline: none;
  box-shadow: 0 2px 8px rgba(11, 20, 55, 0.04);
  transition: all 0.2s ease;
}

.autogtm-website-input::placeholder {
  color: #6B76A0;
}

.autogtm-website-input:focus {
  border-color: #2F6BFF;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.15);
  background: #FFFFFF;
}

.btn-autogtm-primary {
  background: linear-gradient(135deg, #2F6BFF 0%, #1B2FA6 100%);
  color: #ffffff;
  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(47, 107, 255, 0.35);
}

.btn-autogtm-primary:hover {
  background: linear-gradient(135deg, #4480FF 0%, #172a94 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(47, 107, 255, 0.45);
}

.btn-autogtm-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* No Website Form Cards */
.autogtm-noweb-form-box {
  background: #F3F5FA;
  border: 1px solid var(--brand-border);
  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: #0B1437;
  font-weight: 600;
}

.autogtm-form-item input,
.autogtm-form-item textarea {
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  color: #0B1437;
  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: #2F6BFF;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.15);
}

/* 3 Feature Highlight Cards (Screenshot Match) */
.autogtm-feature-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.autogtm-feature-card {
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  box-shadow: 0 4px 16px rgba(11, 20, 55, 0.04);
  transition: all 0.2s ease;
}

.autogtm-feature-card:hover {
  background: #F3F5FA;
  border-color: #2F6BFF;
  transform: translateX(4px);
}

.autogtm-card-icon-bubble {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #EAF0FF;
  border: 1px solid var(--brand-border);
  color: #2F6BFF;
  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: #0B1437;
}

.autogtm-card-desc {
  font-size: 0.84rem;
  color: #4A5578;
  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: linear-gradient(135deg, #2F6BFF 0%, #1B2FA6 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(47, 107, 255, 0.4);
  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: #FFFFFF;
  border: 1px solid var(--brand-border);
  box-shadow: 0 4px 16px rgba(11, 20, 55, 0.04);
  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: #FFFFFF;
  border: 1px solid var(--brand-border);
  box-shadow: 0 4px 16px rgba(11, 20, 55, 0.04);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: all 0.3s ease;
}

.autogtm-stream-card.active {
  border-color: #2F6BFF;
  background: #EAF0FF;
  box-shadow: 0 4px 20px rgba(47, 107, 255, 0.15);
}

.autogtm-stream-card.completed {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.autogtm-stream-card.error {
  border-color: #fecaca;
  background: #fef2f2;
}

.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: #F3F5FA;
  color: #6B76A0;
  border: 1px solid var(--brand-border);
}

.badge-stream-running {
  background: #EAF0FF;
  color: #2F6BFF;
  border: 1px solid #D3DCF4;
}

.badge-stream-completed {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-stream-failed {
  background: #fee2e2;
  color: #ef4444;
  border: 1px solid #fecaca;
}

.autogtm-stream-preview {
  font-size: 0.84rem;
  color: #0B1437;
  line-height: 1.5;
  background: #F3F5FA;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-top: 0.6rem;
  border: 1px solid var(--brand-border);
}

/* Modern Password Visibility Toggle */
.password-toggle-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-toggle-wrapper input {
  width: 100% !important;
  box-sizing: border-box !important;
  padding-right: 2.75rem !important;
}

.btn-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s ease;
  user-select: none;
  z-index: 5;
  line-height: 0;
}

.btn-password-toggle:hover {
  color: #0f172a;
  background: rgba(148, 163, 184, 0.18);
}

.btn-password-toggle:active {
  transform: translateY(-50%) scale(0.92);
}

.btn-password-toggle:focus-visible {
  outline: 2px solid #10B981;
  outline-offset: 1px;
}

.btn-password-toggle svg {
  display: block;
  pointer-events: none;
}








