:root {
  --bg: #f9fafb; /* Light gray background */
  --panel: #ffffff; /* White panels */
  --muted: #6b7280; /* Muted gray */
  --text: #111827; /* Dark text */
  --accent: #10b981; /* Vibrant cyan accent */
  --idea: #f3f4f6; /* Very light gray for ideas */
  --progress: #bae6fd; /* Light blue for progress */
  --execute: #93c5fd; /* Lighter blue for execute */
  --scale: #bbf7d0; /* Light green for scale */
  --card: #ffffff; /* White cards */
  --card-border: #d1d5db; /* Light gray border */
  --ring: rgba(6, 182, 212, 0.35); /* Cyan ring */
  --glass-opacity: 1; /* Slightly higher for light visibility */
  --blur-strong: blur(12px); /* Softer blur */
  --blur-medium: blur(6px);
  --border-glass: rgba(0, 0, 0, 0.1); /* Subtle border */
  --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  /*test*/
}

.primary {
  background: var(--accent);
  color: #ffffff; /* White text for better contrast on light accent */
  font-weight: 700;
  padding: 18px 40px;
  border-radius: 16px;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-soft);
}

.completed-empty {
  list-style: none;
  padding: 0;
  margin: 0;
}

.completed-empty p {
  margin: 0;
  text-align: center;
  padding: 4px;
}

.primary:hover {
  background: #0e7490; /* Darker cyan on hover */
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

.auth-container {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(243, 244, 246, 0.6); /* Lighter overlay */
  z-index: 50;
  padding: 24px;
  height: 100vh;
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}
.auth-header h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: 0.3px;
}
.auth-header .tagline {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.auth-forms {
  background: rgba(255, 255, 255, var(--glass-opacity));
  backdrop-filter: var(--blur-medium);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  width: 100%;
  display: grid;
  gap: 24px;
}
.auth-form {
  margin: 0;
}
.auth-form h2 {
  margin: 0 0 16px;
  font-size: 20px;
  text-align: center;
}
.auth-form .field {
  margin-bottom: 16px;
}
.auth-form input {
  width: 100%;
  background: rgba(243, 244, 246, 0.8); /* Light input bg */
  border: 1px solid var(--border-glass);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
}
.auth-form input:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

#newFunnelInline {
  background: rgba(243, 244, 246, var(--glass-opacity));
  backdrop-filter: var(--blur-medium);
  margin: 12px 16px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
}

#newFunnelInline .field {
  margin: 0;
}

#newFunnelInline input {
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-glass);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 6px;
}

#newFunnelInline .modal-footer {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}
#newFunnelInline .modal-footer button {
  flex: 1;
}
.auth-form button.primary {
  width: 100%;
  background: var(--accent);
  border: none;
  color: #ffffff;
  font-weight: 700;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}
.auth-message {
  text-align: center;
  color: var(--text);
  margin-top: 16px;
  font-size: 14px;
}
.auth-switch {
  text-align: center;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}
.auth-switch button {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}
.auth-switch button:hover {
  text-decoration: underline;
}

.app-header {
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  padding: 4px 12px;
  flex-shrink: 0;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap; /* Ensure side-by-side in desktop */
}
.header-center { flex: 1; display: flex; justify-content: center; }
#headerFunnelName {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  /*margin-left: auto;*/                /* THIS is the magic line if you have multiple items */
}
.funnel-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.app-header h1 { margin: 0 0 4px 0; font-size: 26px; letter-spacing: 0.3px; }
.app-header .tagline { margin: 0 0 4px 0; color: var(--muted); }
.completed-toggle, .logout-btn, .funnel-new-toggle, .funnel-selector-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(243, 244, 246, var(--glass-opacity));
  backdrop-filter: var(--blur-medium);
  border: 1px solid var(--border-glass);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.completed-toggle .chev { opacity: 0.8; }
