/* ── REACHAI LIGHT DESIGN SYSTEM (UBERSUGGEST LIGHT BRAND) ── */
:root {
  --bg: #F8FAFC; /* Clean Light Slate */
  --bg-sidebar: #FFFFFF; /* Pure White Sidebar */
  --bg-card: #FFFFFF; /* Pure White Cards */
  --card-border: #E2E8F0; /* Slate 200 Border */
  --card-border-hover: #CBD5E1; /* Slate 300 Border Hover */
  --primary: #FF6B35; /* Ubersuggest Brand Orange */
  --primary-hover: #E85A24;
  --primary-glow: rgba(255, 107, 53, 0.15);
  --secondary: #FFFFFF;
  --accent: #FF9F1C; /* Warm gold accent */
  --green: #10B981;
  --red: #EF4444;
  --yellow: #F59E0B;
  --blue: #3B82F6;
  --text: #0F172A; /* Deep Slate - Legible text */
  --muted: #64748B; /* Slate gray - Muted body text */
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 4px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', sans-serif;
  --font-title: 'Space Grotesk', sans-serif;
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}

/* ── LAYOUT STRUCTURE ── */
.app-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Sidebar Navigation */
.sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--primary-glow);
}

.project-select-wrapper {
  margin-top: 4px;
}

.project-select {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 0.85rem;
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition);
}

.project-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.sidebar-menu {
  flex: 1;
  padding: 20px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.08em;
  padding: 12px 10px 4px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.menu-item svg {
  color: var(--muted);
  transition: var(--transition);
}

.menu-item:hover {
  color: var(--primary);
  background: rgba(255, 107, 53, 0.06);
}

.menu-item:hover svg {
  color: var(--primary);
}

.menu-item.active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.menu-item.active svg {
  color: #fff;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--card-border);
}

.api-status-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.75rem;
  background: #FEE2E2;
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #991B1B;
  padding: 6px 12px;
  border-radius: 50px;
}

.api-status-pill.ready {
  background: #D1FAE5;
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #065F46;
}

.status-indicator {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
}

