/**
 * VEXARO AGENT 3: VEYLITHRA — FOUNDER STUDIO STYLESHEET
 * Color Theme: Deep Obsidian, Slate, Violet Accent (#a855f7), Emerald (#10b981)
 * Inspired by Buildside with Autopilot Daily Goal Orchestration
 */

:root {
  --fs-bg: #090d16;
  --fs-card-bg: rgba(15, 23, 42, 0.7);
  --fs-card-bg-hover: rgba(30, 41, 59, 0.8);
  --fs-border: rgba(255, 255, 255, 0.08);
  --fs-border-purple: rgba(168, 85, 247, 0.3);
  --fs-purple: #a855f7;
  --fs-purple-dark: #7e22ce;
  --fs-purple-light: #c084fc;
  --fs-purple-glow: rgba(168, 85, 247, 0.2);
  --fs-emerald: #10b981;
  --fs-emerald-bg: rgba(16, 185, 129, 0.12);
  --fs-amber: #f59e0b;
  --fs-amber-bg: rgba(245, 158, 11, 0.12);
  --fs-text-primary: #f8fafc;
  --fs-text-secondary: #94a3b8;
  --fs-text-muted: #64748b;
  --fs-radius-lg: 16px;
  --fs-radius-md: 12px;
  --fs-radius-sm: 8px;
}

/* Container */
.founder-studio-wrapper {
  color: var(--fs-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: 0;
  width: 100%;
}

/* Sub-Navigation Bar */
.fs-subnav-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 20px 0;
  border-bottom: 1px solid var(--fs-border);
  margin-bottom: 24px;
}
.fs-subnav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--fs-border);
  color: var(--fs-text-secondary);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.fs-subnav-btn:hover {
  background: rgba(30, 41, 59, 0.8);
  color: var(--fs-text-primary);
  border-color: rgba(168, 85, 247, 0.3);
}
.fs-subnav-btn.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(126, 34, 206, 0.25));
  border-color: var(--fs-purple);
  color: #fff;
  box-shadow: 0 0 15px var(--fs-purple-glow);
}
.fs-subnav-btn .fs-badge {
  background: rgba(168, 85, 247, 0.25);
  color: var(--fs-purple-light);
  padding: 2px 7px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 600;
}

/* Hero Section */
.fs-hero-card {
  position: relative;
  background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.18), transparent 60%),
              linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(9, 13, 22, 0.95) 100%);
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-lg);
  padding: 28px 32px;
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.fs-hero-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  background-image: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.fs-hero-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fs-hero-subtitle {
  color: var(--fs-text-secondary);
  font-size: 14px;
  max-width: 650px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.fs-prompt-box {
  display: flex;
  align-items: center;
  background: rgba(3, 7, 18, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--fs-radius-md);
  padding: 6px 8px 6px 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}
.fs-prompt-box:focus-within {
  border-color: var(--fs-purple);
  box-shadow: 0 0 18px var(--fs-purple-glow);
}
.fs-prompt-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
}
.fs-prompt-input::placeholder {
  color: var(--fs-text-muted);
}
.fs-prompt-btn {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.fs-prompt-btn:hover {
  opacity: 0.92;
  transform: scale(1.04);
}
.fs-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.fs-action-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--fs-text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}
.fs-action-pill:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  color: #fff;
}