.logout-btn { margin-left: 8px; }
.add-idea { display: flex; gap: 8px; }
.add-idea input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, var(--glass-opacity));
  border: 1px solid var(--border-glass);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
}
.add-idea input:focus { outline: 2px solid var(--ring); outline-offset: 2px; }
#collaboratorsList .collaborator-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(243, 244, 246, var(--glass-opacity));
  backdrop-filter: var(--blur-medium);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
}

#collaboratorsList .remove-btn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
}

#collaboratorsList .remove-btn:hover {
  background: #dc2626;
}

#collaboratorsList .owner-badge {
  background: #22c55e;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
}
.add-idea button {
  background: var(--accent);
  border: none;
  color: #ffffff;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.add-idea button:hover {
  filter: brightness(0.9); /* Slight darken for light mode */
}
.add-idea button:focus { outline: 2px solid var(--ring); outline-offset: 2px; }
.header-logo {
  height: 100%;              /* matches exact height of header-left */
  max-height: 60px;          /* optional: cap size so it doesn’t get huge */
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 16px; /* space between text and logo */
  flex-wrap: nowrap !important; /* allows mobile stacking if needed */
}
.header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 1;
  min-width: 0;
}

#shareBtn {
  background: var(--accent);
  border: none;
  color: #ffffff;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
#shareBtn:hover {
  filter: brightness(0.9);
}

#shareBtn:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

#guestSaveBtn {
  background: var(--accent);
  border: none;
  color: #ffffff;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
#guestSaveBtn:hover {
  filter: brightness(0.9);
}

#guestSaveBtn:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

#sendShareBtn {
  background: var(--accent);
  border: none;
  color: #ffffff;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
#sendShareBtn:hover {
  filter: brightness(0.9);
}

#sendShareBtn:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.funnel {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: center;
  gap: 12px;
  padding: 0 12px 24px 12px;
  height: calc(100vh - 72px);
  overflow: auto;
}

.funnel-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
}
.funnel-item:hover {
  background: rgba(0, 0, 0, 0.05);  /* Subtle hover for light mode */
}
.funnel-actions {
  display: flex;
  gap: 8px;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.funnel-item:hover .funnel-actions {
  opacity: 1;
}
.funnel-edit, .funnel-delete {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--muted);
}
.funnel-edit:hover { color: var(--accent); }
.funnel-delete:hover { color: #ef4444; }

.lane {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: none;
  border: 1px solid #d1d5db;
  min-height: 80px;
  border-radius: 16px; /* Increased for modern feel */
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  backdrop-filter: var(--blur-strong);
}

.lane-ideas { width: 100%; background: rgba(243, 244, 246, var(--idea)); }
.lane-progress { width: 85%; background: rgba(224, 242, 254, var(--progress)); }
.lane-execute { width: 70%; background: rgba(191, 219, 254, var(--execute)); }
.lane-scale { width: 55%; background: rgba(220, 252, 231, var(--scale)); }
.lane-complete { max-width: 420px; background: rgba(243, 244, 246, var(--idea)); }
.lane-complete .complete-drop-note { padding: 12px 14px; color: var(--muted); font-size: 12px; }

.lane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px;
  background: rgba(0,0,0,0.15); /* Subtle for light */
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.lane-header h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.2px;
}
.lane-capacity { color: var(--muted); font-variant-numeric: tabular-nums; }

