/* ==========================================================================
   PROPOSAL ARCHITECT AI - ULTRA-CLEAN LIGHT MODE SAAS (v2.3)
   Intuitive, Centered, Non-clipping Tooltips & Hidden Admin Architecture
   ========================================================================== */

:root {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-input: #ffffff;
  --bg-hover: #f1f5f9;

  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-focus: #4f46e5;
  --border-focus-ring: rgba(79, 70, 229, 0.15);

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-brand: #4f46e5;

  --accent-primary: #4f46e5;
  --accent-primary-hover: #4338ca;
  --accent-cyan: #0284c7;
  --accent-green: #16a34a;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
  --shadow-primary: 0 4px 14px 0 rgba(79, 70, 229, 0.25);

  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', monospace;

  --transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
/* Global Sleek Narrow Scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #94a3b8;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-ui);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Base Hidden Utility */
.hidden {
  display: none !important;
}

/* Non-Clipping Tooltips (Positioned Below Elements to prevent overflow clipping) */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-3px);
  background-color: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 9px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 99999;
  box-shadow: var(--shadow-md);
}

[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* App Shell */
.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/* Master Key Alert Banner (Visible only to Admin/Owner) */
.setup-alert-banner {
  background-color: #1e1b4b;
  border-bottom: 1px solid #4338ca;
  color: #e0e7ff;
  padding: 8px 24px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 100;
}

.setup-alert-banner .banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.setup-alert-banner .admin-tag {
  background: #4f46e5;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.setup-alert-banner .banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.setup-alert-banner button#btn-banner-admin-unlock {
  background-color: #4f46e5;
  color: #ffffff;
  border: 1px solid #6366f1;
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.setup-alert-banner button#btn-banner-admin-unlock:hover {
  background-color: #4338ca;
}

.setup-alert-banner button#btn-banner-dismiss {
  background: transparent;
  color: #a5b4fc;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}

.setup-alert-banner button#btn-banner-dismiss:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Top Navigation Bar */
.top-nav {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-nav-inner {
  max-width: 100%;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-icon-sidebar {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon-sidebar:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-hover);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.brand-info h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-info h2 span {
  font-size: 10px;
  background-color: #eef2ff;
  color: var(--accent-primary);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.brand-info .tagline {
  font-size: 11px;
  color: var(--text-muted);
}

/* App Body Layout with Collapsible Sidebar */
.app-body-container {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 58px);
}

.app-sidebar {
  width: 250px;
  background-color: #ffffff;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  position: sticky;
  top: 58px;
  height: calc(100vh - 58px);
  overflow-y: auto;
  z-index: 90;
}

.app-sidebar.collapsed {
  width: 68px;
}

.sidebar-inner {
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 16px;
}

.sidebar-nav-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-section-title {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
  padding: 4px 10px 6px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}

.app-sidebar.collapsed .sidebar-section-title {
  display: none;
}

.sidebar-nav-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  white-space: nowrap;
  text-decoration: none;
}

.sidebar-nav-tab:hover {
  background-color: var(--bg-subtle);
  color: var(--text-main);
}

.sidebar-nav-tab.active {
  background-color: #eef2ff;
  color: var(--accent-primary);
  font-weight: 700;
}

.sidebar-nav-tab.highlight {
  color: #4338ca;
}

.sidebar-nav-tab.highlight.active {
  background-color: #e0e7ff;
}

.app-sidebar.collapsed .sidebar-nav-tab {
  justify-content: center;
  padding: 10px 0;
}

.app-sidebar.collapsed .nav-label {
  display: none;
}

.app-sidebar.collapsed .sidebar-badge {
  display: none;
}

.nav-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
}

.sidebar-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.sidebar-badge.badge-green {
  background-color: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.sidebar-badge.badge-purple {
  background-color: #f3e8ff;
  color: #7e22ce;
  border-color: #e9d5ff;
}

.sidebar-badge.badge-muted {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
}

.sidebar-footer-widget {
  margin-top: auto;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
}

.app-sidebar.collapsed .sidebar-footer-widget {
  display: none;
}

.pipeline-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.stat-val {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
}

/* Nav User & Credits Section */
.nav-user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.credits-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: #f1f5f9;
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.credits-badge.pro-badge {
  background-color: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
}

.btn-google-login {
  display: flex;
  align-items: center;
  gap: 7px;
  background-color: #ffffff;
  color: #374151;
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.btn-google-login:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-hover);
}

.google-icon {
  width: 15px;
  height: 15px;
  min-width: 15px;
}

.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.btn-logout {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  text-align: left;
}

.btn-logout:hover {
  color: var(--accent-rose);
  text-decoration: underline;
}

/* Main Content Area */
.main-content {
  max-width: 100%;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 16px 20px;
  flex: 1;
  overflow-x: hidden;
  box-sizing: border-box;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.15s ease-out;
  width: 100%;
  min-width: 0;
}

.tab-pane.active {
  display: block;
}

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

/* Studio 2-Column Grid */
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

@media (max-width: 1024px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.card-header {
  padding: 12px 18px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.card-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.title-with-pill {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-primary);
  background-color: #eef2ff;
  border: 1px solid #e0e7ff;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.card-body {
  padding: 20px;
}

.form-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

/* Form Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.helper-text {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.optional {
  font-weight: 400;
  color: var(--text-muted);
}

.required {
  color: var(--accent-rose);
}

.form-control {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 13px;
  padding: 8px 12px;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--border-focus-ring);
}

.form-control-sm {
  padding: 6px 10px;
  font-size: 12px;
}

.text-area-large {
  min-height: 130px;
  resize: vertical;
  line-height: 1.5;
}

.form-row {
  display: flex;
  gap: 10px;
}

.flex-1 {
  flex: 1;
}

.toggle-box {
  background-color: var(--bg-subtle);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.switch-label {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-main);
}

.switch-label input {
  display: none;
}

.switch-custom {
  width: 30px;
  height: 17px;
  background-color: var(--border-hover);
  border-radius: var(--radius-full);
  position: relative;
  transition: var(--transition);
}

.switch-custom::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  background-color: #ffffff;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.switch-label input:checked + .switch-custom {
  background-color: var(--accent-primary);
}

.switch-label input:checked + .switch-custom::after {
  transform: translateX(13px);
}

/* Action Buttons */
.btn-primary-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background-color: var(--accent-primary);
  color: #ffffff;
  border: none;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-primary);
  transition: var(--transition);
}

