/* ===== CSS Variables ===== */
:root {
  --bg-primary: #0a0a12;
  --bg-secondary: #0d0d16;
  --bg-card: rgba(26, 26, 46, 0.5);
  --bg-card-solid: #1a1a2e;
  --bg-hover: rgba(35, 35, 53, 0.6);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.5);
  --text-muted: rgba(255, 255, 255, 0.3);

  --accent-purple: #8b5cf6;
  --accent-purple-dark: #7c3aed;
  --accent-purple-light: #a78bfa;
  --accent-green: #10b981;
  --accent-blue: #3b82f6;
  --accent-red: #ef4444;

  --border-color: rgba(139, 92, 246, 0.1);
  --border-glow: rgba(139, 92, 246, 0.15);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --glass-bg: rgba(26, 26, 46, 0.5);
  --glass-border: rgba(139, 92, 246, 0.12);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  --glass-blur: blur(20px);

  --transition: all 0.3s ease;
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  /* Safe areas for iOS notch/home indicator */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Capacitor native app adjustments */
body.capacitor {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== App Container ===== */
.app-container {
  width: 100%;
  min-height: 100%;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

/* Global ambient orbs — visible on every page */
.app-container::before {
  content: '';
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent 70%);
  top: -150px;
  right: -150px;
  animation: orbFloat 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.app-container::after {
  content: '';
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06), transparent 70%);
  bottom: -120px;
  left: -120px;
  animation: orbFloat 15s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: 0;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}

/* Ensure all content sits above the orbs */
.navbar, section, .auth-section, .dashboard-section, .script-section,
.ideas-section, .hero, .pipeline, .cta-section, .footer {
  position: relative;
  z-index: 1;
}

/* ===== Navbar ===== */
.navbar {
  background: rgba(10, 10, 18, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.navbar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  font-size: 28px;
}

.navbar-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent-purple);
}

.nav-login {
  background: var(--accent-purple);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.nav-login:hover {
  background: var(--accent-purple-dark);
  color: white;
}

.navbar-user {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== Hero Section ===== */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}

.hero-features {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px 0;
}

.feature-chip {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.feature-chip:hover {
  border-color: var(--border-glow);
  background: rgba(26, 26, 46, 0.7);
}

.chip-icon {
  font-size: 18px;
}

.hero-cta-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ===== Pipeline Section ===== */
.pipeline {
  background: rgba(13, 13, 22, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 80px 24px;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 48px;
  font-size: 16px;
}

.pipeline-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.pipeline-stage {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}

.pipeline-stage:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.05);
}

.stage-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-dark));
  color: white;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.pipeline-stage h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.pipeline-stage p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== CTA Section ===== */
.cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  text-align: center;
}

.cta-section h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ===== Auth Section (Liquid Glass) ===== */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

/* Animated gradient orbs behind the glass card */
.auth-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
  top: -100px;
  right: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}

.auth-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 70%);
  bottom: -80px;
  left: -80px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

/* Auth orb animation — uses global orbFloat */

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