.editable-title {
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
  padding: 2px 4px;
  margin: -2px -4px;
}
.editable-title:hover {
  background: rgba(0, 0, 0, 0.05);
  outline: 1px solid rgba(0, 0, 0, 0.1);
}
.editable-title:focus {
  background: rgba(0, 0, 0, 0.1);
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.editable-title:focus:not(:focus-visible) {
  outline: none;
}

.cards { 
  list-style: none; 
  flex: 1; 
  margin: 0; 
  padding: 12px; 
  display: grid; 
  gap: 10px; 
} 

.lane-ideas .cards { grid-template-columns: repeat(8, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.lane-progress .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.lane-execute .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.lane-scale .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }

.card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: var(--blur-medium);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: element;
  touch-action: auto;  
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}
.card:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card:active { cursor: grabbing; }
.card.dragging { 
  opacity: 0.7 !important; 
  transform: rotate(1deg) scale(1.01); 
  z-index: 9999;
  box-shadow: 0 12px 28px rgba(0,0,0,0.15); /* Softer shadow */ }

/* Keep drag cursor stable and prevent card internals from becoming "not-allowed" hover zones during drag */
html.card-dragging,
html.card-dragging *,
body.card-dragging,
body.card-dragging * {
  cursor: grabbing !important;
}

body.card-dragging .card .title,
body.card-dragging .card .meta,
body.card-dragging .card .progress,
body.card-dragging .card .progress * {
  pointer-events: none;
}

.card .title { margin: 0; font-weight: 600; font-size: 14px; }
.card .meta { margin: 6px 0 0 0; font-size: 12px; color: var(--muted); }

.lane.drop-target { 
  background: rgba(6, 182, 212, 0.1);
  outline: 2px dashed var(--ring); 
  outline-offset: -6px; }
.lane.full { filter: grayscale(0.3) brightness(0.9); }
.completed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.completed-card { background: rgba(243, 244, 246, 0.8); border: 1px solid rgba(209, 213, 219, 0.5); border-radius: 8px; padding: 8px 10px; cursor: pointer; backdrop-filter: var(--blur-medium); }
.completed-card .title { margin: 0; font-size: 13px; font-weight: 600; }
.completed-card .meta { margin: 4px 0 0 0; font-size: 11px; color: var(--muted); }

.progress {
  margin-top: 10px;
  height: 6px;
  background: #d1d5db; /* Light bg */
  border: 1px solid #9ca3af;
  border-radius: 999px;
  overflow: hidden;
}
.progress > .fill {
  height: 100%;
  width: 0%;
  background: #10b981;
  transition: width 160ms ease;
}
.card .progress { margin-top: auto; }

.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.submenu {
  background: rgba(255, 255, 255, var(--glass-opacity));
  backdrop-filter: var(--blur-strong);
  border-radius: 12px;
  margin: 12px 16px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-soft);
}

.submenu.hidden {
  display: none !important;
}

/* Optional: make it look exactly like your old dropdown */
.submenu .p-4 {
  padding: 1rem;
}

.submenu .border-b,
.submenu .border-t {
  border-color: rgba(209, 213, 219, 0.5) !important;
}

.submenu h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.submenu #funnelsList {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
  border-color: #d1d5db00 !important;
}

.submenu #planInfo,
.submenu #userEmail {
  font-size: 0.875rem;
}
.menu-item {
  width: 100%;
  max-width: 420px;
  margin: 12px auto;
  padding: 12px 16px;
  font-size: 15px;
  text-align: center;
  background: transparent;           /* ← your cyan accent */
  color: var(--text);                       /* ← dark text */
  border: 1px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  font-weight: 500;
}

a.menu-item,
a.menu-item:link,
a.menu-item:visited {
  text-decoration: none;
  font-weight: 500;
  color: var(--text);
}
.menu-header {
  padding: 20px;
  border-bottom: 1px solid rgba(209, 213, 219, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.menu-header h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
}
.menu-list {
  list-style: none;           /* removes bullets */
  padding: 0;
  margin: 0;
}

.menu-list li {
  margin: 0;
  padding: 0;
}
.menu-list li::marker {
  display: none;              /* extra safety */
}
.menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #94a3b8;
  cursor: pointer;
}
.menu-item:hover,
.menu-item:focus-visible {
  background: var(--accent) !important;
  transform: translateY(-1px);
  /*box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);*/
  color: #ffffff !important;
}

.menu-item:active {
  transform: translateY(0);
}

.funnelDropdown {
  position: fixed;
  right: 16px; top: 60px; 
  width: 360px; 
  max-height: 60vh; 
  overflow: auto; 
  background: rgba(255, 255, 255, var(--glass-opacity)); 
  border: 1px solid var(--border-glass); 
  border-radius: 10px; 
  box-shadow: var(--shadow-soft); 
  padding: 10px; 
  z-index: 60;
  backdrop-filter: var(--blur-medium);
}
.funnelDropdown[hidden] { display: none !important; }