.btn-primary-large:hover {
  background-color: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.btn-primary-large:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-text-action {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-text-action:hover {
  text-decoration: underline;
}

.inline-link {
  font-size: 12px;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
}

.inline-link:hover {
  text-decoration: underline;
}

/* Output Deliverables Toolbar (Sleek Horizontal Pills) */
.output-card {
  min-height: 560px;
}

.output-header-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  flex-wrap: nowrap;
}

.output-tabs {
  display: flex;
  gap: 2px;
  background-color: var(--bg-subtle);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.output-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.output-tab.active {
  background-color: #ffffff;
  color: var(--text-main);
  box-shadow: var(--shadow-xs);
}

.output-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-action {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  white-space: nowrap;
}

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

.btn-gdocs {
  background-color: #eef2ff;
  border-color: #c7d2fe;
  color: #3730a3;
}

.btn-gdocs:hover {
  background-color: #e0e7ff;
  border-color: #a5b4fc;
}

.gdoc-icon {
  width: 13px !important;
  height: 13px !important;
  min-width: 13px !important;
  max-width: 13px !important;
}

.output-body {
  padding: 20px;
  background-color: #fafbfc;
  flex: 1;
  min-height: 480px;
}

.output-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 34px;
  margin-bottom: 8px;
}

.output-state h3, .output-state h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 5px;
}

.output-state p {
  font-size: 12.5px;
  max-width: 340px;
  line-height: 1.5;
}