.ready .status-indicator {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.top-header {
  height: 70px;
  border-bottom: 1px solid var(--card-border);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 90;
}

.header-title-area h2 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Core Dashboard Content Panel */
.content-body {
  padding: 40px;
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.dashboard-panel {
  display: none;
  animation: fadeUp 0.4s ease both;
}

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

/* ── UI CARD COMPONENTS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.kpi-info h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.kpi-val {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
}

.kpi-change {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 4px;
}

.kpi-change.positive { color: var(--green); }
.kpi-change.negative { color: var(--red); }
.kpi-change.neutral { color: var(--muted); }

.kpi-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.ui-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.ui-card:hover {
  border-color: var(--card-border-hover);
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.ui-card h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ui-card h3 svg {
  color: var(--primary);
}

/* Grids and Panels */
.tool-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media(max-width: 992px) {
  .tool-split {
    grid-template-columns: 1fr;
  }
}

/* ── FORM ELEMENTS ── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input, 
.form-group textarea, 
.form-group select {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-main);
  outline: none;
  transition: var(--transition);
}

.form-group input::placeholder, 
.form-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
  border-color: var(--primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.form-group select option {
  background: #FFFFFF;
  color: var(--text);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  background: #FFFFFF;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  transition: var(--transition);
}

.checkbox-label:hover {
  background: rgba(255, 107, 53, 0.05);
  border-color: rgba(255, 107, 53, 0.2);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text);
  border: 1px solid var(--card-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.btn-secondary:hover {
  background: #F8FAFC;
  border-color: var(--card-border-hover);
}

.btn-accent {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.btn-accent:hover {
  background: rgba(255, 107, 53, 0.06);
  border-color: var(--primary);
}

.btn-danger {
  background: transparent;
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.05);
  border-color: var(--red);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── WIDGETS & TABLES ── */
.table-container {
  overflow-x: auto;
  margin-top: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.88rem;
}

th {
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  background: #F1F5F9;
}

tr:hover td {
  background: rgba(255, 107, 53, 0.02);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-red { background: #FEE2E2; color: #991B1B; border: 1px solid rgba(239, 68, 68, 0.1); }
.badge-green { background: #D1FAE5; color: #065F46; border: 1px solid rgba(16, 185, 129, 0.1); }
.badge-yellow { background: #FEF3C7; color: #92400E; border: 1px solid rgba(245, 158, 11, 0.1); }
.badge-blue { background: #DBEAFE; color: #1E40AF; border: 1px solid rgba(59, 130, 246, 0.1); }
.badge-orange { background: #FFE9E0; color: #C2410C; border: 1px solid rgba(255, 107, 53, 0.1); }

/* Output Box */
.output-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.output-box {
  background: #F8FAFC;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  min-height: 280px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-y: auto;
  max-height: 550px;
  flex: 1;
}

.output-placeholder {
  color: var(--muted);
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
}

.loader {
  display: none;
  text-align: center;
  padding: 40px;
  justify-content: center;
  align-content: center;
  flex-direction: column;
}

.loader.show {
  display: flex;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--card-border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

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

/* Directory Tracker List */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.dir-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  cursor: pointer;
  transition: var(--transition);
}

.dir-item:hover {
  border-color: rgba(255, 107, 53, 0.3);
  background: rgba(255, 107, 53, 0.02);
}

.dir-item.done {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.04);
}

.dir-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--card-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  transition: var(--transition);
  color: transparent;
}

.dir-item.done .dir-check {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.dir-name a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.dir-name a:hover {
  color: var(--primary);
}

.dir-tag {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 3px;
}

.dir-progress {
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.dir-progress-bar {
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 10px;
}

.dir-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.dir-progress-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

/* ── MODALS ── */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* ── MARKETING MARKETPLACE ── */
.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.marketplace-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

.marketplace-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.mp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.mp-author {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
}

.mp-price {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.mp-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.mp-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.mp-stats {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ── TOAST NOTIFICATIONS ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  padding: 16px 28px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  color: var(--text);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast.success {
  border-left: 4px solid var(--green);
}

.toast.error {
  border-left: 4px solid var(--red);
}

.toast.info {
  border-left: 4px solid var(--primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #FFD5C5;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Keyframes */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive styles */
@media(max-width: 768px) {
  .sidebar {
    width: 70px;
    padding: 10px 0;
  }
  .sidebar-header {
    padding: 16px 10px;
  }
  .logo-container span:not(.logo-dot) {
    display: none;
  }
  .project-select-wrapper {
    display: none;
  }
  .menu-item span {
    display: none;
  }
  .menu-section-title {
    display: none;
  }
  .menu-item {
    justify-content: center;
    padding: 12px;
  }
  .main-content {
    margin-left: 70px;
  }
  .top-header {
    padding: 0 20px;
  }
  .content-body {
    padding: 24px 16px;
  }
  .sidebar-footer {
    display: none;
  }
}

/* Report Print overrides */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .sidebar, .top-header, .btn, .api-key-bar, .checkbox-grid, button {
    display: none !important;
  }
  .main-content {
    margin-left: 0 !important;
  }
  .content-body {
    padding: 0 !important;
  }
  .ui-card {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    margin-bottom: 20px;
  }
  .output-box {
    background: #fff !important;
    color: #000 !important;
    border: none !important;
    max-height: none !important;
    white-space: pre-wrap !important;
  }
}

/* ── LANDING PAGE SPECIFIC STYLES ── */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
}
.landing-nav-links {
  display: flex;
  gap: 32px;
}
.landing-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}
.landing-nav-links a:hover {
  color: var(--primary);
}

/* Landing Hero */
.landing-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
}
.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.2);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 28px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.landing-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.landing-hero h1 {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text);
}
.landing-hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.landing-hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.landing-hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  flex-wrap: wrap;
  justify-content: center;
}
.landing-stat {
  text-align: center;
}
.landing-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-title);
}
.landing-stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Cinematic Demo Mockup Video-like Player */
.landing-video-mockup {
  width: 100%;
  max-width: 880px;
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.08);
  margin: 56px auto 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
  animation: fadeUp 0.8s 0.3s ease both;
}
.mockup-header {
  background: #F8FAFC;
  border-bottom: 1px solid var(--card-border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.mockup-dots {
  display: flex;
  gap: 6px;
}
.mockup-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.mockup-dots .dot.red { background: #EF4444; }
.mockup-dots .dot.yellow { background: #F59E0B; }
.mockup-dots .dot.green { background: #10B981; }

.mockup-address-bar {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: monospace;
}

.mockup-live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pulse-ring {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}
.pulse-ring::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-ring-glow 1.5s infinite ease-in-out;
  transform-origin: center;
}
@keyframes pulse-ring-glow {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

.mockup-body {
  padding: 0;
  background: #F8FAFC;
  height: 400px;
  position: relative;
}

/* Demo Dashboard inside mockup */
.mockup-demo-dashboard {
  display: flex;
  height: 100%;
}
.mockup-demo-sidebar {
  width: 160px;
  background: #FFFFFF;
  border-right: 1px solid var(--card-border);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.demo-logo {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}
.demo-item {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.demo-item.active {
  background: rgba(255, 107, 53, 0.08);
  color: var(--primary);
  font-weight: 600;
}
.demo-main {
  flex: 1;
  background: #F8FAFC;
  text-align: left;
}
.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
}
.demo-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.demo-kpi {
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.01);
}
.kpi-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.kpi-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-title);
}
.demo-graph-area {
  margin-top: 12px;
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 10px;
  height: 120px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Simulated Video Player Controls */
.mockup-controls {
  background: #FFFFFF;
  border-top: 1px solid var(--card-border);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 54px;
}
.control-btn {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 6px;
  border-radius: 50%;
}
.control-btn:hover {
  background: rgba(255, 107, 53, 0.08);
  transform: scale(1.05);
}
.mockup-progress-container {
  flex: 1;
  height: 6px;
  background: #E2E8F0;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.mockup-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.1s linear;
}
.mockup-time {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--muted);
  min-width: 75px;
  text-align: right;
}
.mockup-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(255, 107, 53, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Multi-screen setup inside mockup body */
.demo-screen {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  overflow-y: auto;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(10px);
  display: flex;
  flex-direction: column;
}
.demo-screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Screen 0: Terminal style */
.terminal-console {
  background: #0F172A;
  color: #38BDF8;
  font-family: monospace;
  font-size: 0.78rem;
  padding: 16px;
  border-radius: 8px;
  flex: 1;
  overflow-y: auto;
  line-height: 1.6;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.05);
}
.terminal-line {
  margin-bottom: 4px;
  white-space: pre-wrap;
}

/* Screen 1: Reddit opportunity card */
.simulated-reddit-card {
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 16px;
  margin-top: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.01);
  text-align: left;
}
.sim-reddit-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.sim-reddit-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 6px;
}
.sim-reddit-body {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.4;
}
.sim-ai-reply-box {
  background: rgba(255, 107, 53, 0.03);
  border-left: 3px solid var(--primary);
  padding: 12px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 12px;
  border-radius: 0 6px 6px 0;
  min-height: 70px;
  white-space: pre-wrap;
}
.sim-post-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.sim-post-btn.active-click {
  background: var(--green);
  animation: scalePop 0.3s ease;
}
@keyframes scalePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Screen 2: Calendar simulator */
.sim-calendar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
  flex: 1;
  overflow-y: auto;
}
.sim-calendar-card {
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 10px;
  text-align: left;
  font-size: 0.72rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}
.sim-calendar-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.sim-cal-day {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}
.sim-cal-title {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sim-cal-type {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 4px;
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--bg);
}

/* Replay Overlay screen overlay */
.mockup-replay-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.96);
  z-index: 10;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.mockup-replay-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Sections styling */
.landing-section {
  position: relative;
  z-index: 1;
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.landing-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.landing-section-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}
.landing-section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.7;
}