.completed-panel { 
  position: fixed; 
  right: 16px; top: 60px; 
  width: 360px; 
  max-height: 60vh; 
  overflow: auto; 
  background: rgba(255, 255, 255, var(--glass-opacity)); 
  border: 1px solid var(--border-glass); 
  border-radius: 10px; 
  box-shadow: var(--shadow-soft); 
  padding: 10px; 
  z-index: 60; 
  backdrop-filter: var(--blur-medium);
}
.completed-panel[hidden] { display: none !important; }

#completed-panel.submenu {
  display: block !important;
  background: rgba(255, 255, 255, var(--glass-opacity));
  backdrop-filter: var(--blur-strong);
  border-radius: 12px;
  margin: 12px 16px;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

#completed-panel.submenu.hidden {
  display: none !important;
}

#funnelDropdown.submenu {
  display: block !important;
  background: rgba(255, 255, 255, var(--glass-opacity));
  backdrop-filter: var(--blur-strong);
  border-radius: 12px;
  margin: 12px 16px;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

#funnelDropdown.submenu.hidden {
  display: none !important;
}

#completedMenuList {
  list-style: none;
  margin: 0;
  padding: 8px;
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

#completedMenuList .completed-card {
  background: rgba(243, 244, 246, var(--glass-opacity));
  backdrop-filter: var(--blur-medium);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

#completedMenuList .completed-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

#completedMenuList .completed-card .title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

#completedMenuList .completed-card .meta {
  margin: 4px 0 0 0;
  font-size: 11px;
  color: var(--muted);
}

#completedMenuList .completed-empty {
  background: rgba(255, 255, 255, 0.35);
  border: 1px dashed var(--border-glass);
  border-radius: 8px;
  padding: 8px;
}

/* Make sure your items are visible */
#funnelsList .funnel-item {
  background: rgba(243, 244, 246, var(--glass-opacity));
  backdrop-filter: var(--blur-medium);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

#funnelsList .funnel-info {
  cursor: pointer;
}

#funnelsList .funnel-actions button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
#funnelsList .funnel-actions button:hover {
  background: rgba(209, 213, 219, 0.5);
}
.funnel-actions svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  display: block !important;
  stroke: currentColor !important;
  color: #9ca3af !important;
}

.funnel-share:hover svg  { color: var(--accent) !important; }
.funnel-edit:hover svg   { color: #06b6d4 !important; }
.funnel-delete:hover svg { color: #ef4444 !important; }

#inviteResult {
  text-align: center;
}

.invite-result-label {
  margin: 0 0 8px 0;
  color: #22c55e;
  font-size: 0.9rem;
  font-weight: 600;
}

.invite-link-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, var(--glass-opacity));
  border: 1px solid var(--border-glass);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
  margin: 0;
}

.invite-copy-btn {
  margin-top: 10px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.invite-copy-btn {
  display: inline-block;
}

.checklist-limit-info {
  margin: 8px 0 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
}

.invite-copy-btn:hover {
  filter: brightness(0.9);
}


/*
.funnel-selector-toggle {
  padding: 10px 16px;
  font-size: 15px;
  text-align: center;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  justify-content: center;
}

.funnel-new-toggle {
  padding: 10px 16px;
  font-size: 15px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  min-width: 130px;
}*/

/* Mobile-only and desktop-only classes */
.mobile-only { display: none; }
.desktop-only { display: inline-flex; }

#header-right {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 16px;                    /* space between name and burger */
  }
.header-right {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 16px;
}

/*
@media (max-width: 900px) {
  .mobile-only { display: block; }
  .desktop-only { display: none; }
  .lane-ideas { max-width: 100%; }
  .lane-progress { max-width: 92%; }
  .lane-execute { max-width: 84%; }
  .lane-scale { max-width: 76%; }
}*/
.forgot-link {
  display: block;
  margin-top: 24px;
  text-align: center;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: #0e7490;
  text-decoration: underline;
}
/* Reset Password Section */
.reset-section {
  margin-top: 32px;
}

