/* Import modern typography from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Variables for design system tokens */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Color Palette - HSL values for seamless opacity changes */
  --bg-dark: 240 16% 5%;
  --bg-card: 240 10% 8%;
  --bg-glass: 255 255 255;
  
  --primary-hue: 265;
  --primary: hsl(var(--primary-hue) 85% 60%);
  --primary-glow: hsl(var(--primary-hue) 85% 60% / 0.15);
  
  --secondary-hue: 185;
  --secondary: hsl(var(--secondary-hue) 80% 48%);
  
  --accent-pink: hsl(330 85% 55%);
  --accent-green: hsl(140 70% 50%);
  
  --text-primary: hsl(0 0% 98%);
  --text-secondary: hsl(240 5% 70%);
  --text-muted: hsl(240 4% 50%);
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: hsl(var(--primary-hue) 85% 60% / 0.3);
  
  --glass-bg: rgba(13, 12, 22, 0.65);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  
  --transition-smooth: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: 0.15s ease;
}

/* Base resets & layout */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: hsl(var(--bg-dark));
  color: var(--text-primary);
  font-family: var(--font-body);
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  background: 
    radial-gradient(circle at 10% 20%, hsl(260 45% 12% / 0.4) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, hsl(190 40% 10% / 0.3) 0%, transparent 40%),
    hsl(var(--bg-dark));
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  border: 2px solid hsl(var(--bg-dark));
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Utility styles & components */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

button {
  font-family: var(--font-body);
  font-weight: 500;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
  transition: var(--transition-fast);
}

input, select, textarea {
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
  background: rgba(255, 255, 255, 0.08);
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 20px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  transition: var(--transition-smooth);
}
.glass-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5);
}

/* Glow button */
.btn-glow {
  background: linear-gradient(135deg, var(--primary), hsl(var(--primary-hue) 85% 50%));
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 4px 15px 0 hsl(var(--primary-hue) 85% 60% / 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn-glow::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  opacity: 0;
  z-index: -1;
  transition: var(--transition-smooth);
}
.btn-glow:hover {
  box-shadow: 0 6px 20px 0 hsl(var(--primary-hue) 85% 60% / 0.5);
  transform: translateY(-1px);
}
.btn-glow:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 500;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Badges */
.badge {
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.badge-purple { background: hsl(var(--primary-hue) 85% 60% / 0.15); color: var(--primary); }
.badge-cyan { background: hsl(var(--secondary-hue) 80% 48% / 0.15); color: var(--secondary); }
.badge-green { background: hsl(140 70% 50% / 0.15); color: var(--accent-green); }
.badge-pink { background: hsl(330 85% 55% / 0.15); color: var(--accent-pink); }
.badge-gray { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); }

/* Landing / Gated Frontpage Page */
#landing-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-section {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 800px;
}
.hero-tag {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: inline-block;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #fff 0%, #aaa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  color: var(--text-secondary);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* Pricing Grid */
.pricing-section {
  width: 100%;
  margin-bottom: 6rem;
}
.pricing-header {
  text-align: center;
  margin-bottom: 3rem;
}
.pricing-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.pricing-header p {
  color: var(--text-secondary);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
.pricing-card {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.pricing-card.premium {
  border-color: var(--primary);
  box-shadow: 0 0 30px 0 var(--primary-glow);
}
.pricing-card.premium::before {
  content: 'POPULAR';
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 2.5rem;
  transform: rotate(45deg);
}
.plan-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}
.plan-price {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  display: flex;
  align-items: baseline;
}
.plan-price span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}
.plan-features {
  list-style: none;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}
.plan-features li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.plan-features svg {
  color: var(--secondary);
  flex-shrink: 0;
}
.pricing-card.premium .plan-features svg {
  color: var(--primary);
}

/* Authentication Modal Gate */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.auth-modal {
  width: 90%;
  max-width: 420px;
  padding: 3rem 2.5rem;
  text-align: center;
  border-radius: 24px;
}
.auth-header {
  margin-bottom: 2rem;
}
.auth-header h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.auth-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  margin-bottom: 1.5rem;
}
.auth-form label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: -0.5rem;
  font-weight: 500;
}
.auth-form input {
  width: 100%;
}
.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  border-radius: 12px;
  margin-top: 0.5rem;
}
.demo-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.demo-click {
  color: var(--secondary);
  cursor: pointer;
  text-decoration: underline;
  font-weight: 600;
}