.spinner {
  width: 26px;
  height: 26px;
  border: 3px solid #e0e7ff;
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}

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

/* Formatted Markdown Output */
.markdown-preview {
  font-size: 13.5px;
  line-height: 1.65;
  color: #1e293b;
}

.markdown-preview h1, 
.markdown-preview h2, 
.markdown-preview h3 {
  color: #0f172a;
  margin-top: 16px;
  margin-bottom: 6px;
  font-weight: 700;
}

.markdown-preview h1 {
  font-size: 17px;
  color: var(--accent-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 5px;
}

.markdown-preview h2 {
  font-size: 15px;
}

.markdown-preview h3 {
  font-size: 13.5px;
}

.markdown-preview p {
  margin-bottom: 10px;
}

.markdown-preview ul, .markdown-preview ol {
  margin-left: 18px;
  margin-bottom: 12px;
}

.markdown-preview li {
  margin-bottom: 4px;
}

.markdown-preview strong {
  color: #0f172a;
}

.raw-markdown-area {
  width: 100%;
  min-height: 480px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: #0f172a;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
}

/* User Settings Tab Layout */
.settings-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
}

.settings-sidebar {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  text-align: left;
  transition: var(--transition);
}

.settings-nav-item:hover, .settings-nav-item.active {
  background-color: #eef2ff;
  color: var(--accent-primary);
  border-color: #e0e7ff;
}

.persona-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.persona-item {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.persona-item:hover, .persona-item.active {
  border-color: var(--accent-primary);
  background-color: #eef2ff;
}

.persona-item-title {
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text-main);
}

.persona-item-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
}

.btn-secondary {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--bg-hover);
}

.btn-danger {
  background-color: #ffe4e6;
  color: var(--accent-rose);
  border: 1px solid #fecdd3;
}

.btn-danger:hover {
  background-color: var(--accent-rose);
  color: #ffffff;
}

.form-footer {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

/* Vault Grid */
.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.vault-item {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.vault-item:hover {
  border-color: var(--accent-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.vault-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.vault-item-title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-main);
}

.vault-item-date {
  font-size: 11px;
  color: var(--text-muted);
}

.vault-item-preview {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vault-item-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

/* Pricing Page ($19/mo) */
.pricing-container {
  max-width: 800px;
  margin: 10px auto;
  text-align: center;
}

.pricing-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.pricing-header p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 24px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 20px;
  align-items: center;
}

@media (max-width: 768px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.pricing-card.popular {
  border: 2px solid var(--accent-primary);
  box-shadow: var(--shadow-lg);
}

.popular-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.tier-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.tier-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.tier-price span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.tier-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
  font-size: 12.5px;
}

.tier-features li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #334155;
}

.paypal-container {
  margin-top: 12px;
}

.guarantee-note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

.full-width {
  width: 100%;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 9px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 12.5px;
  cursor: not-allowed;
}

/* Footer & Centered Copyright Notice */
.app-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 14px 24px;
  width: 100%;
  margin-top: auto;
  position: relative;
  z-index: 80;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-copyright {
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.btn-admin-secret {
  position: absolute;
  right: 0;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.btn-admin-secret:hover {
  color: var(--text-muted);
}

/* Modal System */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.modal-card-large {
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-header h3 {
  font-size: 15.5px;
  font-weight: 700;
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
}

.modal-body p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.btn-google-large {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #ffffff;
  color: #374151;
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.btn-google-large:hover {
  background-color: var(--bg-hover);
}

/* Admin Dashboard Elements inside Modal */
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.metric-card {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: var(--radius-md);
}

.metric-label {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2px;
}

.metric-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.text-green {
  color: var(--accent-green);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.admin-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 16px 0;
}

.max-w-md {
  max-width: 420px;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 999999;
}

.toast {
  background-color: #0f172a;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.2s ease-out;
}

.toast.success {
  background-color: #065f46;
}

.toast.error {
  background-color: #9f1239;
}

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

/* ==========================================
   RADAR JOB CARDS & MATCH BADGES
   ========================================== */
.radar-job-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.radar-job-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent-primary);
}

.radar-job-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.radar-job-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

.radar-match-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
}

.radar-job-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
}

.radar-meta-pill {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  color: #334155;
  font-weight: 600;
}

.radar-meta-budget {
  background-color: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
  font-weight: 700;
}

.radar-match-reason {
  font-size: 11.5px;
  color: #4338ca;
  background-color: #eef2ff;
  border-left: 2px solid #6366f1;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
}

.radar-job-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.radar-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.btn-radar-import {
  background-color: var(--accent-primary);
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-radar-import:hover {
  background-color: var(--accent-primary-hover);
  transform: translateY(-1px);
}

/* ==========================================
   OFFERS, PROJECTS & ARCHIVED PIPELINE CARDS
   ========================================== */
.offer-card, .project-card, .archived-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.offer-card:hover, .project-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.offer-header, .project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.offer-title, .project-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.status-pill.sent {
  background-color: #e0f2fe;
  color: #0369a1;
}

.status-pill.interview {
  background-color: #fef3c7;
  color: #b45309;
}

.status-pill.won {
  background-color: #dcfce7;
  color: #15803d;
}

.status-pill.in-progress {
  background-color: #f3e8ff;
  color: #7e22ce;
}

.status-pill.archived {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
}

/* Milestones Progress Bar */
.progress-bar-container {
  width: 100%;
  height: 8px;
  background-color: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 6px 0;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #10b981);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.milestones-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
}

.milestone-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
}

.milestone-item.done {
  color: #15803d;
  text-decoration: line-through;
  opacity: 0.8;
}

.offer-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  margin-top: 4px;
}