.reset-section.show {
  display: block;
}

.reset-prompt {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.reset-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(243, 244, 246, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 20px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.reset-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.button-center {
  display: flex;
  margin: 8px;
  justify-content: space-between;
  gap: 16px;
  flex-direction: row;

}

/* Buttons */
.reset-btn-primary {
  padding: 12px 28px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.reset-btn-primary:hover {
  background: #0e7490;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.reset-btn-primary:active {
  transform: translateY(0);
}

.reset-btn-cancel {
  padding: 12px 28px;
  background: rgba(243, 244, 246, 0.8);
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reset-btn-cancel:hover {
  background: #e5e7eb;
  border-color: var(--border-glass);
}

.reset-btn-cancel:active {
  transform: translateY(1px);
}

.reset-message {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

.reset-message.success {
  color: #22c55e;
}

.reset-message.error {
  color: #ef4444;
}

/* Position mobile hamburger top-right, aligned with title */
#hamburgerBtnMobile {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  margin: 0;
}

.inline-wrapper {
  margin: 0 0 12px 0;
  padding-left: 12px;
  padding-right: 12px;
}
.inline-edit,
.inline-delete {
  background: rgba(255, 255, 255, 0.8);
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--blur-medium);
}
.inline-edit:not(.hidden),
.inline-edit input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(243, 244, 246, 0.8);
  border: 2px solid rgba(209, 213, 219, 0.5);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border 0.2s;
}
.inline-edit input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}
.inline-delete:not(.hidden) {
  display: block !important;
}
.inline-actions {
  display: flex;
  justify-content: flex-end;  /* right-aligned */
  gap: 12px;
  margin-top: 16px;
}
.inline-action-wrapper {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 16px;
  margin: 8px 0 16px 0;
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--blur-medium);
}

@media (max-width: 768px) {
  .mobile-only { display: block; }
  .desktop-only { display: none; }
  .header-row {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }
  .hamburger-btn {
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: var(--blur-medium);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 12px;
    color: var(--text);
    cursor: pointer;
    /*display: flex;*/
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    transition: all 0.2s ease;
  }
  .header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    position: relative;
    min-height: 48px;
    padding-right: 60px;
    gap: 16px;
    flex-wrap: nowrap !important;
  }
  .header-left h1 {
    font-size: 22px;
    margin: 0;
    display: block;
    line-height: 1.2;
    flex-shrink: 1;
    min-width: 0;
  }
  .main-menu {
    transform: translateY(-100%);
  }
  .main-menu.open {
    transform: translateY(0);
  }
  .header-left .tagline {
    font-size: 14px;
    width: 100%;
    text-align: left;
    margin: 6px 0 0;
    display: block;
    line-height: 1.2;
    flex-shrink: 1;
    min-width: 0;
  }
  #mainMenu {
  width: 100%;
  max-width: none;
  border-left: none;
  transform: translateY(-100%);
  }
  #mainMenu.open { transform: translateY(0); }
  .header-center {
    display: block;
    width: 100%;
    margin-top: 12px;
  }
  .add-idea {
    width: 100%;
  }
  /*#header-right {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 16px;                    /* space between name and burger
  }
  .header-right {
    display: flex !important;
    flex-direction: row !important;
    width: 100%;
    margin-top: 12px;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 16px;
  }*/
  .completed-toggle {
    width: 100%;
    max-width: 420px;
    margin: 12px auto 0;
    padding: 10px 14px;
    font-size: 15px;
    text-align: center;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
  }
  .completed-toggle .chev {
    margin-left: 6px;
  }
  .completed-panel {
    position: static;
    width: 100%;
    max-width: 420px;
    margin: 12px auto;
    padding: 12px;
  }
  .funnel {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding-bottom: 60px;
  }
  .funnel-selector-toggle,
  .funnel-new-toggle {
    width: 100%;
    max-width: 420px;
    margin: 8px auto;
    display: block;
  }
  .lane-ideas, .lane-progress, .lane-execute, .lane-scale {
    width: 100% !important;
    max-width: 100% !important;
  }
  .cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
    min-height: auto;
  }
  .card {
    flex-shrink: 0;
  }
  .card .title { font-size: 16px; }
  .card .meta { font-size: 13px; }
  .modal {
    width: min(820px, 100%);
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(4px);
    overflow: hidden;
  }
  body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .modal-body {
    overflow-y: auto;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(243, 244, 246, 0.6);
  z-index: 50;
  padding: 24px;
}
.modal-overlay[hidden] { display: none !important; }