/* Master Layout (App Workspace) */
#app-workspace {
  display: none; /* Shown after auth */
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  flex-grow: 1;
}

/* Dynamic full-screen SaaS dashboard grid layout */
.workspace-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  align-items: start;
}

/* Web Settings Control Panel (Left column on desktop) */
.web-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.web-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.5rem;
}
.web-logo {
  font-size: 1.8rem;
  font-family: var(--font-heading);
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  border: 1px solid var(--border-light);
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
  color: white;
}
.user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.user-name {
  font-size: 0.85rem;
  font-weight: 600;
}
.user-tier-label {
  font-size: 0.75rem;
  color: var(--secondary);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.stat-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
}
.stat-value {
  font-size: 2.2rem;
  font-family: var(--font-heading);
  font-weight: 800;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, #fff, #bbb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Accounts Management Panel */
.accounts-manager {
  padding: 2rem;
}
.accounts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.accounts-count {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.account-slot {
  aspect-ratio: 1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  padding: 1rem;
  text-align: center;
}
.account-slot:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}
.account-slot.connected {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
}
.account-slot.connected:hover {
  border-color: var(--primary);
}
.account-slot.locked {
  opacity: 0.5;
  cursor: not-allowed;
}
.slot-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}
.connected .slot-icon {
  background: var(--primary-glow);
  color: var(--primary);
}
.slot-platform {
  font-size: 0.8rem;
  font-weight: 600;
}
.slot-username {
  font-size: 0.7rem;
  color: var(--text-muted);
  word-break: break-all;
}

/* Upgrade Card Callout */
.upgrade-callout {
  padding: 2rem;
  border-radius: 20px;
  background: radial-gradient(circle at 100% 0%, hsl(var(--primary-hue) 85% 60% / 0.15) 0%, transparent 70%), var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.upgrade-callout-content h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.upgrade-callout-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Viewport Toggle (Responsive Switch) */
.view-toggle-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.toggle-btn-group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 30px;
  padding: 0.3rem;
  display: flex;
  gap: 0.25rem;
}
.toggle-tab-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}
.toggle-tab-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px 0 var(--primary-glow);
}