/* ==========================================
   USER MANUAL STYLES
   ========================================== */
.manual-container {
  padding: 24px;
  background: #ffffff;
  min-height: calc(100vh - 120px);
}

.manual-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.manual-hero-left h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.manual-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.manual-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.manual-search-box input {
  min-width: 240px;
}

.manual-live-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin: 20px 0;
}

.live-spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.live-spec-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.live-spec-val {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

.manual-body-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  margin-top: 24px;
  align-items: flex-start;
}

.manual-toc {
  position: sticky;
  top: 80px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.toc-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.toc-link {
  font-size: 12px;
  color: #475569;
  text-decoration: none;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  line-height: 1.3;
}

.toc-link:hover {
  background: #eff6ff;
  color: var(--accent-primary);
  font-weight: 600;
}

.manual-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.manual-section {
  padding-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
  scroll-margin-top: 90px;
}

.manual-section h3 {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.manual-section h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 14px 0 6px 0;
}

.manual-section p {
  font-size: 13px;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 10px;
}

.manual-section ul, .manual-section ol {
  font-size: 13px;
  color: #334155;
  line-height: 1.65;
  padding-left: 20px;
  margin-bottom: 12px;
}

.manual-section li {
  margin-bottom: 4px;
}

.manual-callout {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin: 14px 0;
  font-size: 12.5px;
}

.callout-info {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  color: #1e40af;
}

.manual-domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.domain-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px;
}

.domain-card strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
  margin-bottom: 4px;
}

.domain-card p {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.manual-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 12.5px;
}

.manual-table th {
  background: #f1f5f9;
  color: #475569;
  text-align: left;
  padding: 8px 12px;
  font-weight: 700;
  border: 1px solid #e2e8f0;
}

.manual-table td {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  color: #334155;
}

@media (max-width: 900px) {
  .manual-body-layout {
    grid-template-columns: 1fr;
  }
  .manual-toc {
    position: static;
    max-height: none;
  }
}

/* ==========================================
   FLOATING GEMINI AI ASSISTANT BUBBLE & PANEL
   ========================================== */
#ai-assistant-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  font-family: var(--font-sans);
}