.newFunnelOverlay .modal {
  width: min(400px, 90%);
}

.share-modal{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  z-index: 1000;
}
.share-modal-content {
  background: rgba(243, 244, 246, var(--glass-opacity));
  backdrop-filter: var(--blur-strong);
  border-radius: 24px;
  padding: 48px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}
.share-modal-content:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
}

.share-modal-content h3 {
  font-size: 2.25rem;
  margin-bottom: 12px;
}

.share-modal-content p {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 32px;
}
.shareEmailInput {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, var(--glass-opacity));
  border: 1px solid var(--border-glass);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
  margin: 10px;
}
.shareEmailInput:focus { outline: 2px solid var(--ring); outline-offset: 2px; }
.shareasdfasdfadfEmailInput {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.shareEmaiasdfasdfsdflInput:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

.modal-actions {
  margin: 32px 0;
}
.success-message {
  background: rgba(187, 247, 208, 0.8);
  color: #22c55e;
  padding: 20px;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 500;
  backdrop-filter: var(--blur-medium);
}

#collaboratorsSection h4 {
  font-size: 1.25rem;
}

#collaboratorsList .collaborator-item {
  background: rgba(255, 255, 255, 0.8);
  padding: 16px 20px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-glass);
  margin-bottom: 12px;
  backdrop-filter: var(--blur-medium);
}