/* Workspace Content Column (Right column on desktop) */
.phone-simulator-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.phone-device {
  width: 100%;
  height: auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  position: relative;
  overflow: visible;
  transition: transform var(--transition-smooth);
}
/* Hide physical frame notch */
.phone-device::before {
  display: none;
}
.phone-screen {
  width: 100%;
  height: auto;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

/* Premium SaaS Header */
.app-header {
  background: rgba(13, 12, 22, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 5;
}
.app-title {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, #fff, #bbb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.app-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  scrollbar-width: none; /* Hide scrollbar for native app feel */
}
.app-content::-webkit-scrollbar {
  display: none;
}

/* Mobile Search & Filter Container */
.search-filter-box {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.search-wrapper svg {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}
.search-input-mobile {
  width: 100%;
  padding-left: 2.75rem;
  border-radius: 25px;
}
.mobile-filter-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.2rem 0;
  scrollbar-width: none;
}
.mobile-filter-chips::-webkit-scrollbar {
  display: none;
}
.filter-chip {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 0.8rem;
  white-space: nowrap;
  font-weight: 500;
  color: var(--text-secondary);
}
.filter-chip.active {
  background: var(--primary-glow);
  color: var(--primary);
  border-color: var(--primary);
}

/* Advanced filter dropdown widget */
.advanced-filters-widget {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.filter-select {
  padding: 0.5rem;
  font-size: 0.8rem;
  border-radius: 8px;
  width: 100%;
}
.email-toggle-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
}
/* Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255,255,255,0.1);
  transition: .4s;
  border-radius: 34px;
  border: 1px solid var(--border-light);
}
.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--primary);
  border-color: var(--primary);
}
input:checked + .slider:before {
  transform: translateX(16px);
}

/* Influencer Directory Grid */
.influencer-list-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.influencer-card {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.influencer-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}
.influencer-card.active-selected {
  border-color: var(--primary);
  background: rgba(147, 51, 234, 0.04);
}
.card-header-flex {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.avatar-mid {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  position: relative;
  background: var(--border-light);
  background-size: cover;
  background-position: center;
}
.platform-icon-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.6rem;
  border: 1.5px solid hsl(var(--bg-dark));
}
.platform-instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.platform-tiktok { background: #000000; }
.platform-youtube { background: #ff0000; }
.platform-x { background: #0f1419; }

.influencer-meta {
  flex-grow: 1;
}
.influencer-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}
.influencer-handle {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.score-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.score-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary);
}
.score-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.card-details-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 0.6rem;
}
.detail-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.email-detected {
  color: var(--accent-green);
}
.email-none {
  color: var(--text-muted);
}

/* Workflow Stage Footer in List Card */
.workflow-mini-progress {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.04);
}
.progress-stage {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  position: relative;
}
.progress-stage.completed {
  background: var(--primary);
}
.progress-stage.active {
  background: var(--secondary);
  box-shadow: 0 0 8px var(--secondary);
}

/* Influencer Profile / Workflow Detail View Screen */
.detail-screen {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}
.profile-large-header {
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  position: relative;
}
.avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  border: 2px solid var(--primary);
  background-size: cover;
  background-position: center;
}
.profile-large-header h4 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}
.profile-niche-pill {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* Funnel Steps Card */
.funnel-card {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.funnel-title {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}
.funnel-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.02);
  transition: var(--transition-smooth);
}
.funnel-step.completed {
  border-color: hsl(140 70% 50% / 0.2);
  background: hsl(140 70% 50% / 0.02);
}
.funnel-step.current {
  border-color: var(--secondary);
  background: hsl(var(--secondary-hue) 80% 48% / 0.02);
}
.step-checkbox-wrapper {
  margin-top: 0.15rem;
}
.step-check-btn {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: transparent;
}
.funnel-step.completed .step-check-btn {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: white;
}
.funnel-step.current .step-check-btn {
  border-color: var(--secondary);
}
.step-details {
  flex-grow: 1;
}
.step-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.step-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Outreach Messaging / A/B Card */
.messaging-card {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.messaging-ab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ab-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem;
  border-radius: 20px;
  border: 1px solid var(--border-light);
}
.ab-btn {
  padding: 0.35rem 1rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
}
.ab-btn.active {
  background: var(--primary);
  color: white;
}
.message-preview-container {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1rem;
  position: relative;
}
.message-preview-text {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}
.action-row-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.btn-action-mobile {
  padding: 0.6rem;
  font-size: 0.8rem;
  border-radius: 25px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.btn-action-copy {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
}
.btn-action-copy:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-action-send {
  background: var(--primary);
  color: white;
}
.btn-action-send:hover {
  background: hsl(var(--primary-hue) 85% 55%);
}

/* Horizontal Header Tab Navigation */
.app-nav {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  padding: 0.25rem;
  border-radius: 14px;
}
.nav-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}
.nav-item.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}
.nav-icon {
  font-size: 1rem;
}

/* Simulated Popup Toast Notifications */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  background: rgba(13, 12, 22, 0.95);
  border: 1px solid var(--primary);
  color: white;
  font-size: 0.85rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 100;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Fullscreen Mode (When simulated phone frame is disabled) */
.workspace-grid.fullscreen-mode {
  grid-template-columns: 1fr;
}
.workspace-grid.fullscreen-mode .web-panel {
  display: none; /* Hide standard SaaS sidebar in direct Web Portal mode */
}
.workspace-grid.fullscreen-mode .phone-simulator-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  top: unset;
}
.workspace-grid.fullscreen-mode .phone-device {
  max-width: 100%;
  height: calc(100dvh - 120px);
  border-radius: 24px;
  padding: 0;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.workspace-grid.fullscreen-mode .phone-device::before {
  display: none; /* Hide notch */
}
.workspace-grid.fullscreen-mode .phone-screen {
  border-radius: 24px;
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .workspace-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .phone-simulator-container {
    position: static;
  }
}

@media (max-width: 576px) {
  #landing-page {
    padding: 2rem 1rem;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  #app-workspace {
    padding: 1rem 0.5rem;
  }
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .phone-simulator-container {
    max-width: 100%;
    width: 100%;
  }
  .phone-device {
    max-width: 100%;
    height: calc(100dvh - 30px);
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
  }
  .phone-device::before {
    display: none; /* Hide notch on real mobile devices */
  }
  .phone-screen {
    border-radius: 0;
  }
}