.ai-bubble-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed, #06b6d4);
  color: #ffffff;
  border: none;
  border-radius: 30px;
  padding: 10px 18px 10px 14px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.5), 0 8px 10px -6px rgba(79, 70, 229, 0.3);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-bubble-trigger:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 30px -5px rgba(79, 70, 229, 0.65), 0 10px 15px -5px rgba(79, 70, 229, 0.4);
}

.ai-bubble-icon {
  font-size: 17px;
  animation: pulse-spin 3s ease-in-out infinite;
}

@keyframes pulse-spin {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.15) rotate(10deg); }
}

.ai-bubble-label {
  letter-spacing: -0.01em;
}

.ai-bubble-online-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 4px;
  right: 4px;
}

/* Assistant Chat Panel */
.ai-assistant-panel {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 100px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25), 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: floatUp 0.25s ease-out;
}

@keyframes floatUp {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-panel-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ai-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.ai-panel-status {
  font-size: 10.5px;
  color: #93c5fd;
}

.ai-panel-actions {
  display: flex;
  gap: 4px;
}

.ai-panel-actions .btn-icon {
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 13px;
  transition: var(--transition);
}

.ai-panel-actions .btn-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Quick Suggestion Chips */
.ai-quick-chips {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
  scrollbar-width: none;
}

.ai-quick-chips::-webkit-scrollbar {
  display: none;
}

.ai-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.ai-chip:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
}

/* Messages Box */
.ai-messages-container {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
}

.ai-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 88%;
}

.ai-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-msg-bot {
  align-self: flex-start;
}

.ai-msg-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #ffffff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-msg-bubble {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  line-height: 1.5;
  word-break: break-word;
}

.ai-msg-user .ai-msg-bubble {
  background: #4f46e5;
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.ai-msg-bot .ai-msg-bubble {
  background: #f1f5f9;
  color: #1e293b;
  border-bottom-left-radius: 2px;
  border: 1px solid #e2e8f0;
}

.ai-msg-bot .ai-msg-bubble ul,
.ai-msg-bot .ai-msg-bubble ol {
  padding-left: 16px;
  margin: 6px 0;
}

.ai-msg-bot .ai-msg-bubble code {
  background: #e2e8f0;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 11px;
  font-family: var(--font-mono);
}

.ai-input-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ai-input-form input {
  font-size: 12px;
}

.btn-icon-send {
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.ai-typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  width: fit-content;
}

.ai-typing-dot {
  width: 6px;
  height: 6px;
  background: #94a3b8;
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.ai-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
}

/* ==========================================
   EXECUTIVE PDF PROPOSAL DOCUMENT STYLES
   ========================================== */
.pdf-modal-card {
  max-width: 900px !important;
  width: 95vw;
}

.pdf-modal-body {
  background: #f1f5f9;
  padding: 24px;
  max-height: calc(85vh - 70px);
  overflow-y: auto;
}

.pdf-document-canvas {
  background: #ffffff;
  max-width: 820px;
  margin: 0 auto;
  padding: 48px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
  line-height: 1.6;
}

.pdf-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 2px solid #0f172a;
  margin-bottom: 28px;
}

.pdf-author-name {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.pdf-author-title {
  font-size: 13.5px;
  color: #4f46e5;
  font-weight: 600;
  margin-top: 2px;
}

.pdf-author-contact {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

.pdf-doc-meta {
  text-align: right;
}

.pdf-doc-badge {
  display: inline-block;
  background: #0f172a;
  color: #ffffff;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pdf-doc-date {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
}

.pdf-doc-ref {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #94a3b8;
}

.pdf-project-title-box {
  background: #f8fafc;
  border-left: 4px solid #4f46e5;
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 24px;
}

.pdf-project-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pdf-project-heading {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 4px 0 0 0;
}

.pdf-section {
  margin-bottom: 28px;
}

.pdf-section-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pdf-summary-text {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.65;
}

.pdf-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0;
}

.pdf-phase-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 14px;
}