.remove-btn {
  background: #ef4444;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

.remove-btn:hover {
  background: #dc2626;
}


.modal {
  width: min(820px, 100%);
  max-height: 90vh;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(4px);
  overflow: hidden;
}
.modal.hidden {
  display: none !important;
}
.modal-content {
  background: rgba(243, 244, 246, var(--glass-opacity));
  color: var(--text);
  padding: 32px;
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  position: relative;
  backdrop-filter: var(--blur-strong);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(0,0,0,0.01);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.modal-header h3 { margin: 0; font-size: 18px; }
.modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { color: var(--text); }

.modal-body { padding: 16px; display: grid; gap: 16px; flex: 1 1 auto; overflow: auto; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field input[type="text"] {
  width: 100%;
  background: rgba(255, 255, 255, var(--glass-opacity));
  border: 1px solid var(--border-glass);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
}
.field input[type="text"]:focus { outline: 2px solid var(--ring); outline-offset: 2px; }

.checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
}
.add-check { display: flex; gap: 10px; min-width: 24px; }
.add-check input { flex: 1; min-width: 0; }
.add-check button {
  background: var(--accent);
  border: none;
  color: #ffffff;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  min-width: 75px;
}

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.check {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(243, 244, 246, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  backdrop-filter: var(--blur-medium);
}
.check input[type="checkbox"] { width: 16px; height: 16px; }
.check .label-text { color: var(--text); }
.check.completed .label-text { color: #9ca3af; text-decoration: line-through; }
.check .completed-at { margin-left: 6px; color: #94a3b8; font-size: 11px; font-style: italic; text-decoration: none; }
.check .del { background: transparent; border: none; color: #ef4444; cursor: pointer; padding: 4px; }
.label-text[contenteditable]:focus {
  outline: 1px solid var(--accent);
  background: rgba(0,0,0,0.05);
}
.check.dragging {
  opacity: 0.7;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.checklist-container:hover {
  background: rgba(0,0,0,0.02);
}
.check.drop-placeholder {
  border: 2px dashed var(--muted);
  background: rgba(0,0,0,0.05);
}

.card.drop-placeholder {
  border: 2px dashed var(--ring);
  background: rgba(0,0,0,0.05);
  min-height: 80px; /* For empty lanes */
}

.inline-edit .inline-actions,
.inline-delete .inline-actions {
  display: flex !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-top: 16px !important;
  align-items: center;
  padding: 0 6px !important;
}
.confirm-edit, .confirm-delete,
.cancel-edit, .cancel-delete {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 80px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.confirm-edit, .confirm-delete {
  background: var(--accent);
  color: #ffffff;
}

.confirm-edit:hover {
  background: #0e7490;
}

.confirm-delete {
  background: #dc2626;
  color: white;
}

.confirm-delete:hover {
  background: #b91c1c;
}

.cancel-edit, .cancel-delete {
  background: #e5e7eb;
  color: var(--text);
}

.cancel-edit:hover, .cancel-delete:hover {
  background: #d1d5db;
  color: var(--text);
}
.confirm-edit:hover { background: #0e7490 !important; }
.confirm-delete:hover { background: #ef4444 !important; color: white !important; }
.cancel-edit:hover,
.cancel-delete:hover { background: #d1d5db !important; color: var(--text) !important; }

.history { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #e5e7eb; color: var(--muted); font-size: 12px; display: grid; gap: 6px; }
.history.hidden { display: none; }

.modal-footer {
  display: flex;
  justify-content: space-between; /* Changed from flex-end */
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.modal-footer .delete-btn {
  background: rgba(0,0,0,0.15) !important;
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
}

.modal-footer .primary { 
  background: var(--accent); 
  border: none; 
  color: #ffffff; 
  font-weight: 700; 
  padding: 8px 12px; 
  border-radius: 8px; 
  cursor: pointer;
  min-width: 75px;
  min-height: 35px;
}
.modal-footer button:not(.primary) { 
  background: transparent; 
  border: 1px solid #e5e7eb; 
  color: var(--text); 
  padding: 8px 12px; 
  border-radius: 8px; 
  cursor: pointer; 
  min-width: 75px;
  min-height: 35px;
}

.confirm-overlay {
  display: grid;
  place-items: center;
  background: rgba(243, 244, 246, 0.6);
  z-index: 9999;
}
.confirm-modal {
  width: min(400px, 90%);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-glass);
  z-index: 9999 !important; 
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--blur-medium);
}
.confirm-modal .modal-body {
  padding: 16px;
  text-align: center;
}
.confirm-modal h3 {
  font-size: 16px;
  margin: 0 0 16px;
}
.confirm-buttons {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.confirm-buttons .delete-btn {
  background: #ef4444; /* Off-red */
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
}
.confirm-buttons .primary {
  background: var(--accent); /* Dark blue */
  border: none;
  color: #ffffff;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
}

.show-completed-btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 12px 0 0;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.show-completed-btn:hover {
  color: var(--accent);
}
.show-completed-btn::after {
  content: "▾";
  font-size: 12px;
  color: var(--muted);
}
.show-completed-btn[aria-expanded="true"]::after {
  content: "▴";
}
.show-history-btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 10px 0 0;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.show-history-btn:hover {
  color: var(--accent);
}
.show-history-btn::after {
  content: "▾";
  font-size: 12px;
  color: var(--muted);
}
.show-history-btn[aria-expanded="true"]::after {
  content: "▴";
}
.completed-checklist {
  display: none;
}
.completed-checklist:not([hidden]) {
  display: grid;
}
.completed-checklist.hidden { display: none; }

.hidden {
  display: none !important;
}

.hamburger-btn {
  background: rgba(0, 0, 0, 0.05);
  backdrop-filter: var(--blur-medium);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  cursor: pointer;
  /*display: flex;*/
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  transition: all 0.2s ease;
}

.hamburger-btn:hover {
  background: rgba(209, 213, 219, 0.9);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.main-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 90vw;
  height: 100vh;
  background: rgba(255, 255, 255, var(--glass-opacity));
  border-left: 1px solid rgba(209, 213, 219, 0.5);
  box-shadow: -8px 0 32px rgba(0,0,0,0.1);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  backdrop-filter: var(--blur-strong);
}
.main-menu a {
  text-decoration: none !important;  /* removes underline */
  color: inherit;                    /* keeps text color */
}
.main-menu a:hover {
  text-decoration: none;             /* no underline on hover */
}

.main-menu.open {
  transform: translateX(0);
}

/* Main Menu — Sidebar on desktop, full-screen on mobile */
#mainMenu {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 90vw;
  height: 100vh;
  background: rgba(255, 255, 255, var(--glass-opacity));
  border-left: 1px solid rgba(209, 213, 219, 0.5);
  box-shadow: -8px 0 32px rgba(0,0,0,0.1);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  backdrop-filter: var(--blur-strong);
}
#mainMenu.open {
  transform: translateX(0);
}

/* A2HS Popup */
.a2hs-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, var(--glass-opacity));
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 16px 20px;
  max-width: 90%;
  text-align: center;
  box-shadow: var(--shadow-soft);
  z-index: 1000;
  animation: slideUp 0.4s ease-out;
  backdrop-filter: var(--blur-medium);
}
.a2hs-popup p {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--text);
}
.a2hs-popup button {
  background: var(--accent);
  border: none;
  color: #ffffff;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 12px;
  margin: 0 6px;
  font-size: 14px;
}
.a2hs-popup button:last-child {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text);
}

@keyframes slideUp {
  from { transform: translateX(-50%) translateY(100px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

#toast {
  z-index: 10000 !important;
  position: fixed !important;
  pointer-events: none;
  background: rgba(0, 0, 0, 0);
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
}

#toastInner {
  background: rgba(255, 255, 255, .75);
  pointer-events: none;
  width: 300px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
  border-radius:30px;
}

/* Pricing Page */
.pricing-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
  /*margin-top: 40px;*/
  width: 100%;
  max-width: 1100px;
  margin-top: 50px;
  /*flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;*/
}

.pricing-card {
  background: rgba(255, 255, 255, var(--glass-opacity));
  border-radius: 24px;
  padding: 12px;
  text-align: center;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  backdrop-filter: var(--blur-strong);
}
.pricing-card a.cta {
  text-decoration: none !important;
}

.pricing-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
}

.pricing-card h2 {
  font-size: 2.25rem;
  margin-bottom: 1px;
}

.price {
  font-size: 4rem;
  font-weight: 800;
  margin: 12px 0;
}

.price small {
  font-size: 1.25rem;
  font-weight: normal;
  color: var(--muted);
}

.features {
  list-style: none;
  padding: 0;
  margin: 40px 0;
  text-align: left;
}

.features li {
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.125rem;
  border-bottom: 1px solid rgba(209, 213, 219, 0.5);
}

.features li:last-child {
  border-bottom: none;
}

.features svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

.cta {
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  padding: 18px 40px;
  border-radius: 16px;
  font-size: 1.125rem;
  cursor: pointer;
  border: none;
  width: 100%;
  transition: background 0.2s;
}

.cta:hover {
  background: #0e7490;
}

.cta.free {
  background: #e5e7eb;
  color: var(--muted);
  cursor: not-allowed;
}

.popular {
  position: relative;
  border-color: var(--accent) !important;
}

.popular::before {
  content: "MOST POPULAR";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #ffffff;
  padding: 8px 24px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: bold;
}

.back-to-app-container {
  margin-top: 16px;
  margin-bottom: 12px;
  text-align: center;
}

.back-to-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 12px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, var(--glass-opacity));
  border: 1px solid var(--border-glass);
  transition: all 0.2s;
  backdrop-filter: var(--blur-medium);
}

.back-to-app:hover {
  background: rgba(209, 213, 219, 0.8);
  color: var(--text);
}

.back-to-app svg {
  width: 20px;
  height: 20px;
}

.discount {
  background: var(--accent);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-left: 8px;
}

.annual-saving {
  font-size: 1rem;
  color: #22c55e;
  margin-top: 8px;
}

.annual-price.hidden { display: none; }