.landing-problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.landing-problem-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}
.landing-problem-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}
.landing-problem-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: var(--primary);
}
.landing-problem-icon svg {
  width: 38px;
  height: 38px;
  color: var(--primary);
}
.landing-problem-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.landing-problem-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Tools Preview section */
.landing-tools-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}

.landing-tab-btn {
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--card-border);
  background: var(--bg-card);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.landing-tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 10px var(--primary-glow);
}
.landing-tab-btn:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

.landing-tool-panel {
  display: none;
}
.landing-tool-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  animation: fadeUp 0.5s ease both;
}

@media(max-width: 768px) {
  .landing-tool-panel.active {
    grid-template-columns: 1fr;
  }
}

/* How it works */
.landing-how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.landing-how-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}
.landing-how-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #fff;
  box-shadow: 0 4px 10px var(--primary-glow);
}
.landing-how-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.landing-how-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Pricing */
.landing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.landing-price-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}
.landing-price-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 107, 53, 0.02) 100%);
  position: relative;
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.05);
}
.landing-featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.landing-price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.04);
}
.landing-price-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.landing-price-amount {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text);
  font-family: var(--font-title);
}
.landing-price-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}
.landing-price-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 28px;
}
.landing-price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.landing-price-features li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  align-items: flex-start;
  color: var(--muted);
}
.landing-price-features li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* Footer */
.landing-footer {
  text-align: center;
  padding: 60px 24px;
  border-top: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 0.88rem;
  background: #FFFFFF;
}
.landing-footer .logo {
  display: inline-block;
  margin-bottom: 12px;
}