.auth-card {
  width: 100%;
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.auth-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
  background: linear-gradient(135deg, #ffffff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-subtitle {
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-size: 15px;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3px;
}

.form-input {
  background: rgba(13, 13, 20, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.form-input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow:
    0 0 0 3px rgba(139, 92, 246, 0.1),
    0 0 20px rgba(139, 92, 246, 0.08);
  background: rgba(13, 13, 20, 0.7);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  line-height: 1.4;
}

.checkbox-label input {
  width: 16px;
  height: 16px;
  min-width: 16px;
  cursor: pointer;
  accent-color: var(--accent-purple);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.auth-benefits {
  display: none;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefits-list li {
  font-size: 15px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  margin-top: 28px;
}

.auth-footer .link {
  color: var(--accent-purple-light);
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fca5a5;
  font-size: 14px;
  text-align: center;
}

/* ===== Ideas Section ===== */
.ideas-section {
  min-height: 100vh;
  padding: 60px 24px;
  background: var(--bg-primary);
}

.ideas-container {
  max-width: 1200px;
  margin: 0 auto;
}

.ideas-header {
  text-align: center;
  margin-bottom: 48px;
}

.ideas-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.ideas-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

/* ===== Buttons ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-dark));
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-family: inherit;
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-purple-light), var(--accent-purple));
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

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

.btn-large {
  padding: 14px 32px;
  font-size: 16px;
  margin-top: 8px;
}

.btn-block {
  width: 100%;
}

/* ===== Footer ===== */
.footer {
  background: rgba(13, 13, 22, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 60px;
}

/* ===== Links ===== */
.link {
  color: var(--accent-purple);
  text-decoration: none;
  transition: color 0.2s;
}

.link:hover {
  color: var(--accent-purple-light);
  text-decoration: underline;
}

/* ===== Pipeline Nav ===== */
.nav-pipeline {
  display: flex;
  align-items: center;
  gap: 0;
}

.pipeline-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
}

.pipeline-step .step-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  background: rgba(26, 26, 46, 0.6);
  border: 2px solid var(--glass-border);
  color: var(--text-muted);
  transition: var(--transition);
}

.pipeline-step .step-label {
  display: none;
}

.pipeline-step.step-active {
  color: var(--accent-purple);
}

.pipeline-step.step-active .step-indicator {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: white;
}

.pipeline-step.step-active .step-label {
  display: inline;
}

.pipeline-step.step-completed .step-indicator {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: white;
}

.pipeline-step.step-completed:hover {
  color: var(--accent-green);
}

.pipeline-step.step-locked {
  opacity: 0.4;
  cursor: not-allowed;
}

.step-connector {
  width: 20px;
  height: 2px;
  background: var(--glass-border);
  display: block;
  flex-shrink: 0;
}

.step-connector.connector-done {
  background: var(--accent-green);
}

/* ===== Nav User Menu ===== */
.nav-user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-icon-link {
  text-decoration: none;
  font-size: 18px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.nav-icon-link:hover {
  opacity: 1;
}

.nav-user-name {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-save-exit {
  font-size: 13px;
  color: var(--text-primary);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  transition: var(--transition);
  background: rgba(26, 26, 46, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  white-space: nowrap;
}

.btn-save-exit:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.08);
}

.nav-logout-btn {
  background: rgba(26, 26, 46, 0.4);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-logout-btn:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

/* ===== Dashboard ===== */
.dashboard-section {
  min-height: 100vh;
  padding: 40px 24px;
  background: var(--bg-primary);
}

.dashboard-container {
  max-width: 1000px;
  margin: 0 auto;
}

.dashboard-greeting {
  margin-bottom: 40px;
}

.dashboard-greeting h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.dashboard-greeting p {
  color: var(--text-secondary);
  font-size: 16px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.dash-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  box-shadow: var(--glass-shadow);
}

.dash-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.06);
}

.dash-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.dash-card .btn-primary {
  font-size: 13px;
  padding: 8px 20px;
}

.dash-stat {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

.dash-stat-item {
  text-align: center;
}

.dash-stat-item .stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-purple);
}

.dash-stat-item .stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.quick-action:hover {
  border-color: var(--border-glow);
  background: var(--bg-hover);
}

.quick-action .qa-icon {
  font-size: 24px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }

  .hero {
    padding: 40px 24px;
  }

  .pipeline-grid {
    grid-template-columns: 1fr;
  }

  .auth-container {
    max-width: 100%;
  }

  .auth-card {
    padding: 32px 24px;
    border-radius: 16px;
  }

  .auth-title {
    font-size: 26px;
  }

  .ideas-grid {
    grid-template-columns: 1fr;
  }

  .navbar-links {
    gap: 16px;
  }

  .nav-pipeline {
    display: none;
  }

  .nav-user-menu {
    gap: 8px;
  }

  .nav-user-name {
    display: none;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .script-actions {
    flex-direction: column;
  }

  .edit-actions {
    flex-direction: column;
  }

  .record-actions {
    flex-direction: column;
  }

  .platform-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .edit-stats {
    grid-template-columns: 1fr;
  }

  .calendar-layout {
    flex-direction: column;
  }
}

/* ===== Loading Spinner (shared) ===== */
.loading-spinner {
  text-align: center;
  padding: 60px 20px;
}

.spinner-ring {
  border: 4px solid rgba(139, 92, 246, 0.2);
  border-top: 4px solid #8b5cf6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

/* ===== Toast Notifications (shared) ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  font-size: 14px;
  z-index: 1000;
  animation: slideUp 0.3s ease;
  box-shadow: var(--glass-shadow);
}

.toast.success { border-color: var(--accent-green); }
.toast.error { border-color: var(--accent-red); }

/* ===== Error Message (shared) ===== */
.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  border-radius: 8px;
  padding: 16px;
  color: #fca5a5;
  text-align: center;
  margin-top: 16px;
}

/* ===== Back Button (shared) ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent-purple);
}

/* ===== Mobile Bottom Nav ===== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 18, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--glass-border);
  padding: 8px 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 100;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.mobile-nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  font-size: 10px;
  color: var(--text-muted);
  padding: 4px 8px;
  transition: color 0.2s;
}

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

.mobile-nav-item .nav-emoji {
  font-size: 20px;
}

@media (max-width: 768px) {
  .mobile-nav {
    display: block;
  }

  /* Add bottom padding to pages so content isn't hidden behind mobile nav */
  .app-container {
    padding-bottom: 72px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero-title {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-features {
    gap: 8px;
  }

  .feature-chip {
    font-size: 12px;
    padding: 8px 12px;
  }

  .auth-card {
    padding: 20px;
  }

  .publish-form {
    padding: 24px;
  }

  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Pipeline visible on medium+ screens */
@media (min-width: 769px) {
  .pipeline-step .step-label {
    display: inline;
  }
}