.pdf-phase-num {
  font-size: 10px;
  font-weight: 800;
  color: #4f46e5;
  text-transform: uppercase;
}

.pdf-phase-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin: 4px 0 8px 0;
}

.pdf-phase-desc {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.45;
}

.pdf-milestone-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 12.5px;
}

.pdf-milestone-table th {
  background: #0f172a;
  color: #ffffff;
  padding: 8px 12px;
  text-align: left;
  font-weight: 700;
  font-size: 11.5px;
}

.pdf-milestone-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.pdf-milestone-table tr:nth-child(even) {
  background: #f8fafc;
}

.pdf-tech-box {
  background: #0f172a;
  color: #f8fafc;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  margin: 12px 0;
}

.pdf-signature-section {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #cbd5e1;
}

.pdf-sig-box {
  flex: 1;
}

.pdf-sig-line {
  height: 40px;
  border-bottom: 1px dashed #94a3b8;
  margin-bottom: 6px;
}

.pdf-sig-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

/* Print Overrides */
@media print {
  body * {
    visibility: hidden;
  }
  #pdf-preview-modal,
  #pdf-preview-modal *,
  #pdf-printable-document,
  #pdf-printable-document * {
    visibility: visible;
  }
  #pdf-preview-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: transparent;
    padding: 0;
    margin: 0;
  }
  .pdf-modal-card {
    box-shadow: none;
    border: none;
    width: 100%;
    max-width: 100% !important;
  }
  .modal-header, #ai-assistant-container, .app-header, .app-sidebar, .app-footer {
    display: none !important;
  }
  .pdf-modal-body {
    padding: 0;
    background: transparent;
  }
  .pdf-document-canvas {
    box-shadow: none;
    padding: 20px 0;
    width: 100%;
    max-width: 100%;
  }
}

/* ==========================================
   UPWORK INBOX FIRST 220-CHAR PREVIEWER
   ========================================== */
.upwork-hook-preview-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.upwork-hook-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.upwork-hook-text {
  font-size: 13px;
  color: #166534;
  font-weight: 500;
  line-height: 1.45;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #86efac;
  word-break: break-word;
}

/* ==========================================
   UNIVERSAL QUICK COMMAND PALETTE (Ctrl+K)
   ========================================== */
.cmd-palette-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 540px;
  max-width: 90vw;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  border: 1px solid #cbd5e1;
  animation: floatUp 0.18s ease-out;
}

.cmd-palette-search-wrap {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  gap: 10px;
  background: #f8fafc;
}

.cmd-icon {
  font-size: 16px;
}

.cmd-palette-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  font-family: var(--font-sans);
}

.cmd-kbd {
  background: #e2e8f0;
  color: #475569;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 700;
}

.cmd-palette-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
}

.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  transition: var(--transition);
}

.cmd-item:hover,
.cmd-item.selected {
  background: #eff6ff;
  color: #1d4ed8;
}

.cmd-item kbd {
  background: #f1f5f9;
  color: #64748b;
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

/* ==========================================================================
   UPWORKS.AI.STUDIO LANDING PAGE & HEADER NAVIGATION STYLES
   ========================================================================== */

/* Header Center Navigation Pills */
.header-center-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 4px 6px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
}

@media (max-width: 900px) {
  .header-center-nav {
    display: none;
  }
}

.nav-pill-btn {
  background: transparent;
  border: none;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  padding: 5px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition);
}

.nav-pill-btn:hover {
  color: #0f172a;
}