@media(max-width: 600px) {
  .landing-nav {
    padding: 14px 20px;
  }
  .landing-nav-links {
    display: none;
  }
  .landing-section {
    padding: 60px 16px;
  }
}

/* Services Grid & Cards */
.landing-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1100px;
  margin: 40px auto 0;
}
.landing-service-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: left;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.01);
}
.landing-service-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.05);
}
.landing-service-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 107, 53, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 16px;
}
.landing-service-icon svg {
  width: 22px;
  height: 22px;
}
.landing-service-card h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.landing-service-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}
.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  text-align: left;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}
.btn-text:hover {
  color: var(--primary-hover);
  transform: translateX(4px);
}


/* ── MULTI-STEP SIGNUP DIALOG WIZARD STYLES ── */

.auth-step-panel {
  animation: fadeInStep 0.25s ease-in-out;
}

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

.auth-step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.auth-step-indicator .step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

/* ── PROFESSIONAL MULTI-COLUMN FOOTER STYLES ── */

.landing-footer-container {
  background: #090d16;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 80px;
  padding-top: 60px;
  color: #94a3b8;
  font-family: var(--font-body);
}

.landing-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-col h4 {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  margin-top: 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--primary) !important;
}

.footer-bottom {
  background: #06090f;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  margin-top: 60px;
  padding: 30px 24px;
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.75rem;
  color: #475569;
}

/* ── ADDITIONAL DEVICE RESPONSIVENESS OVERRIDES ── */

@media (max-width: 768px) {
  .landing-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .landing-footer-grid {
    grid-template-columns: 1fr;
  }
  .modal-content {
    width: 95% !important;
    padding: 16px !important;
  }
  #auth-progress-steps {
    padding: 10px 14px !important;
  }
  .auth-step-indicator span {
    font-size: 0.7rem !important;
  }
}


/* ── RESPONSIVE FIXES (Dashboard + Admin) ── */
@media (max-width: 768px) {
  .sidebar { width: 60px; padding: 0; }
  .sidebar .sidebar-header { padding: 12px 8px; }
  .sidebar .logo { font-size: 0; }
  .sidebar .logo-dot { margin: 0; }
  .sidebar .project-select-wrapper { display: none; }
  .sidebar .menu-section-title { display: none; }
  .sidebar .menu-item span { display: none; }
  .sidebar .menu-item { padding: 10px; justify-content: center; }
  .sidebar .sidebar-footer { display: none; }
  .main-content { margin-left: 60px; }
  .top-header { padding: 0 16px; }
  .top-header .header-title-area h2 { font-size: 1rem; }
  .content-body { padding: 16px; }
  .tool-split { grid-template-columns: 1fr !important; }
  .card-grid { grid-template-columns: 1fr !important; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .score-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .landing-nav-links { display: none; }
  .landing-hero h1 { font-size: 2.2rem; }
  .landing-stats { grid-template-columns: repeat(2, 1fr); }
  .landing-services-grid { grid-template-columns: 1fr; }
  .landing-how-grid { grid-template-columns: 1fr; }
  .landing-problem-grid { grid-template-columns: 1fr; }
  .landing-pricing-grid { grid-template-columns: 1fr; }
  .landing-footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .sidebar { width: 0; display: none; }
  .main-content { margin-left: 0; }
  .kpi-row { grid-template-columns: 1fr; }
  .landing-hero h1 { font-size: 1.8rem; }
  .header-actions { gap: 8px; }
  .header-actions input { width: 100px !important; }
}