/* Autopilot Banner */
.fs-autopilot-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--fs-radius-md);
  padding: 12px 18px;
  margin-bottom: 24px;
}
.fs-autopilot-status {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fs-autopilot-pulse {
  width: 10px;
  height: 10px;
  background: var(--fs-purple-light);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--fs-purple-light);
  animation: fsPulse 2s infinite;
}
@keyframes fsPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(192, 132, 252, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(192, 132, 252, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(192, 132, 252, 0); }
}
.fs-autopilot-btn {
  background: linear-gradient(135deg, #a855f7, #6b21a8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--fs-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.fs-autopilot-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--fs-purple-glow);
}

/* 5 Metrics Cards Grid */
.fs-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.fs-metric-card {
  background: var(--fs-card-bg);
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-md);
  padding: 18px;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
  cursor: pointer;
}
.fs-metric-card:hover {
  background: var(--fs-card-bg-hover);
  border-color: var(--fs-border-purple);
  transform: translateY(-2px);
}
.fs-metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.fs-metric-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.fs-metric-val {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 4px;
}
.fs-metric-sub {
  font-size: 12px;
  color: var(--fs-text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fs-metric-link {
  color: var(--fs-purple-light);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Two Column Layout */
.fs-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
@media (max-width: 1024px) {
  .fs-main-grid {
    grid-template-columns: 1fr;
  }
}

/* Section Header */
.fs-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.fs-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fs-view-all {
  color: var(--fs-purple-light);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.fs-view-all:hover {
  text-decoration: underline;
}

/* Product Cards */
.fs-product-card {
  background: var(--fs-card-bg);
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-md);
  padding: 18px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}
.fs-product-card:hover {
  border-color: var(--fs-border-purple);
  background: var(--fs-card-bg-hover);
}
.fs-product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}
.fs-product-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fs-product-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}
.fs-product-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.fs-product-tagline {
  font-size: 13px;
  color: var(--fs-text-secondary);
  margin-bottom: 12px;
  line-height: 1.4;
}
.fs-badge-status {
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}
.fs-badge-published { background: var(--fs-emerald-bg); color: var(--fs-emerald); border: 1px solid rgba(16, 185, 129, 0.3); }
.fs-badge-draft { background: var(--fs-amber-bg); color: var(--fs-amber); border: 1px solid rgba(245, 158, 11, 0.3); }
.fs-badge-archived { background: rgba(148, 163, 184, 0.1); color: var(--fs-text-muted); border: 1px solid rgba(148, 163, 184, 0.2); }
.fs-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--fs-text-muted);
}
.fs-product-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.fs-tag {
  background: rgba(255, 255, 255, 0.05);
  color: var(--fs-text-secondary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}

/* Build in Public Cards */
.fs-update-card {
  background: var(--fs-card-bg);
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-md);
  padding: 16px;
  margin-bottom: 12px;
}
.fs-update-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.fs-update-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fs-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #334155;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}
.fs-update-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.fs-update-content {
  font-size: 13px;
  color: var(--fs-text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Launch Checklist Bar */
.fs-checklist-card {
  background: var(--fs-card-bg);
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-md);
  padding: 20px;
  margin-bottom: 24px;
}
.fs-checklist-progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin: 10px 0 16px 0;
}
.fs-checklist-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 9999px;
  transition: width 0.3s ease;
}
.fs-checklist-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fs-chk-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--fs-text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}
.fs-chk-pill.done {
  background: var(--fs-emerald-bg);
  border-color: rgba(16, 185, 129, 0.35);
  color: #fff;
}
.fs-chk-pill:hover {
  border-color: var(--fs-purple);
}

/* Modals */
.fs-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
}
.fs-modal-card {
  background: #0f172a;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--fs-radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}
.fs-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.fs-modal-subtitle {
  font-size: 13px;
  color: var(--fs-text-secondary);
  margin-bottom: 20px;
}
.fs-form-group {
  margin-bottom: 16px;
}
.fs-form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--fs-text-secondary);
  margin-bottom: 6px;
}
.fs-input, .fs-textarea, .fs-select {
  width: 100%;
  background: rgba(3, 7, 18, 0.6);
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}
.fs-input:focus, .fs-textarea:focus, .fs-select:focus {
  border-color: var(--fs-purple);
}
.fs-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.fs-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--fs-border);
  color: var(--fs-text-secondary);
  padding: 8px 16px;
  border-radius: var(--fs-radius-sm);
  font-size: 13px;
  cursor: pointer;
}
.fs-btn-primary {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  border: none;
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--fs-radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--fs-purple-glow);
}