.nav-pill-btn.active {
  background: #ffffff;
  color: #4f46e5;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Landing Page Wrapper */
.landing-page-wrapper {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 10px 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Hero Section */
.landing-hero-section {
  text-align: center;
  padding: 48px 20px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: radial-gradient(circle at 50% 10%, rgba(79, 70, 229, 0.08) 0%, rgba(248, 250, 252, 0) 70%);
  border-radius: var(--radius-lg);
}

.landing-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 9999px;
  color: #4338ca;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.landing-hero-headline {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  max-width: 860px;
  margin: 0 auto 18px;
  letter-spacing: -0.03em;
}

@media (max-width: 768px) {
  .landing-hero-headline {
    font-size: 30px;
  }
}

.gradient-text {
  background: linear-gradient(135deg, #4f46e5 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-hero-subheadline {
  font-size: 17px;
  line-height: 1.6;
  color: #475569;
  max-width: 760px;
  margin: 0 auto 30px;
}

.landing-hero-subheadline strong {
  color: #0f172a;
}

.landing-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}

.btn-landing-primary {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-landing-primary small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
}

.btn-landing-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.btn-landing-secondary {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 14px 24px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.btn-landing-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.landing-trust-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-sep {
  color: #cbd5e1;
}

/* Generic Section Cards */
.landing-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-xs);
}

.landing-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.landing-section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #4f46e5;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.landing-section-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.landing-section-header p {
  font-size: 14.5px;
  color: #64748b;
}

/* Pain Points Grid */
.pain-points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.pain-point-item {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: var(--radius-md);
  padding: 22px 20px;
}

.pain-icon {
  font-size: 26px;
  margin-bottom: 12px;
}

.pain-point-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: #991b1b;
  margin-bottom: 8px;
}

.pain-point-item p {
  font-size: 13px;
  line-height: 1.5;
  color: #7f1d1d;
}

/* Superpowers Grid */
.superpowers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.superpower-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.superpower-card:hover {
  transform: translateY(-3px);
  border-color: #c7d2fe;
  box-shadow: 0 8px 24px -4px rgba(79, 70, 229, 0.12);
}

.superpower-badge {
  font-size: 10px;
  font-weight: 800;
  color: #4f46e5;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.superpower-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.superpower-icon {
  font-size: 24px;
}

.superpower-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.superpower-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 18px;
  flex: 1;
}

.superpower-footer {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.feature-tag {
  font-size: 11px;
  font-weight: 600;
  color: #4338ca;
  background: #eef2ff;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Comparison Table */
.table-responsive {
  overflow-x: auto;
}

.landing-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.landing-comparison-table th,
.landing-comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.landing-comparison-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.landing-comparison-table .highlight-col {
  background: #f0fdf4;
  color: #166534;
}

.landing-comparison-table th.highlight-col {
  background: #dcfce7;
  color: #14532d;
  font-weight: 800;
}

.cross-mark {
  color: #dc2626;
  margin-right: 4px;
}

.neutral-mark {
  margin-right: 4px;
}

.check-mark {
  color: #16a34a;
  margin-right: 4px;
}

/* Landing Pricing Cards */
.landing-pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.landing-price-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.landing-price-card.featured-pro {
  border: 2px solid #4f46e5;
  box-shadow: 0 10px 30px -4px rgba(79, 70, 229, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #4f46e5;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 9999px;
  white-space: nowrap;
}

.tier-top {
  margin-bottom: 20px;
}

.tier-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.tier-price-val {
  font-size: 38px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 10px;
}

.tier-period {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
}

.tier-tagline {
  font-size: 13px;
  color: #64748b;
}

.tier-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: #334155;
  flex: 1;
}

.tier-perks li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.guarantee-text {
  font-size: 11.5px;
  color: #64748b;
  text-align: center;
  margin-top: 10px;
}

/* Bottom CTA Banner */
.landing-bottom-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}

.landing-bottom-cta h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.landing-bottom-cta p {
  font-size: 15px;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 24px;
}

/* Architecture Steps Grid */
.architecture-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.arch-step-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.arch-step-item:hover {
  transform: translateY(-2px);
  border-color: #c7d2fe;
}

.arch-step-number {
  font-size: 11px;
  font-weight: 800;
  color: #4f46e5;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.arch-step-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.arch-step-item p {
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 16px;
  flex: 1;
}

.arch-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.arch-tag-list span {
  font-size: 10.5px;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
}




