:root {
  /* === ENHANCED COLOR PALETTE === */
  /* Business Theme - Deep Emerald & Warm Accents */
  --brand-green-dark: #047857;
  --brand-green: #10b981;
  --brand-green-light: #34d399;
  --brand-green-glow: rgba(16, 185, 129, 0.4);

  /* Organization Theme - Rich Sapphire & Cool Accents */
  --brand-blue-dark: #1e40af;
  --brand-blue: #3b82f6;
  --brand-blue-light: #60a5fa;
  --brand-blue-glow: rgba(59, 130, 246, 0.4);

  /* Neutral Palette with Depth */
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  /* Surface Colors */
  --surface-dark: #0a0f1e;
  --surface-card: rgba(255, 255, 255, 0.03);
  --surface-card-hover: rgba(255, 255, 255, 0.06);
  --white: #ffffff;

  /* Text Hierarchy */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-inverse: #f8fafc;

  /* Dynamic Theme Variable */
  --theme-primary: var(--brand-green);
  --theme-primary-dark: var(--brand-green-dark);
  --theme-primary-light: var(--brand-green-light);
  --theme-glow: var(--brand-green-glow);
  --theme-primary-rgb: 16, 185, 129;

  /* === SPACING & SIZING === */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* === SOPHISTICATED SHADOWS === */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 30px var(--theme-glow);
  --shadow-glow-strong: 0 0 50px var(--theme-glow);

  /* === TRANSITIONS === */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === THEME CLASSES === */
body.theme-business {
  --theme-primary: var(--brand-green);
  --theme-primary-dark: var(--brand-green-dark);
  --theme-primary-light: var(--brand-green-light);
  --theme-glow: var(--brand-green-glow);
  --theme-primary-rgb: 16, 185, 129;
}

body.theme-org {
  --theme-primary: var(--brand-blue);
  --theme-primary-dark: var(--brand-blue-dark);
  --theme-primary-light: var(--brand-blue-light);
  --theme-glow: var(--brand-blue-glow);
  --theme-primary-rgb: 59, 130, 246;
}

/* Utility Text Colors */
.text-green {
  color: var(--brand-green);
  text-shadow: 0 0 20px var(--brand-green-glow);
}

.text-blue {
  color: var(--brand-blue);
  text-shadow: 0 0 20px var(--brand-blue-glow);
}

/* === GLOBAL RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--slate-50);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Atmospheric background with geometric grid pattern */
/* body::before commented out to fix dark mode on landing page */
/*
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(241, 245, 249, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%),
    repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.03) 0px, transparent 1px, transparent 40px, rgba(148, 163, 184, 0.03) 41px),
    repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.03) 0px, transparent 1px, transparent 40px, rgba(148, 163, 184, 0.03) 41px);
  z-index: -2;
  pointer-events: none;
}
*/

/* Ambient gradient orbs */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
  animation: ambientPulse 8s ease-in-out infinite alternate;
}

@keyframes ambientPulse {
  from {
    opacity: 0.6;
  }

  to {
    opacity: 1;
  }
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

p {
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.7;
}

strong {
  font-weight: 700;
  color: var(--text-primary);
}

/* === UTILITY CLASSES === */
.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.text-center {
  text-align: center;
}

/* === SCROLLBAR STYLING === */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--slate-100);
}

::-webkit-scrollbar-thumb {
  background: var(--slate-300);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--theme-primary);
}/* === ANIMATIONS === */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

/* === BUTTONS === */
.btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--theme-primary-dark), var(--theme-primary));
  color: white;
  box-shadow: 0 4px 12px var(--theme-glow), var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px var(--theme-glow), var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-cta {
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-light));
  color: white;
  font-weight: 700;
  box-shadow: 0 6px 16px var(--theme-glow), var(--shadow-lg);
}

.btn-cta:hover {
  box-shadow: 0 8px 24px var(--theme-glow), var(--shadow-xl);
  transform: translateY(-3px);
}

.btn-business-cta {
  background: linear-gradient(135deg, var(--brand-green-dark), var(--brand-green));
  color: white;
  font-weight: 700;
  box-shadow: 0 6px 16px var(--brand-green-glow), var(--shadow-lg);
}

.btn-business-cta:hover {
  box-shadow: 0 8px 24px var(--brand-green-glow), var(--shadow-xl);
  transform: translateY(-3px);
}

.btn-org-cta {
  background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue));
  color: white;
  font-weight: 700;
  box-shadow: 0 6px 16px var(--brand-blue-glow), var(--shadow-lg);
}

.btn-org-cta:hover {
  box-shadow: 0 8px 24px var(--brand-blue-glow), var(--shadow-xl);
  transform: translateY(-3px);
}

.btn-white {
  background: white;
  color: var(--theme-primary);
  border: 2px solid transparent;
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  border-color: var(--theme-primary);
  box-shadow: 0 4px 12px var(--theme-glow), var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--theme-primary);
  border: 2px solid var(--theme-primary);
}

.btn-outline:hover {
  background: var(--theme-primary);
  color: white;
  box-shadow: 0 4px 12px var(--theme-glow);
}

.btn-transparent {
  background: transparent;
  color: var(--text-secondary);
  border: none;
}

.btn-transparent:hover {
  color: var(--theme-primary);
  background: rgba(0, 0, 0, 0.03);
}

.btn-login {
  background: var(--slate-100);
  color: var(--text-primary);
  font-weight: 600;
}

.btn-login:hover {
  background: var(--slate-200);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-danger:hover {
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
  transform: translateY(-2px);
}

.btn-danger:hover {
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
  transform: translateY(-2px);
}

.text-link-action {
  color: var(--brand-blue);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: all 0.2s ease;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.text-link-action:hover {
  color: var(--brand-blue-dark);
  border-bottom-color: var(--brand-blue);
  background: rgba(59, 130, 246, 0.05);
  border-radius: 4px;
  padding: 2px 4px;
  margin: -2px -4px;
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.btn-text {
  background: transparent;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
}

.btn-text:hover {
  background: rgba(255, 255, 255, 0.1);
}

.full-width {
  width: 100%;
  justify-content: center;
}

/* === GLASS CARD === */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-base);
}

.glass-card:hover {
  box-shadow: var(--shadow-2xl), 0 0 0 1px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

/* === FORMS === */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: white;
  transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px var(--theme-glow);
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
  font-family: 'Work Sans', sans-serif;
}

/* Checkbox and Radio Groups */
.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-group label,
.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--transition-base);
}

.checkbox-group label:hover,
.radio-group label:hover {
  color: var(--theme-primary);
}

.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--theme-primary);
}

/* Proposal type badges */
.proposal-type-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.proposal-type-badge.new {
  background: #e3f2fd;
  color: #1976d2;
}

.proposal-type-badge.linked {
  background: #f3e5f5;
  color: #7b1fa2;
}

/* Origin badges */
.origin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  background: #f5f5f5;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
}

/* === MODALS === */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  max-width: 600px;
  width: 100%;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

/* Smooth scrolling for modal content */
.modal-card::-webkit-scrollbar {
  width: 8px;
}

.modal-card::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.modal-card::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.modal-card::-webkit-scrollbar-thumb:hover {
  background: #999;
}

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

.modal-header h2 {
  margin: 0;
  color: var(--text-primary);
}

.btn-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fee2e2;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #b91c1c;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  flex-shrink: 0;
  /* Prevents squashing into ellipse */
  line-height: 1;
}

.btn-close:hover {
  background: #dc2626;
  color: white;
  transform: rotate(90deg);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.form-step h3 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.btn-group {
  display: flex;
  gap: 1rem;
}

/* === CONFIRMATION MODAL === */
.confirm-modal-card {
  max-width: 450px;
  width: 100%;
  padding: 3rem;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  text-align: center;
  animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.confirm-modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
}

.confirm-modal-card h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.confirm-modal-card p {
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.confirm-modal-actions {
  display: flex;
  gap: 1rem;
}

.confirm-modal-actions .btn {
  flex: 1;
}

/* === NOTIFICATION BANNER === */
.notification-banner {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  min-width: 300px;
  max-width: 500px;
  padding: 1.25rem 2rem;
  background: var(--slate-900);
  color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2xl);
  z-index: 10001;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-banner.show {
  transform: translateX(-50%) translateY(0);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.notification-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.notification-banner.success .notification-icon {
  color: var(--brand-green);
}

.notification-banner.error .notification-icon {
  color: #ef4444;
}

.notification-banner.info .notification-icon {
  color: var(--brand-blue);
}

.notification-message {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

/* === CUSTOM FORM COMPONENTS === */

/* Custom Dropdown */
.custom-dropdown {
  position: relative;
  width: 100%;
}

.custom-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  font-weight: 500;
  color: var(--text-primary);
  user-select: none;
}

.custom-dropdown-trigger:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px var(--brand-blue-glow);
}

.custom-dropdown-options {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: 50;
  display: none;
  max-height: 250px;
  overflow-y: auto;
  animation: scaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top center;
}

.custom-dropdown-options.show {
  display: block;
}

.custom-dropdown-option {
  padding: 0.75rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background 0.15s ease;
  border-bottom: 1px solid var(--slate-100);
}

.custom-dropdown-option:last-child {
  border-bottom: none;
}

.custom-dropdown-option:hover {
  background: var(--slate-50);
}

.custom-dropdown-option .color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.custom-dropdown-option-content {
  display: flex;
  flex-direction: column;
}

.custom-dropdown-option-title {
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.custom-dropdown-option-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Custom Toggle Switch for Add/Remove */
.custom-toggle-container {
  display: flex;
  background: var(--slate-100);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
  width: fit-content;
}

.custom-toggle-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.custom-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.5);
}

.custom-toggle-btn.active.add {
  background: #dcfce7;
  color: #166534;
  box-shadow: var(--shadow-sm);
}

.custom-toggle-btn.active.remove {
  background: #fee2e2;
  color: #991b1b;
  box-shadow: var(--shadow-sm);
}

/* === INLINE SUB-NAVIGATION === */
.sub-nav-inline {
  display: flex;
  gap: 1.5rem;
  margin-left: 2rem;
  padding-left: 2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  height: 100%;
  align-items: center;
}

.sub-nav-inline .btn-text {
  opacity: 0.6;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.5rem 0;
}

.sub-nav-inline .btn-text:hover {
  opacity: 1;
  background: transparent;
}

.active-sub-tab {
  opacity: 1 !important;
  font-weight: 700 !important;
  border-bottom-color: white !important;
}

/* === GOAL SELECTION UI === */

/* Goal Mode Toggle Cards */
.goal-mode-card {
  background: #f8f9fa;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.goal-mode-card:hover {
  background: #e3f2fd;
  border-color: var(--brand-blue);
}

.goal-mode-card.selected {
  background: #f0f9ff;
  border-color: var(--brand-blue);
}

/* Individual Goal Selection Cards */
.goal-selection-card {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.goal-selection-card:hover {
  background: #f8f9fa;
  border-color: var(--brand-blue);
}

.goal-selection-card.selected {
  background: #f0f9ff;
  border-color: var(--brand-blue);
}

.goal-selection-card .goal-radio-dot {
  transition: opacity 0.2s;
  opacity: 0;
}

.goal-selection-card.selected .goal-radio-dot {
  opacity: 1 !important;
}

.goal-selection-card .goal-radio {
  transition: all 0.2s;
  border-color: #e5e7eb;
}

.goal-selection-card.selected .goal-radio {
  border-color: var(--brand-blue);
}

.goal-selection-card:hover .goal-radio {
  border-color: var(--brand-blue);
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {

  /* === BUTTONS === */
  .btn {
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
    min-height: 44px;
    /* Touch-friendly target */
  }

  .btn-sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.8rem;
    min-height: 40px;
  }

  .btn-large {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }

  /* === FORMS === */
  .form-group {
    margin-bottom: 1.25rem;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .form-input,
  .form-select {
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
    min-height: 44px;
    /* Touch-friendly */
  }

  textarea.form-input {
    min-height: 100px;
  }

  .checkbox-group,
  .radio-group {
    gap: 0.65rem;
  }

  .checkbox-group label,
  .radio-group label {
    font-size: 0.85rem;
  }

  /* === MODALS === */
  .modal-overlay {
    padding: 1rem;
    /* Reduce padding on mobile */
  }

  .modal-card {
    max-width: 100%;
    width: 100%;
    padding: 2rem 1.5rem;
    max-height: calc(100vh - 2rem);
  }

  .modal-header {
    margin-bottom: 1.5rem;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }

  .btn-close {
    width: 32px;
    height: 32px;
    font-size: 1.3rem;
  }

  .confirm-modal-card {
    max-width: 100%;
    padding: 2rem 1.5rem;
  }

  .confirm-modal-icon {
    width: 70px;
    height: 70px;
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
  }

  .confirm-modal-card h3 {
    font-size: 1.35rem;
  }

  .confirm-modal-card p {
    font-size: 0.9rem;
  }

  .confirm-modal-actions {
    flex-direction: column-reverse;
    /* Cancel on bottom for easier reach */
  }

  .confirm-modal-actions .btn {
    width: 100%;
  }

  /* === NOTIFICATION BANNER === */
  .notification-banner {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    transform: translateX(0) translateY(120%);
    min-width: auto;
    max-width: 100%;
    padding: 1rem 1.5rem;
  }

  .notification-banner.show {
    transform: translateX(0) translateY(0);
  }

  .notification-message {
    font-size: 0.9rem;
  }

  .notification-icon {
    font-size: 1.35rem;
  }

  /* === CUSTOM DROPDOWNS === */
  .custom-dropdown-trigger {
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    min-height: 44px;
  }

  .custom-dropdown-options {
    max-height: 200px;
  }

  .custom-dropdown-option {
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
  }

  .custom-dropdown-option-title {
    font-size: 0.9rem;
  }

  .custom-dropdown-option-subtitle {
    font-size: 0.7rem;
  }

  /* === CUSTOM TOGGLE === */
  .custom-toggle-container {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
  }

  .custom-toggle-btn {
    width: 100%;
    padding: 0.6rem 1rem;
    justify-content: center;
  }

  /* === BADGES === */
  .proposal-type-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  .origin-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.55rem;
  }

  /* === GOAL SELECTION UI === */
  .goal-mode-card {
    padding: 1rem;
  }

  .goal-selection-card {
    padding: 1rem;
  }

  /* === GLASS CARDS === */
  .glass-card {
    padding: 1.5rem;
  }

  /* === BTN GROUPS === */
  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
  }

  /* === PROPOSAL & ORIGIN BADGES === */
  .proposal-type-badge.new,
  .proposal-type-badge.linked {
    font-size: 0.65rem;
  }
}/* === MAIN APP CONTAINER === */
#mainAppContainer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === NAVIGATION === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: all var(--transition-base);
}

.nav-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: padding var(--transition-base);
}

/* Hover padding removed to prevent jump */

.nav-left-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  /* Exact match to landing page */
  flex: 1;
}

/* ... existing styles ... */

/* ADAPTIVE TEXT COLOR LOGIC */
/* Default (App Header - White Background): Text should be BLACK */
.adaptive-brand-text .brand-text-img {
  filter: contrast(200%);
  /* Boost contrast to force gray to black if background is white */
  /* If image is transparent PNG with gray text, brightness(0) works. If JPG with white bg, contrast helps. */
}

.nav-right-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0;
  /* Reduced from 12px to match landing page */
  cursor: pointer;
  transition: transform var(--transition-base);
}

/* Removed hover transform to prevent jumping */

.nav-logo {
  width: 32px;
  height: 32px;
  overflow: visible;
  /* Ensure clips don't hide it */
}

/* Unified Brand Text Wrapper */
.brand-text-wrapper {
  position: relative;
  height: 24px;
  /* Increased from 20px */
  /* Increased from 20px */
  display: flex;
  align-items: center;
  margin-left: -2px;
  /* Match landing page spacing */
  width: auto;
  overflow: visible;
}

.brand-text-img {
  height: 100%;
  width: auto;
  object-fit: contain;
  transform: none;
  /* Use full image without cropping */
  margin-left: 0;
  clip-path: none;
}

/* ADAPTIVE TEXT COLOR LOGIC */
/* Default (App Header - White Background): Text should be BLACK */
.adaptive-brand-text .brand-text-img {
  filter: none;
  mix-blend-mode: normal;
}

/* Landing Page (Dark Background): Text should be WHITE */
.landing-page .adaptive-brand-text .brand-text-img {
  filter: invert(1) brightness(2);
}

/* App Dark Mode (Dark Background): Text should be WHITE */
body.theme-dark .adaptive-brand-text .brand-text-img {
  filter: invert(1) brightness(2);
}

.brand-lockup:hover .nav-logo {
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
}

.brand-lockup:hover .brand-mark {
  filter: drop-shadow(0 4px 12px var(--theme-glow));
}

.brand-text-col {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-word {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-primary);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.brand-sub {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.65rem;
  color: var(--theme-primary);
  margin-top: 3px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Dark divider for app header to override landing.css white divider */
.app-header .nav-divider {
  width: 1px;
  height: 24px;
  background: rgba(15, 23, 42, 0.12) !important;
}

.nav-divider {
  width: 1px;
  height: 24px;
  background: rgba(15, 23, 42, 0.12);
}

.desktop-nav {
  display: flex;
  gap: 2rem;
}

/* Update font to match landing page EXACTLY */
#mainNavLinks a,
.nav-item,
.desktop-nav a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  /* Visual match to landing page (0.95rem) */
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
  cursor: pointer;
}

.nav-item.active {
  color: var(--theme-primary) !important;
  font-weight: 600;
}

#mainNavLinks a::after,
#headerNavTabs a::after,
.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--theme-primary);
  transition: width var(--transition-base);
}

#mainNavLinks a:hover,
#headerNavTabs a:hover,
.desktop-nav a:hover {
  color: var(--theme-primary);
}

#mainNavLinks a:hover::after,
#headerNavTabs a:hover::after,
.desktop-nav a:hover::after {
  width: 100%;
}

#userInfoSection {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-text {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

#companyNameSection {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-company {
  color: var(--theme-primary);
  font-weight: 700;
}

.admin-badge {
  padding: 0.35rem 0.75rem;
  background: linear-gradient(135deg, var(--theme-primary-dark), var(--theme-primary));
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.3px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px var(--theme-glow);
  position: relative;
  overflow: hidden;
}

.admin-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmerBadge 2s infinite;
}

@keyframes shimmerBadge {
  to {
    left: 100%;
  }
}

.admin-badge-inline {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: linear-gradient(135deg, var(--theme-primary-dark), var(--theme-primary));
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.3px;
  border-radius: var(--radius-sm);
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* User Dropdown */
.user-dropdown-container {
  position: relative;
}

.user-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem !important;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.user-dropdown-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  overflow: hidden;
  z-index: 1000;
  display: none;
}

.user-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
  border-bottom: 1px solid #f0f0f0;
}

.user-dropdown-menu a:last-child {
  border-bottom: none;
}

.user-dropdown-menu a:hover {
  background: #f8f9fa;
  color: var(--theme-primary);
}

.user-dropdown-menu a i {
  font-size: 1.1rem;
}

.nav-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}



/* === FOOTER === */
.footer {
  background: var(--slate-900);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 2rem 2rem;
  margin-top: 6rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: var(--slate-50);
  /* Match body bg */
  z-index: 50;
  /* Ensure this is higher than card hover (usually 1-10) */
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.brand-lockup-small {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-word-small {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  letter-spacing: 0.3px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-nav a:hover {
  color: var(--theme-primary);
}

.footer-copyright {
  max-width: 1600px;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .dash-content-grid {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
  }

  .steps-container {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }
}

/* === MOBILE NAVIGATION === */
.mobile-menu-btn {
  display: none;
  /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.85);
  /* Translucent */
  backdrop-filter: blur(20px);
  /* Heavy blur for premium feel */
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  /* More breathing room */
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
  /* Subtle scale effect */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}

.mobile-nav-link {
  font-size: 2rem;
  /* Larger, bolder text */
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  /* Extra bold */
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}

.mobile-nav-link:hover {
  color: var(--theme-primary);
  transform: scale(1.05);
  /* Interactive feedback */
}

.mobile-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-secondary);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {

  /* === NAVIGATION === */
  .desktop-nav {
    display: none !important;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-inner {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    flex-wrap: nowrap !important;
  }

  .nav-inner:hover {
    padding: 0.75rem 1rem;
    /* Disable hover padding change on mobile */
  }

  .nav-right-group {
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .nav-left-group {
    gap: 0.5rem;
    flex: none !important;
    /* Override desktop flex: 1 that forces expansion */
  }

  /* CRITICAL FIX: Override nav-inner flex-direction: column from dashboard.css */
  .nav-inner {
    flex-direction: row !important;
    /* Keep horizontal layout on mobile */
  }

  /* Brand adjustments - logo acts as home button on mobile */
  .brand-lockup {
    gap: 6px;
    cursor: pointer;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-word {
    font-size: 0.9rem;
  }

  .brand-sub {
    font-size: 0.5rem;
  }

  /* Hide Tethyr Home button on mobile - logo functions as home */
  .btn-outline {
    display: none !important;
  }

  /* Scale down CTA buttons on mobile header */
  .btn-cta,
  .btn-login {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  /* User dropdown - keep very compact */
  .user-dropdown-btn {
    padding: 0.3rem 0.5rem !important;
    font-size: 0.75rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Company name section */
  #companyNameSection {
    gap: 1rem;
  }

  .nav-company {
    font-size: 0.9rem;
  }

  /* === FOOTER === */
  .footer {
    padding: 2rem 1.5rem 1.5rem;
    margin-top: 3rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }

  .footer-brand-side {
    width: 100%;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .footer-copyright {
    font-size: 0.8rem;
    margin-top: 1.5rem;
  }

  /* === PANEL HEADERS === */
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
  }

  .panel-header h3 {
    font-size: 1.1rem;
  }

  /* === GENERAL LAYOUT === */
  .page-container {
    padding: 0 1rem 2rem;
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Prevent body horizontal scroll */
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Ensure content doesn't overflow on small screens */
  * {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  /* Remove sticky positioning on mobile to avoid layout issues */
  .detail-panel {
    position: static;
  }
}

/* === EXTRA SMALL MOBILE (< 400px) === */
@media (max-width: 400px) {

  /* Further reduce header elements */
  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-word {
    font-size: 0.95rem;
  }

  .brand-sub {
    font-size: 0.5rem;
  }

  .btn-outline,
  .btn-cta {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
  }

  .user-dropdown-btn {
    padding: 0.3rem 0.5rem !important;
    font-size: 0.75rem;
  }

  /* Reduce stat card padding and labels */
  .stat-card {
    padding: 0.75rem;
  }

  .stat-label {
    font-size: 0.6rem;
    line-height: 1.1;
  }

  .stat-value {
    font-size: 1.35rem;
  }

  .dash-stats {
    gap: 0.4rem;
  }

  /* Reduce page padding */
  .page-container {
    padding: 0 0.75rem 2rem;
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Ensure body doesn't scroll horizontally */
  body,
  html {
    overflow-x: hidden;
    max-width: 100vw;
  }
}/* ===================================
   MOBILE LANDING PAGE STYLES
   =================================== */

/* Only apply when screen width is <= 768px */
@media (max-width: 768px) {

    /* --- RESET / OVERRIDES --- */
    .hero-section {
        padding-top: 80px !important;
        /* Adjusted to reduce top gap */
        justify-content: flex-start !important;
        min-height: auto !important;
        height: auto !important;
        padding-bottom: 2rem !important;
    }

    /* --- NAVIGATION --- */
    .landing-nav {
        padding: 0.5rem 1rem !important;
    }

    .nav-left {
        gap: 0.5rem !important;
    }

    /* Force Logo Visibility */
    .brand-text-col {
        display: flex !important;
        transform: scale(0.85);
        transform-origin: left center;
    }

    .brand-lockup {
        display: flex !important;
        width: auto !important;
        overflow: visible !important;
    }

    .brand-mark {
        width: 36px !important;
        height: 36px !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Header Buttons (Show Hamburger) */
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        color: #fff;
        cursor: pointer;
        z-index: 2000;
        /* Ensure on top */
    }

    .mobile-menu-btn i {
        font-size: 24px;
        line-height: 1;
        display: block;
        width: 24px;
        height: 24px;
    }

    /* Ensure container is visible */
    .nav-right-group {
        display: flex !important;
        align-items: center;
        gap: 1rem;
    }

    .nav-center-links,
    .nav-actions {
        display: none !important;
    }

    /* Keep "Log In" or similar minimal action if needed, or just hide all for now and rely on menu */

    /* --- HERO CONTENT --- */
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem) !important;
        line-height: 1.1 !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 1rem !important;
        /* Ensure padding prevents edge collision */
        word-break: break-word;
    }

    /* Scroller Fixes - VERTICAL STACK for Mobile */
    .dual-scroller-lockup-centered {
        grid-template-columns: 1fr !important;
        /* Stack vertically */
        grid-template-rows: auto auto auto !important;
        gap: 0.5rem !important;
        width: 100% !important;
        text-align: center !important;
        margin-top: 0.5rem !important;
    }

    .connector-text {
        grid-row: 2;
        transform: rotate(0deg) !important;
        margin: 0.25rem 0 !important;
    }

    .scroller-col {
        width: 100% !important;
        height: 1.5em !important;
        /* Ensure enough height */
        align-items: center !important;
    }

    #scroller-biz,
    #scroller-org {
        text-align: center !important;
        align-items: center !important;
    }

    .text-biz,
    .text-org {
        position: relative !important;
        opacity: 1 !important;
        font-size: 100% !important;
        /* Reset absolute positioning issues */
        width: auto !important;
    }


    .hero-subtext {
        font-size: 1rem !important;
        padding: 0 1.5rem !important;
        margin-bottom: 2rem !important;
    }

    .dashboard-preview-container {
        width: 100% !important;
        overflow: hidden !important;
        transform: scale(0.65);
        transform-origin: top center;
        margin-top: -2rem !important;
        /* Pull up due to scaling */
        margin-bottom: -100px !important;
    }

    /* Force alignment for horizontal flow */
    #scroller-biz {
        justify-content: flex-end !important;
    }

    #scroller-org {
        justify-content: flex-start !important;
    }

    .text-business,
    .text-org,
    .text-static-and {
        position: relative !important;
        font-size: clamp(0.9rem, 4vw, 1.25rem) !important;
        /* Slightly smaller for fit */
        width: auto !important;
        padding: 0 !important;
        line-height: 40px !important;
        letter-spacing: -0.03em !important;
        /* Tighten tracking */
    }

    .text-business,
    .text-org {
        position: absolute !important;
        width: 100% !important;
        top: 0 !important;
        left: 0 !important;
    }

    .text-business {
        text-align: right !important;
    }

    .text-org {
        text-align: left !important;
    }

    .text-static-and {
        flex: 0 0 auto !important;
        font-size: 0.9rem !important;
        margin-top: 1px !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 0.1rem !important;
        letter-spacing: 0 !important;
        opacity: 0.8 !important;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
        /* Polished line height */
        margin-top: 0.5rem !important;
        margin-bottom: 0.75rem !important;
        max-width: 90% !important;
    }

    .hero-cta-group {
        margin-top: 0 !important;
        gap: 0.6rem !important;
        flex-direction: column !important;
        width: 100% !important;
        align-items: center !important;
    }

    .hero-section .hero-content {
        gap: 0.5rem !important;
    }

    .btn-hero-business,
    .btn-hero-org {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
        width: 100% !important;
        justify-content: center !important;
    }

    /* Pull Graphic Up */
    .hero-visual-bottom {
        margin-top: 0 !important;
        margin-bottom: -50px !important;
        transform: scale(0.8) !important;
        transform-origin: top center !important;
    }
}/* === PAGE CONTAINER === */
.page-container {
  flex: 1;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 0 3.5rem 4rem;
}

/* === HERO SECTION === */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 0;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--theme-glow) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: ambientPulse 6s ease-in-out infinite alternate;
}

.hero-content {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--theme-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-visual {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.growth-graphic {
  padding: 3rem;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  position: relative;
}

/* === HERO GRAPHICS === */
/* Business Connection Bridge */
.connection-bridge {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
  opacity: 0;
}

.node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 2px solid var(--theme-primary);
  box-shadow: 0 4px 12px var(--theme-glow), var(--shadow-md);
}

.node i {
  font-size: 2.5rem;
  color: var(--theme-primary);
}

.node-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.bridge-line {
  height: 3px;
  width: 120px;
  background: linear-gradient(90deg, var(--theme-primary-dark), var(--theme-primary));
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.data-packet {
  position: absolute;
  width: 20px;
  height: 100%;
  background: white;
  box-shadow: 0 0 10px var(--theme-glow);
  animation: slidePacket 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes slidePacket {
  0% {
    left: -20px;
  }

  100% {
    left: 120px;
  }
}

/* Business Growth Chart */
.growth-chart {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  height: 150px;
  padding: 0 1rem;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
  opacity: 0;
}

.chart-bar {
  width: 50px;
  background: linear-gradient(180deg, var(--theme-primary-light), var(--theme-primary));
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  box-shadow: 0 0 20px var(--theme-glow);
  animation: growBar 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: bottom;
  transform: scaleY(0);
}

.chart-bar.bar-1 {
  animation-delay: 1s;
  height: 60%;
}

.chart-bar.bar-2 {
  animation-delay: 1.2s;
  height: 85%;
}

.chart-bar.bar-3 {
  animation-delay: 1.4s;
  height: 100%;
}

@keyframes growBar {
  to {
    transform: scaleY(1);
  }
}

/* Organization Fundraising Visual */
.fundraising-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 500px;
  max-width: 90%;
  margin-top: 1.5rem;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
  opacity: 0;
}

.funding-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: var(--radius-md);
  border: 2px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  transition: all var(--transition-base);
}

.funding-row:hover {
  border-color: var(--theme-primary);
  box-shadow: 0 4px 12px var(--theme-glow), var(--shadow-md);
  transform: translateX(-4px);
}

.funding-row:nth-child(1) {
  animation-delay: 0.8s;
}

.funding-row:nth-child(2) {
  animation-delay: 1s;
}

.funding-row:nth-child(3) {
  animation-delay: 1.2s;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.funding-source {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.funding-source i {
  font-size: 1.75rem;
  color: var(--theme-primary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--theme-primary), 0.1);
  border-radius: var(--radius-sm);
}

.funding-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.funding-flow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.flow-amount {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--theme-primary);
}

.flow-arrow {
  width: 30px;
  height: 2px;
  background: var(--theme-primary);
  position: relative;
  opacity: 0;
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.funding-row:nth-child(1) .flow-arrow {
  animation-delay: 1.2s;
}

.funding-row:nth-child(2) .flow-arrow {
  animation-delay: 1.4s;
}

.funding-row:nth-child(3) .flow-arrow {
  animation-delay: 1.6s;
}

.flow-arrow::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid var(--theme-primary);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.total-raised {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--theme-primary-dark), var(--theme-primary));
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 20px var(--theme-glow), var(--shadow-lg);
  margin-top: 0.5rem;
  opacity: 0;
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.8s forwards;
}

.total-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.total-icon i {
  font-size: 1.75rem;
  color: white;
}

.total-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.total-label {
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.total-amount {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: white;
  line-height: 1;
}

/* Graphic Caption */
.graphic-caption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 1.6s forwards;
  opacity: 0;
}

.graphic-caption .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--theme-primary);
  box-shadow: 0 0 10px var(--theme-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

/* === SECTIONS === */
.features-section,
.how-it-works-section,
.pricing-section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.section-header.text-center {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--theme-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* === GRIDS === */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* === FEATURE CARDS === */
.feature-card {
  padding: 2.5rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.feature-card:nth-child(1) {
  animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
  animation-delay: 0.4s;
}

.feature-card:nth-child(5) {
  animation-delay: 0.5s;
}

.feature-card:nth-child(6) {
  animation-delay: 0.6s;
}

.feature-card:hover {
  border-color: var(--theme-primary);
  box-shadow: 0 8px 24px var(--theme-glow), var(--shadow-lg);
  transform: translateY(-8px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--theme-primary-dark), var(--theme-primary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px var(--theme-glow);
}

.feature-card h4 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === HOW IT WORKS === */
.steps-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.step-item {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  padding: 2rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 2px solid var(--slate-200);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
}

.step-item:hover {
  border-color: var(--theme-primary);
  box-shadow: 0 8px 20px var(--theme-glow);
  transform: translateY(-6px);
}

.step-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: var(--theme-primary);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 1rem;
}

.step-content h4 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.step-arrow {
  font-size: 2rem;
  color: var(--theme-primary);
  flex-shrink: 0;
}

/* === PRICING === */
.pricing-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  padding: 3rem 2.5rem;
  background: white;
  border-radius: var(--radius-xl);
  border: 2px solid var(--slate-200);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  position: relative;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.pricing-card:nth-child(1) {
  animation-delay: 0.1s;
}

.pricing-card:nth-child(2) {
  animation-delay: 0.2s;
}

.pricing-card:nth-child(3) {
  animation-delay: 0.3s;
}

.pricing-card:hover {
  border-color: var(--theme-primary);
  box-shadow: 0 12px 32px var(--theme-glow), var(--shadow-xl);
  transform: translateY(-8px) scale(1.02);
}

.pricing-card.featured {
  border-color: var(--theme-primary);
  box-shadow: 0 8px 24px var(--theme-glow), var(--shadow-xl);
}

.pricing-card.featured::before {
  content: 'POPULAR';
  position: absolute;
  top: -12px;
  right: 2rem;
  background: linear-gradient(135deg, var(--theme-primary-dark), var(--theme-primary));
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px var(--theme-glow);
}

.pricing-card.popular {
  border-color: var(--theme-primary);
  box-shadow: 0 8px 24px var(--theme-glow), var(--shadow-xl);
}

.popular-tag {
  position: absolute;
  top: -12px;
  right: 2rem;
  background: linear-gradient(135deg, var(--theme-primary-dark), var(--theme-primary));
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px var(--theme-glow);
}

.pricing-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--slate-200);
}

.pricing-header h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 2.75rem;
  color: var(--theme-primary);
  line-height: 1;
  display: block;
}

.check-list {
  list-style: none;
  margin-bottom: 2.5rem;
  padding: 0;
}

.check-list li {
  padding: 0.75rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.check-list li i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.check-green {
  color: var(--brand-green);
}

.check-blue {
  color: var(--brand-blue);
}

.check-red {
  color: #ef4444;
}

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

.pricing-grid-2-centered {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
}

.plan-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.plan-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: var(--theme-primary);
  margin-bottom: 2rem;
  line-height: 1;
}

.plan-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.plan-features li {
  padding: 0.75rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.plan-features li::before {
  content: '✓';
  color: var(--theme-primary);
  font-weight: 700;
  font-size: 1.2rem;
}

.plan-features li.missing {
  opacity: 0.4;
}

.plan-features li.missing::before {
  content: '−';
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {

  /* === PAGE CONTAINER === */
  .page-container {
    padding: 0 1.5rem 2rem;
  }

  /* === HERO SECTION === */
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
  }

  .hero::before {
    width: 300px;
    height: 300px;
  }

  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* === HERO GRAPHICS === */
  .growth-graphic {
    padding: 2rem 1rem;
    min-height: 300px;
    gap: 1rem;
  }

  .connection-bridge {
    gap: 1rem;
    flex-direction: column;
  }

  .node {
    padding: 1rem;
    width: 100%;
  }

  .node i {
    font-size: 2rem;
  }

  .bridge-line {
    width: 3px;
    height: 80px;
    transform: rotate(90deg);
  }

  .growth-chart {
    gap: 1rem;
    height: 120px;
    padding: 0 0.5rem;
  }

  .chart-bar {
    width: 40px;
  }

  .fundraising-visual {
    width: 100%;
    margin-top: 1rem;
  }

  .funding-row {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .funding-source i {
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
  }

  .funding-label {
    font-size: 0.85rem;
  }

  .flow-amount {
    font-size: 0.95rem;
  }

  .total-raised {
    padding: 1.25rem;
    gap: 1rem;
  }

  .total-icon {
    width: 44px;
    height: 44px;
  }

  .total-icon i {
    font-size: 1.5rem;
  }

  .total-label {
    font-size: 0.75rem;
  }

  .total-amount {
    font-size: 1.5rem;
  }

  .graphic-caption {
    font-size: 0.85rem;
  }

  /* === SECTIONS === */
  .features-section,
  .how-it-works-section,
  .pricing-section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  /* === GRIDS === */
  .grid {
    gap: 1.5rem;
  }

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

  /* === FEATURE CARDS === */
  .feature-card {
    padding: 1.5rem;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .feature-card h4 {
    font-size: 1.1rem;
  }

  .feature-card p {
    font-size: 0.9rem;
  }

  /* === HOW IT WORKS === */
  .steps-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .step-item {
    min-width: 100%;
    max-width: 100%;
    padding: 1.5rem;
  }

  .step-arrow {
    display: none;
  }

  .step-number {
    font-size: 2.5rem;
  }

  .step-content h4 {
    font-size: 1.1rem;
  }

  .step-content p {
    font-size: 0.9rem;
  }

  /* === PRICING === */
  .pricing-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pricing-card {
    padding: 2rem 1.5rem;
  }

  .pricing-header h4 {
    font-size: 1.25rem;
  }

  .price {
    font-size: 2.25rem;
  }

  .plan-name {
    font-size: 1.25rem;
  }

  .plan-price {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }

  .check-list li,
  .plan-features li {
    font-size: 0.9rem;
    padding: 0.6rem 0;
  }

  .pricing-grid-3,
  .pricing-grid-2-centered {
    grid-template-columns: 1fr;
  }
}/* ===================================
   LANDING PAGE - MAIN ENTRY POINT
   =================================== */

/* ===================================
   LANDING PAGE - CORE STYLES
   =================================== */

/* --- Layout & Reset --- */

body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.landing-page {
    background-color: #000000 !important;
    color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
button,
input,
textarea,
select {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.landing-container {
    color: #ffffff;
    /* overflow-x: hidden; Removed to prevent double scrollbar (body handles it) */
    position: relative;
    min-height: 100vh;
}

/* --- Global Fixed Background Glows --- */

.global-bg-glows {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind everything */
    pointer-events: none;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.glow-green {
    background: #10b981;
    top: -200px;
    left: 10%;
    width: 600px;
    height: 600px;
}

.glow-blue {
    background: #3b82f6;
    top: 100px;
    right: 10%;
    width: 600px;
    height: 600px;
}

/* --- Button Styles --- */

.btn-text {
    background: none;
    border: none;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary-sculpted {
    background: #10b981;
    /* Brand Green */
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3), 0 0 0 1px inset rgba(255, 255, 255, 0.1);
}

.btn-primary-sculpted:hover {
    transform: translateY(-1px);
    background: #059669;
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* --- Signup Selection Modal (moved from responsive.css) --- */

.signup-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.signup-modal-overlay.active {
    opacity: 1;
}

.signup-modal {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.signup-modal h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: white;
}

.signup-modal p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* ===================================
   LANDING PAGE - NAVIGATION
   =================================== */

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    width: 32px;
    height: 32px;
}

/* HYBRID LOGO STYLING (Header & Footer) */

.nav-brand {
    gap: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
    /* margin-right removed - spacing now controlled by parent nav-left-group */
}

.brand-text-wrapper {
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-left: -2px;
    /* Pull tighter to icon */
}

.brand-text-img {
    height: 44px;
    width: auto;
    /* 
     Removed clipping entirely. 
     The asset seems to be text-only (or compatible without clipping), 
     matching the behavior in layout.css (App Header).
  */
    margin-left: 0;
    filter: invert(1) brightness(2);
    mix-blend-mode: screen;
    clip-path: none;
}

/* Ensure SVG icon uses correct colors */

#tethyr-logo use {
    stroke-width: 8px;
    /* Ensure visibility */
}

.nav-title {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.nav-left-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* Consistent spacing */
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
}

.nav-links {
    display: flex;
    gap: 1rem;
    /* Match nav-left-group spacing */
}

.nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Navbar Button Alignment Fix */

.nav-actions .btn-primary-sculpted {
    align-self: center;
    margin-left: 0.5rem;
}

/* ===================================
   LANDING PAGE - HERO SECTION
   =================================== */

.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* ensure tall hero */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 140px;
    text-align: center;
    background: transparent;
    /* Was #000, now transparent for global bg */
    /* overflow: hidden; Removed to allow glows to bleed */
}

.hero-container {
    position: relative;
    z-index: 10;
    max-width: 100%;
    /* Removed 1600px limit to prevent glow clipping */
    width: 100%;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    /* Thinner font */
    text-transform: uppercase;
    /* All Caps */
    color: #ffffff;
    /* Bright white */
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    /* Spacing for all caps */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Centered Dual Scroller Lockup */

.dual-scroller-lockup-centered {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* Equal outer columns, auto centers the 'with' */
    align-items: center;
    /* Center vertically */
    gap: 1rem;
    margin-top: 0.5rem;
    width: 100%;
    max-width: none;
    /* Allow full expansion to hero width */
}

.connector-text {
    font-size: 0.4em;
    font-weight: 300;
    color: #94a3b8;
    opacity: 1;
    font-style: normal;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transform: translateY(0);
    /* Center in Grid */
    justify-self: center;
}

.scroller-col {
    height: 1.25em;
    /* overflow: hidden;  <-- Causing horizontal clipping during transition */
    clip-path: inset(0 -100vmin 0 -100vmin);
    /* Clip Vertical (0), Allow Horizontal (-100vmin) */
    position: relative;
    display: flex;
    flex-direction: column;
    vertical-align: bottom;
}

/* Specific Alignment for Visual Balance */

#scroller-biz {
    align-items: flex-end;
    /* Push text towards center */
    text-align: right;
}

#scroller-org {
    align-items: flex-start;
    /* Push text towards center */
    text-align: left;
}

/* Scroller Text Items */

.text-biz,
.text-org {
    display: inline-block;
    opacity: 0;
    position: absolute;
    white-space: nowrap;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    font-weight: 400;
    /* Cleaner, less heavy */
    text-transform: uppercase;
    /* Match the modern all-caps look */
    letter-spacing: 0.05em;
    font-size: 0.9em;
    /* Slightly smaller to fit */
}

.text-biz.active,
.text-org.active {
    opacity: 1;
    position: relative;
}

.text-biz {
    color: #34d399;
    text-shadow: 0 0 20px rgba(52, 211, 153, 0.2);
    /* Subtle glow */
}

.text-org {
    color: #60a5fa;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.2);
    /* Subtle glow */
}

/* Subtext & CTA */

.hero-subtext {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 650px;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-cta-row {
    margin-bottom: 3rem;
}

/* ===================================
   LANDING PAGE - DASHBOARD MOCKUP
   =================================== */

/* Existing Dashboard Styles (Position adjusted) */

.dashboard-preview-container {
    width: 100%;
    max-width: 1000px;
    perspective: 2000px;
    margin-top: 1rem;
    position: relative;
}

/* === MODERN DASHBOARD MOCKUP === */

.dashboard-underglow {
    position: absolute;
    width: 45%;
    height: 70%;
    bottom: -15%;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.25;
}

.glow-left {
    left: 0%;
    background: linear-gradient(135deg, #10b981, #059669);
}

.glow-right {
    right: 0%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.modern-dashboard-mockup {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 550px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    overflow: hidden;
    display: flex;
    /* 3D Tilt Effect */
    transform: perspective(1500px) rotateX(8deg) rotateY(-2deg);
    transform-origin: center center;
    transition: transform 0.5s ease;
}

.modern-dashboard-mockup:hover {
    transform: perspective(1500px) rotateX(5deg) rotateY(0deg);
}

/* Sidebar */

.mockup-sidebar {
    width: 220px;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    pointer-events: none;
    /* Ensure sidebar doesn't capture scroll/clicks */
}

.mockup-sidebar-brand {
    display: flex;
    justify-content: center;
}

.mockup-logo {
    width: 36px;
    height: 36px;
    stroke: #fff;
    stroke-width: 4;
}

.mockup-nav-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mockup-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.mockup-nav-item i {
    font-size: 1.2rem;
}

.mockup-nav-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: #fff;
}

.mockup-nav-item:not(.active):hover {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

/* Main Content */

.mockup-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Topbar */

.mockup-topbar {
    height: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    /* Disable interaction options */
}

.mockup-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    color: #64748b;
    font-size: 0.9rem;
    min-width: 280px;
}

.mockup-search i {
    font-size: 1.1rem;
}

.mockup-user {
    display: flex;
    align-items: center;
}

.mockup-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Content Area */

.mockup-content {
    flex: 1;
    padding: 2rem;
    overflow: hidden;
    /* Prevent internal scrollbar on hover */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    pointer-events: none;
    /* Prevent internal scrollbar on hover */
}

/* Stats Row */

.mockup-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.mockup-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}

.mockup-stat-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.mockup-stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    flex-shrink: 0;
}

.stat-icon.bg-green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.3));
    color: #10b981;
}

.stat-icon.bg-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.3));
    color: #3b82f6;
}

.stat-icon.bg-orange {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(234, 88, 12, 0.3));
    color: #f97316;
}

.stat-icon.bg-purple {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(147, 51, 234, 0.3));
    color: #a855f7;
}

.stat-details {
    flex: 1;
}

.stat-details .stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.stat-details .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

/* Dashboard Grid (Calendar + Goal) */

.mockup-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    flex: 1;
}

.mockup-calendar-card,
.mockup-goal-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

/* Header Updates */

.mockup-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Center vertically for icon/text balance */
    margin-bottom: 1rem;
    width: 100%;
}

.header-title {
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
}

.header-target {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    /* Tighter gap for icon */
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-target-icon {
    font-size: 0.9rem;
    color: #10b981;
    /* Green to match the theme */
}

.target-value {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: "SF Mono", "Roboto Mono", monospace;
}

.calendar-controls {
    display: flex;
    gap: 0.5rem;
    color: #64748b;
    font-size: 1.1rem;
}

.calendar-controls i {
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.calendar-controls i:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

/* Calendar Grid */

.mockup-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.cal-day-header {
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    padding: 0.5rem 0;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.cal-day:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cal-day.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-weight: 700;
}

.cal-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #10b981;
}

/* Goal Widget - Reference Style */

.mockup-goal-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Make sure card takes remaining height */
    flex: 1;
}

.goal-gauge-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 1rem;
}

.reference-gauge {
    width: 100%;
    max-width: 260px;
    height: auto;
    overflow: visible;
}

/* 
   Total arc length for radius 90 (diameter 180) 
   Circumference = 2 * pi * 90 ≈ 565.
   Semi-circle ≈ 283.
*/

.gauge-track-dashed {
    /* Creates the tick marks */
    /* dasharray: line gap */
    /* 2px solid, 4px gap creates cleaner, more spaced ticks matching ref */
    opacity: 0.3;
}

.gauge-fill-solid {
    /* Solid bar overlay */
    /* Total length ~283 */
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    /* Starts empty */
    animation: solidFill 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.5s;
    /* Add subtle shadow for depth */
    filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.4));
}

@keyframes solidFill {
    to {
        /* 68.5% of 283 => ~194 filled. 
       Offset = 283 - 194 = 89 */
        stroke-dashoffset: 89;
    }
}

/* Gauge Stats Updates */

.gauge-stats-ref {
    position: absolute;
    top: 62%;
    /* Adjusted for new stack */
    left: 50%;
    transform: translate(-50%, -35%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.gauge-percentage-thin {
    font-size: 3.5rem;
    font-weight: 200;
    /* Ultra thin */
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin-bottom: -5px;
    /* Tighten gap to number below */
    opacity: 0.9;
}

.gauge-ref-main {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.gauge-ref-main .val {
    font-size: 1.5rem;
    /* Smaller than percent now */
    font-weight: 600;
    color: #94a3b8;
    /* Muted color for secondary emphasis */
    letter-spacing: -0.02em;
}

.gauge-ref-main .unit {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.gauge-small-icon {
    font-size: 1.1rem;
    color: #10b981;
    /* Green icon to match bar */
    opacity: 1;
}

/* ===================================
   LANDING PAGE - FEATURES
   =================================== */

/* --- Audience Toggle Section (Next Scroll) --- */

.audience-toggle-section {
    position: relative;
    background: transparent;
    /* Was #0f172a */
    padding: 6rem 1.5rem;
    /* border-top: 1px solid rgba(255, 255, 255, 0.05); REMOVED to fix horizontal clip line */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.toggle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
}

.toggle-heading {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.audience-switch {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.switch-opt {
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.switch-opt.active {
    color: #fff;
}

.switch-opt:hover {
    color: #fff;
}

.switch-bg {
    position: absolute;
    top: 0.4rem;
    bottom: 0.4rem;
    left: 0.4rem;
    width: calc(50% - 0.4rem);
    /* Approximate, JS will animate better or simple layout */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s;
}

/* Specific Toggle BG Colors */

.audience-switch:has(.switch-opt[data-target="business"].active) .switch-bg {
    background: #10b981;
    transform: translateX(0);
}

.audience-switch:has(.switch-opt[data-target="org"].active) .switch-bg {
    background: #3b82f6;
    transform: translateX(100%);
    /* Moves to second slot */
    left: 0.4rem;
    /* Reset anchor */
    width: calc(50% - 0.2rem);
    /* Adjustment */
}

/* Better Approach for switch alignment requires precise width or flex handling.
   Simplest CSS-only way for fixed width options: */

.switch-opt {
    width: 160px;
    justify-content: center;
}

.switch-bg {
    width: 160px;
}

/* --- Audience Views --- */

.audience-view {
    display: none;
    width: 100%;
    max-width: 1100px;
    animation: fadeIn 0.5s ease forwards;
}

.audience-view.active {
    display: block;
}

/* =========================================
   VISUAL POLISH - INJECTED CONTENT OVERRIDES
   ========================================= */

/* 1. Global Dark Theme Constraints */

.features-section,
.how-it-works-section,
.pricing-section {
    background: transparent !important;
    /* Remove any white backgrounds */
    color: #fff !important;
    padding: 2rem 0 4rem;
    position: relative;
    z-index: 10;
    /* Enforce stacking above glows */
    scroll-margin-top: 120px;
    /* Offset for fixed navbar */
}

.section-header h2 {
    color: #fff !important;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: none !important;
    -webkit-text-fill-color: #fff !important;
}

.section-header p {
    color: #94a3b8 !important;
    /* Slate 400 */
    font-size: 1.1rem;
}

/* 2. Dark Glass Cards (Universal) */

/* 2. Dark Glass Cards (Universal) */

.feature-card,
.pricing-card,
.step-item {
    background: rgba(255, 255, 255, 0.08) !important;
    /* Increased opacity for better contrast */
    backdrop-filter: blur(16px) !important;
    /* Increased blur */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2) !important;
    /* Stronger shadow */
    color: #fff !important;
    z-index: 2;
    position: relative;
}

/* Distributed Section Glows */

.bg-glow-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind content */
    pointer-events: none;
    overflow: visible;
}

.glow-section-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
}

.glow-purple {
    background: #a855f7;
    width: 500px;
    height: 500px;
    top: -100px;
    /* Moved up behind heading */
    right: -100px;
}

.glow-cyan {
    background: #06b6d4;
    width: 450px;
    height: 450px;
    top: 100px;
    /* Positioned near toggle */
    left: -100px;
}

/* Hover Effects */

.feature-card:hover,
.step-item:hover,
.pricing-card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateY(-4px) !important;
}

/* Business Hover (Green) */

.view-business .feature-card:hover,
.view-business .pricing-card:hover,
.view-business .step-item:hover {
    border-color: rgba(16, 185, 129, 0.4) !important;
    /* Brand Green */
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.15) !important;
}

/* Org Hover (Blue) */

.view-org .feature-card:hover,
.view-org .pricing-card:hover,
.view-org .step-item:hover {
    border-color: rgba(59, 130, 246, 0.4) !important;
    /* Brand Blue */
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.15) !important;
}

/* 3. Typography Overrides */

.feature-card h4,
.step-content h4,
.plan-name {
    color: #fff !important;
    font-weight: 700;
    font-size: 1.25rem;
}

.feature-card p,
.step-content p,
.plan-features li {
    color: #94a3b8 !important;
}

/* 4. Icons & Accents */

.feature-icon,
.step-number {
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    /* Default dark background for icons */
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff;
}

/* Business Icons (Green) */

.view-business .feature-icon,
.view-business .step-number {
    color: #34d399 !important;
    /* Emerald 400 */
}

.view-business .feature-icon {
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

/* Org Icons (Blue) */

.view-org .feature-icon,
.view-org .step-number {
    color: #60a5fa !important;
    /* Blue 400 */
}

.view-org .feature-icon {
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
}

/* 5. Pricing Specifics */

.plan-price {
    color: #f8fafc !important;
    /* Slate 50 */
}

.pricing-card.popular {
    border-color: rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1) !important;
}

.popular-tag {
    background: #10b981 !important;
}

/* Business Feature Grid Layout Fix */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* How It Works line connector fix */

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
}

.step-arrow {
    margin-top: 3rem;
    /* Align with cards */
    font-size: 1.5rem;
    opacity: 0.5;
}

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

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Features Section (Bento Grid) --- */

.features-section {
    padding: 6rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.landing-page .section-header {
    display: block;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
}

/* --- Card Hover Logic Fix --- */

.bento-card {
    background: #f8fafc;
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    /* transition all properties */
}

/* Light cards hover effect */

.bento-card:not(.bento-wide):hover {
    transform: translateY(-5px);
    border-color: var(--brand-blue);
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Card Sizes */

.bento-large {
    grid-column: span 2;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

.bento-small {
    grid-column: span 1;
}

/* Dark card (wide) styles */

.bento-wide {
    grid-column: span 3;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    background: #0f172a;
    color: white;
    border-color: #1e293b;
}

/* Dark card hover effect - keep it dark! */

.bento-wide:hover {
    transform: translateY(-5px);
    background: #1e293b;
    /* lighten slightly but keep dark */
    border-color: var(--brand-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Card Content */

.bento-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.bento-card p {
    color: #64748b;
    line-height: 1.5;
}

.bento-wide h3 {
    color: white;
}

.bento-wide p {
    color: #94a3b8;
}

.bento-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-primary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

/* Visuals placeholder styles */

.visual-chart .bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 100px;
}

.bar {
    width: 20px;
    background: var(--brand-blue);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
}

.bento-wide .bento-visual {
    flex: 1;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Impact Section --- */

.impact-section {
    padding: 6rem 4rem;
    background: #f8fafc;
}

.impact-grid {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}

.impact-item {
    text-align: center;
}

.impact-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--brand-blue);
    line-height: 1;
    white-space: nowrap;
    /* Prevent unit wrapping */
}

.impact-suffix {
    font-size: 4rem;
    font-weight: 800;
    color: var(--brand-blue);
    display: inline;
}

.impact-label {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ===================================
   LANDING PAGE - FOOTER
   =================================== */

/* --- Footer CTA --- */

.landing-footer {
    padding: 4rem 2rem 2rem 2rem;
    text-align: center;
}

.footer-cta-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 32px;
    max-width: 1000px;
    margin: 0 auto 4rem auto;
    position: relative;
    overflow: hidden;
}

/* Higher specificity to beat base styles */

.footer-cta-card h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white !important;
    /* Force white against dark bg */
}

.footer-cta-card p {
    font-size: 1.25rem;
    color: #e2e8f0 !important;
    /* light slate 200 */
    margin-bottom: 2.5rem;
}

.footer-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn-footer {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    border: 2px solid transparent;
    /* Prepare for border changes */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-footer.theme-business {
    background: white;
    color: #0f172a;
    border-color: white;
}

.btn-footer.theme-business:hover {
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.btn-footer.theme-org {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-footer.theme-org:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.footer-legal {
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    color: #94a3b8;
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 2rem;
}

.legal-links a {
    color: #94a3b8;
    text-decoration: none;
}

/* ===================================
   LANDING PAGE - RESPONSIVE OVERRIDES
   =================================== */

/* --- Responsive Mobile --- */

@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding: 6rem 1.5rem 2rem 1.5rem;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-visual {
        display: none;
        /* Hide complex visual on mobile or simplify */
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-large,
    .bento-small,
    .bento-wide {
        grid-column: span 1;
    }

    .bento-wide {
        flex-direction: column;
        align-items: flex-start;
    }

    .impact-grid {
        flex-direction: column;
        gap: 2rem;
    }
}

/* === RESPONSIVE LANDING PAGE === */

@media (max-width: 768px) {

    /* Landing Nav */
    .landing-nav {
        padding: 1rem;
    }

    .landing-nav .nav-links {
        display: none;
        /* Hide features/stats links */
    }




    /* Hero Section */
    .hero-section {
        padding-top: 6rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
        /* Force smaller size */
    }

    /* Network Scroller */
    .network-scroller {
        flex-direction: column;
        height: auto;
        gap: 0.5rem;
    }

    .scroller-col-wrapper {
        height: 50px;
        max-width: 100%;
        justify-content: center !important;
        /* Center everything */
        mask-image: none;
        /* Remove fade mask on mobile so full text is visible? or keep it? */
        -webkit-mask-image: none;
    }

    .text-static-and {
        height: 40px;
        font-size: 1.5rem;
    }

    .text-business,
    .text-org {
        position: static;
        /* Stack them naturally */
        font-size: 2rem;
        text-align: center;
        padding: 0;
    }

    /* Hero Buttons */
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .btn-hero-business,
    .btn-hero-org {
        width: 100%;
        justify-content: center;
    }

    /* Feature Grid */
    .advantage-container {
        flex-direction: column;
    }

    .advantage-text,
    .advantage-visual {
        width: 100%;
        text-align: center;
        /* Center text on mobile */
    }

    .advantage-features {
        align-items: center;
        /* Center feature items */
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    /* Stats Grid */
    .impact-grid {
        grid-template-columns: 1fr;
        /* Stack stats */
        gap: 2rem;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .footer-nav {
        justify-content: center;
        flex-direction: column;
        gap: 1.5rem;
    }


    .brand-lockup-small {
        justify-content: center;
    }
}

/* === MOBILE RESPONSIVE === */

@media (max-width: 768px) {

    /* === MODAL OPTIONS === */
    .modal-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .option-btn {
        padding: 1.5rem 1.25rem;
    }

    .signup-modal {
        padding: 2rem 1.5rem;
        width: 95%;
    }

    .signup-modal h2 {
        font-size: 1.75rem;
    }

    .signup-modal p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* === NAVIGATION === */
    .nav-links {
        display: none;
    }

    .nav-divider {
        display: none;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .btn-chromatic,

    /* === STATS GRID === */
    .impact-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem;
    }

    .impact-item {
        padding: 1rem;
    }

    .impact-number {
        font-size: 1.75rem !important;
    }

    .impact-label {
        font-size: 0.7rem;
    }

    /* === FOOTER === */
    .footer-cta-card {
        padding: 2rem 1.5rem;
    }

    .footer-cta-card h2 {
        font-size: 1.5rem;
    }

    .footer-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-buttons .btn-footer {
        width: 100%;
    }
}/* === SIGNUP / LOGIN MODALS === */
.signup-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  /* Slightly darker for landing */
  backdrop-filter: blur(8px);
  display: none;
  /* Hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.signup-modal-overlay.active {
  opacity: 1;
}

.signup-modal {
  background: rgba(30, 41, 59, 0.9);
  /* Dark slate */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: white;
}

.signup-modal-overlay.active .signup-modal {
  transform: scale(1);
}

.signup-modal h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: white;
}

.signup-modal p {
  color: #94a3b8;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.modal-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.option-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.option-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.bg-green-sm {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.bg-blue-sm {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.option-info h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: white;
}

.option-info p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: #cbd5e1;
}

.btn-modal-cancel {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}

.btn-modal-cancel:hover {
  color: white;
}

/* --- CTA Card Section --- */
.view-cta-footer {
  margin: 6rem auto 4rem;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
}

.cta-card {
  width: 100%;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Glow effect behind the card content */
.cta-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

/* Business Theme */
.view-business .cta-card {
  border-color: rgba(16, 185, 129, 0.2);
}

.view-business .cta-card::before {
  background: #10b981;
}

/* Org Theme */
.view-org .cta-card {
  border-color: rgba(59, 130, 246, 0.2);
}

.view-org .cta-card::before {
  background: #3b82f6;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.cta-sub {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Premium CTA Button styling override */
.cta-content button {
  padding: 1.25rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  /* Reduced from 800 */
  letter-spacing: -0.01em;
  /* Tighter, more modern */
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 10px 20px -5px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
  text-transform: none;
  /* Removed uppercase */
}

.cta-content button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 20px 40px -10px rgba(0, 0, 0, 0.4),
    0 0 0 2px rgba(255, 255, 255, 0.2) inset;
}

/* Business Button Premium touches */
.view-business .cta-content button {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.5);
}

.view-business .cta-content button:hover {
  box-shadow: 0 20px 50px -12px rgba(16, 185, 129, 0.6);
}

/* Org Button Premium touches */
.view-org .cta-content button {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.5);
}

.view-org .cta-content button:hover {
  box-shadow: 0 20px 50px -12px rgba(59, 130, 246, 0.6);
}

/* ===================================

   SCROLLER ANIMATIONS
   =================================== */

/* BIZ (Upwards) */
/* Enter: Start below, move to center */
.text-biz.biz-enter {
  transform: translateY(100%);
  opacity: 0;
}

.text-biz.biz-enter-active {
  transform: translateY(0);
  opacity: 1;
}

/* Exit: Start center, move up */
.text-biz.biz-exit-active {
  transform: translateY(-100%);
  opacity: 0;
}


/* ORG (Downwards) */
/* Enter: Start above, move to center */
.text-org.org-enter {
  transform: translateY(-100%);
  opacity: 0;
}

.text-org.org-enter-active {
  transform: translateY(0);
  opacity: 1;
}

/* Exit: Start center, move down */
.text-org.org-exit-active {
  transform: translateY(100%);
  opacity: 0;
}/* === AUTH VIEW === */
.auth-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.auth-card {
  max-width: 500px;
  width: 100%;
  padding: 3rem;
  animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-header h2 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.auth-header p {
  color: var(--text-secondary);
}

.biz-options-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.biz-opt-btn {
  width: 100%;
  padding: 1.5rem;
  background: white;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.biz-opt-btn:hover {
  border-color: var(--theme-primary);
  box-shadow: 0 4px 12px var(--theme-glow);
  transform: translateX(4px);
}

.icon-box-sm {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--theme-primary-dark), var(--theme-primary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--theme-glow);
}

.text-box {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.text-box strong {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.text-box span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.divider-text {
  text-align: center;
  position: relative;
  margin: 1.5rem 0;
}

.divider-text::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--slate-200);
}

.divider-text span {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  padding: 0 1rem;
  color: var(--text-tertiary);
  font-weight: 600;
  font-size: 0.85rem;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
  .auth-container {
    min-height: calc(100vh - 150px);
    padding: 2rem 1rem;
  }

  .auth-card {
    max-width: 100%;
    padding: 2rem 1.5rem;
  }

  .auth-header {
    margin-bottom: 2rem;
  }

  .auth-header h2 {
    font-size: 1.75rem;
  }

  .auth-header p {
    font-size: 0.9rem;
  }

  .biz-options-grid {
    gap: 0.75rem;
  }

  .biz-opt-btn {
    padding: 1.25rem;
    gap: 0.75rem;
  }

  .icon-box-sm {
    width: 44px;
    height: 44px;
    font-size: 1.35rem;
  }

  .text-box strong {
    font-size: 0.95rem;
  }

  .text-box span {
    font-size: 0.8rem;
  }

  .divider-text {
    margin: 1.25rem 0;
  }

  .divider-text span {
    font-size: 0.8rem;
  }
}

/* === GOOGLE BUTTON === */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem;
  background: white;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
}

.btn-google:hover {
  background: var(--slate-50);
  border-color: var(--slate-400);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.google-icon {
  width: 20px;
  height: 20px;
}/* === DASHBOARD === */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-top: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}


.dash-header-left {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.dash-divider {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--slate-300), transparent);
  align-self: center;
  margin-top: 0.5rem;
}

.dash-header h2 {
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.dash-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.dash-actions {
  display: flex;
  gap: 1rem;
}

.dash-stats {
  margin-bottom: 2.5rem;
}

.stat-card {
  padding: 2rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stat-card:nth-child(1) {
  animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
  animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
  animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
  animation-delay: 0.4s;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--theme-primary-dark), var(--theme-primary), var(--theme-primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.stat-card:hover {
  box-shadow: 0 8px 24px var(--theme-glow), var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--theme-primary);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--theme-primary);
  line-height: 1;
}

/* === ADAPTIVE STAT CARD (Desktop Layout) === */
.adaptive-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  /* Base shadow, overridden by inline */
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.adaptive-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  /* Slightly lifted */
}

.adaptive-stat-card .stat-icon-wrapper {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adaptive-stat-card .stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.adaptive-stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

/* Helper wrapper for desktop column layout of text */
.adaptive-stat-card .stat-text-content {
  display: flex;
  flex-direction: column;
}

.dash-content-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
}

.content-panel {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  opacity: 0;
  animation: fadeIn 0.4s ease-out 0.2s forwards;
}

.content-panel:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px var(--slate-200);
}

.panel-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--slate-200);
  background: linear-gradient(to bottom, var(--slate-50), white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.panel-header h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.panel-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: white;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.panel-search:focus-within {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px var(--theme-glow);
}

.panel-search input {
  border: none;
  outline: none;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: transparent;
  width: 200px;
}

.list-container {
  flex: 1;
  overflow-y: auto;
  max-height: 600px;
}

.list-item {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--slate-100);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  background: white;
}

.list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(180deg, var(--theme-primary-dark), var(--theme-primary));
  transition: width var(--transition-base);
}

.list-item:hover {
  background: var(--slate-50);
  padding-left: 2.25rem;
}

.list-item:hover::before {
  width: 4px;
}

.list-item.active {
  background: linear-gradient(90deg, rgba(var(--theme-primary-rgb), 0.1), transparent);
  border-left: 4px solid var(--theme-primary);
  padding-left: 2rem;
}

.list-item.active::before {
  width: 4px;
}

.list-item-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.list-item-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.detail-panel {
  position: sticky;
  top: 2rem;
}

#dashDetail {
  padding: 2rem;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-tertiary);
  position: relative;
}

.empty-state::before {
  content: '';
  position: absolute;
  inset: 2rem;
  border: 2px dashed var(--slate-200);
  border-radius: var(--radius-lg);
  opacity: 0.5;
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--slate-300);
  opacity: 0.8;
  position: relative;
}

.empty-state p {
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
}

/* === BACK BUTTON === */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: 'Work Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 1.5rem;
}

.back-button:hover {
  background: var(--slate-50);
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}

.back-button i {
  font-size: 1.1rem;
}

/* === DASHBOARD TAB BAR === */
#dashTabBar {
  padding-top: 4px;
  /* Prevent top shadow clipping */
  padding-bottom: 4px;
  /* Prevent bottom shadow clipping */
  margin-top: -4px;
  /* Compensate for padding to maintain layout */
  margin-bottom: 2rem;
  scrollbar-width: none;
  /* Hide scrollbar Firefox */
}

#dashTabBar::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar Chrome/Safari */
}

#dashTabBar button {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

#dashTabBar button:active {
  transform: scale(0.96);
}

/* === DASHBOARD LIST ITEM STYLES === */
.dash-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.dash-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--theme-primary);
  transform: scaleY(0);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash-item:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--theme-primary);
  background: linear-gradient(to bottom, var(--white), var(--slate-50));
}

.dash-item:hover::before {
  transform: scaleY(1);
}

.dash-item:active {
  transform: translateY(0) scale(0.99);
  transition-duration: 0.1s;
}

.dash-item.selected {
  background: linear-gradient(135deg,
      rgba(var(--theme-primary-rgb), 0.08) 0%,
      rgba(var(--theme-primary-rgb), 0.03) 50%,
      var(--white) 100%);
  border-color: var(--theme-primary);
  box-shadow: 0 4px 12px rgba(var(--theme-primary-rgb), 0.15),
    0 0 0 3px rgba(var(--theme-primary-rgb), 0.1);
}

.dash-item.selected::before {
  transform: scaleY(1);
}

.dash-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.dash-item-body {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Card-specific Styles */
.request-card,
.fundraiser-card,
.opportunity-card,
.partnership-card {
  padding: 1.5rem;
}

.request-card:hover .ph-arrow-right,
.fundraiser-card:hover .ph-arrow-right,
.opportunity-card:hover .ph-arrow-right,
.partnership-card:hover .ph-arrow-right {
  transform: translateX(4px);
  transition: transform 0.2s ease;
}

/* === DASHBOARD LAYOUT MODES === */
/* Single-Card System: Detail Mode hides the list and shows the detail panel */
.dash-content-grid.detail-mode>.content-panel:not(.detail-panel) {
  display: none !important;
}

.dash-content-grid.detail-mode>.detail-panel {
  display: flex !important;
  flex-direction: column;
}

/* Full Width just ensures standard grid or full list processing */
.dash-content-grid.full-width {
  grid-template-columns: 1fr !important;
}

.dash-content-grid.full-width>.detail-panel {
  display: none !important;
}

.dash-content-grid.full-width>.content-panel:not(.detail-panel) {
  display: flex !important;
}

/* === RESTING PAGE === */
.resting-page {
  padding: 0;
}

.resting-page-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--slate-100);
}

.resting-page-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.resting-page-subtitle {
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
}

.resting-page-content {
  padding: 2rem;
}

.profile-section {
  margin-bottom: 2rem;
}

.profile-section:last-child {
  margin-bottom: 0;
}

.profile-section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  margin: 0 0 1rem 0;
}

.profile-field {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  background: var(--slate-50);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
}

.profile-field-icon {
  font-size: 1.25rem;
  color: var(--theme-primary);
  margin-right: 1rem;
  margin-top: 0.1rem;
}

.profile-field-content {
  flex: 1;
}

.profile-field-label {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-tertiary);
  margin: 0 0 0.25rem 0;
}

.profile-field-value {
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  margin: 0;
}

.profile-actions {
  padding: 0 2rem 2rem;
  display: flex;
  gap: 1rem;
}

/* === MOBILE RESPONSIVE === */
/* Ensure dropdowns are hidden by default */
.dashboard-dropdown-menu {
  display: none;
}

@media (max-width: 768px) {

  /* === DASHBOARD HEADER === */
  .dash-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
  }

  .dash-header-left {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .dash-divider {
    display: none;
  }

  .dash-header h2 {
    font-size: 1.5rem;
  }

  .dash-sub {
    font-size: 0.85rem;
  }

  .dash-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .dash-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* === STATS GRID === */
  /* CRITICAL: Override .grid-3's minmax(300px, 1fr) which forces 300px min per column */
  .dash-stats {
    grid-template-columns: 1fr 1fr !important;
    /* Force equal columns, no min-width */
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .stat-card {
    padding: 0.75rem 0.6rem;
    min-width: 0;
  }

  .stat-label {
    font-size: 0.65rem;
    margin-bottom: 0.3rem;
    word-break: break-word;
    white-space: normal;
    line-height: 1.1;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  .stat-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 1rem !important;
  }

  /* === ADAPTIVE STAT CARD (Mobile Layout) === */
  /* Mobile: Icon + Label on top row, Value on bottom row */
  .adaptive-stat-card {
    display: grid !important;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "icon label"
      "value value";
    gap: 0.5rem;
    align-items: center;
    padding: 1.25rem !important;
  }

  .adaptive-stat-card .stat-icon-wrapper {
    grid-area: icon;
    width: 36px;
    height: 36px;
  }

  /* Unwrap text content for Grid */
  .adaptive-stat-card .stat-text-content {
    display: contents;
  }

  .adaptive-stat-card .stat-label {
    grid-area: label;
    margin: 0;
    align-self: center;
    font-size: 0.75rem;
  }

  .adaptive-stat-card .stat-value {
    grid-area: value;
    font-size: 1.75rem;
    margin-top: 0.25rem;
    line-height: 1;
  }

  /* CRITICAL: Override inline styles from HTML */
  .dash-stats>div {
    padding: 1rem !important;
    gap: 0.75rem !important;
    min-width: 0 !important;
    flex: 1 !important;
  }

  /* === DASHBOARD CONTENT GRID === */
  .dash-content-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  /* Make list panel full width on mobile */
  .dash-content-grid>.content-panel:not(.detail-panel) {
    width: 100%;
  }

  /* Hide detail panel by default on mobile, show when active */
  .dash-content-grid>.detail-panel {
    display: none;
  }

  .dash-content-grid.detail-mode>.detail-panel {
    display: flex !important;
  }

  .dash-content-grid.detail-mode>.content-panel:not(.detail-panel) {
    display: none !important;
  }

  /* === PANELS === */
  .content-panel {
    border-radius: var(--radius-lg);
  }

  .panel-header {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-header h3 {
    font-size: 1rem;
  }

  .panel-search {
    width: 100%;
  }

  .panel-search input {
    width: 100%;
  }

  /* === LIST ITEMS === */
  .list-container {
    max-height: none;
    /* Remove max height on mobile */
  }

  .list-item {
    padding: 1rem 1.5rem;
  }

  .list-item:hover {
    padding-left: 1.75rem;
  }

  .list-item-title {
    font-size: 0.95rem;
  }

  .list-item-subtitle {
    font-size: 0.8rem;
  }

  /* === DETAIL PANEL === */
  #dashDetail {
    padding: 1.5rem;
  }

  /* === DASHBOARD ITEMS === */
  .dash-item {
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
  }

  .dash-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* === RESTING PAGE === */
  .resting-page-header {
    padding: 1.5rem 1rem 1rem;
  }

  .resting-page-title {
    font-size: 1.5rem;
  }

  .resting-page-subtitle {
    font-size: 0.9rem;
  }

  .resting-page-content {
    padding: 1.5rem;
  }

  .profile-actions {
    flex-direction: column;
    padding: 0 1.5rem 1.5rem;
  }

  .profile-actions .btn {
    width: 100%;
  }

  /* === ACTION BUTTONS CONTAINER === */
  #dashActionBtnContainer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  #dashActionBtnContainer .btn {
    width: 100%;
    justify-content: center;
  }

  /* === BACK BUTTON === */
  .back-button {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
  }

  /* === TAB BAR === */
  #dashTabBar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
  }

  #dashTabBar button {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
}/* ===================================
   TETHYRS - COMPONENT STYLES
   All dashboard card and list styles
   =================================== */

/* ===================================
   TETHYR CARDS
   Active/Cancelled cards on Tethyrs page
   =================================== */

.tethyr-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid #e8ecef;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.tethyr-card:hover {
    border-color: var(--slate-300);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.tethyr-card[data-status="cancelled"] {
    background: #fafafa;
    border-left: 3px solid #999;
}

.tethyr-card-content {
    flex: 1;
    min-width: 0;
}

.tethyr-card-header {
    margin-bottom: 0.5rem;
}

.tethyr-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tethyr-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin: 0 0 0.35rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tethyr-subtitle {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.tethyr-detail {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin: 0;
}

.clear-tethyr-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid #999;
    border-radius: 50%;
    color: #999;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-left: 1rem;
}

.clear-tethyr-btn:hover {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.clear-tethyr-btn i {
    font-size: 1.1rem;
}

/* ===================================
   PAST PARTNERSHIP CARDS
   Styles for past/cancelled partnerships
   =================================== */

.past-partnership-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid #e8ecef;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.past-partnership-card:nth-child(n) {
    animation-delay: 0.1s;
}

.past-partnership-card:hover {
    border-color: var(--slate-300);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.past-partnership-card[data-status="cancelled"] {
    background: #fafafa;
    border-left: 3px solid #f44336;
}

.past-partnership-content {
    flex: 1;
    min-width: 0;
}

.past-partnership-header {
    margin-bottom: 0.5rem;
}

.past-partnership-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.past-partnership-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin: 0 0 0.35rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.past-partnership-subtitle {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.past-partnership-detail {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin: 0;
}

.clear-partnership-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid #f44336;
    border-radius: 50%;
    color: #f44336;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-left: 1rem;
}

.clear-partnership-btn:hover {
    background: #f44336;
    color: white;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.clear-partnership-btn i {
    font-size: 1.1rem;
}

/* ===================================
   GOAL CARDS
   Goal card styles and progress bars
   =================================== */

/* === GOAL CARDS === */

.goal-card {
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Stagger for first 10 items */

.goal-card:nth-child(1) {
  animation-delay: 0.05s;
}

.goal-card:nth-child(2) {
  animation-delay: 0.1s;
}

.goal-card:nth-child(3) {
  animation-delay: 0.15s;
}

.goal-card:nth-child(4) {
  animation-delay: 0.2s;
}

.goal-card:nth-child(5) {
  animation-delay: 0.25s;
}

.goal-card:nth-child(6) {
  animation-delay: 0.3s;
}

.goal-card:nth-child(7) {
  animation-delay: 0.35s;
}

.goal-card:nth-child(8) {
  animation-delay: 0.4s;
}

.goal-card:nth-child(9) {
  animation-delay: 0.45s;
}

.goal-card:nth-child(10) {
  animation-delay: 0.5s;
}

.goal-card:hover {
  border-color: var(--theme-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.goal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.goal-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
}

.goal-amount {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--theme-primary);
  white-space: nowrap;
  margin-left: 1rem;
}

.goal-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--slate-100);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.goal-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.goal-description {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===================================
   TEAM MEMBER CARDS
   Team member card styles
   =================================== */

/* === TEAM MEMBER CARDS === */

.team-member-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid #e8ecef;
  margin-bottom: 0.75rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.team-member-card:nth-child(n) {
  animation-delay: 0.1s;
}

.team-member-card:hover {
  border-color: var(--theme-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.team-member-info {
  flex: 1;
}

.team-member-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.team-member-role {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.team-member-actions {
  display: flex;
  gap: 0.5rem;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  background: #f0f2f5;
  color: var(--text-secondary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.role-badge.admin-role {
  background: linear-gradient(135deg, var(--theme-primary-dark), var(--theme-primary));
  color: white;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-outline-danger {
  background: transparent;
  color: #dc2626;
  border: 1px solid #dc2626;
  transition: all 0.2s;
}

.btn-outline-danger:hover {
  background: #dc2626;
  color: white;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* ===================================
   BULLETIN CARDS
   Bulletin grid layout and card styles
   =================================== */

/* === BULLETIN GRID LAYOUT === */

/* Full Width Utility (Applied to dash-content-grid) */

.dash-content-grid.full-width {
  grid-template-columns: 1fr;
  display: block;
  /* Switch from grid to block to allow full width flow */
}

.dash-content-grid.full-width .content-panel:not(.detail-panel) {
  width: 100%;
  border-right: none;
  padding: 0;
  max-width: 100%;
  margin: 0;
}

.dash-content-grid.full-width .dash-stats {
  display: grid;
  /* Ensure stats remain visible if needed, or hide */
}

.dash-content-grid.full-width .content-panel.detail-panel {
  display: none;
}

/* Detail Mode (Hide List, Show Detail) */

.dash-content-grid.detail-mode {
  grid-template-columns: 1fr;
  display: block;
}

.dash-content-grid.detail-mode .content-panel:not(.detail-panel) {
  display: none;
}

.dash-content-grid.detail-mode .content-panel.detail-panel {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  background: transparent;
  border: none;
}

/* Responsive Grid */

.bulletin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem !important;
  padding: 0.5rem 1rem 3rem 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* Bulletin Card */

.bulletin-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  /* Fallback spacing in case of layout shifts */
  margin-bottom: 1.5rem !important;
  opacity: 0;
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Stagger for first 10 items */

.bulletin-card:nth-child(1) {
  animation-delay: 0.05s;
}

.bulletin-card:nth-child(2) {
  animation-delay: 0.1s;
}

.bulletin-card:nth-child(3) {
  animation-delay: 0.15s;
}

.bulletin-card:nth-child(4) {
  animation-delay: 0.2s;
}

.bulletin-card:nth-child(5) {
  animation-delay: 0.25s;
}

.bulletin-card:nth-child(6) {
  animation-delay: 0.3s;
}

.bulletin-card:nth-child(7) {
  animation-delay: 0.35s;
}

.bulletin-card:nth-child(8) {
  animation-delay: 0.4s;
}

.bulletin-card:nth-child(9) {
  animation-delay: 0.45s;
}

.bulletin-card:nth-child(10) {
  animation-delay: 0.5s;
}

.bulletin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  border-color: var(--brand-blue-light);
}

.bulletin-card.theme-business:hover {
  border-color: var(--brand-green-light);
}

/* Card Hero Section */

.card-hero {
  height: 120px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  position: relative;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-hero.variant-blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(96, 165, 250, 0.05));
}

.card-hero.variant-green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.05));
}

/* Status Badge on Card */

.card-status-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  letter-spacing: 0.5px;
}

/* Card Body */

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Metrics Row */

.card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.metric-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Progress Bar Minimal */

.card-progress {
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.card-progress-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease-out;
}

/* Color Picker Swatches */

.color-swatch {
  width: 44px;
  height: 44px;
  min-width: 44px;
  /* Prevent crushing */
  padding: 0;
  margin: 0;
  border: 3px solid white;
  border-radius: 50% !important;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  appearance: none;
  outline: none;
  display: block;
  /* Ensure block layout */
}

.color-swatch:hover {
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.color-swatch.active {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--brand-blue), 0 8px 15px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.color-swatch.active::after {
  content: '\f10e';
  /* ph-check */
  font-family: 'Phosphor';
  color: white;
  font-size: 1.4rem;
  /* Larger check */
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Palette Button Animation & Style */

.color-picker-btn {
  width: 42px !important;
  height: 42px !important;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-out;
  margin-left: auto;
  /* Push to right if in flex */
}

.color-picker-btn i {
  font-size: 1.4rem;
  /* Larger icon */
  transition: transform 0.3s ease;
}

.color-picker-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: #f8fafc;
  border-color: #cbd5e1;
}

.color-picker-btn:hover i {
  transform: rotate(15deg) scale(1.1);
}

.color-picker-btn:active {
  transform: translateY(0) scale(0.95);
}

/* Modal Animation */

#tethyrColorPickerModal .modal-card {
  animation: slideUpFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===================================
   PROGRESS BAR ANIMATIONS
   Progress tooltips and animations
   =================================== */

/* === PROGRESS BAR TOOLTIPS & ANIMATIONS === */

.progress-bar-container {
  width: 100%;
  height: 16px;
  background: #e0e0e0;
  border-radius: 8px;
  display: flex;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 10;
  margin-top: 4px;
  /* Give space for expansion */
  margin-bottom: 4px;
}

.progress-segment-wrapper {
  height: 100%;
  position: relative;
  z-index: 10;
  cursor: pointer;
}

.progress-segment-bar {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s;
  /* Bouncy scale */
  overflow: hidden;
  /* Clips the shine */
}

/* Rounding logic applied to the bar */

.progress-segment-wrapper:first-child .progress-segment-bar {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.progress-segment-wrapper:last-child .progress-segment-bar {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Hover Effects */

.progress-segment-wrapper:hover {
  z-index: 20;
}

.progress-segment-wrapper:hover .progress-segment-bar {
  transform: scaleY(1.4);
  filter: brightness(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Shine Effect */

.shine-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-100%);
  transition: transform 0s;
  /* Reset immediately when not hovering */
}

.progress-segment-wrapper:hover .shine-overlay {
  transform: translateX(100%);
  transition: transform 0.6s ease-in-out;
}

/* Tooltip Styles */

.segment-tooltip {
  position: absolute;
  bottom: 160%;
  /* Higher to account for scale */
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.95);
  background: #1e293b;
  /* Slate 800 */
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 30;
}

.segment-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #1e293b transparent transparent transparent;
}

.segment-tooltip-title {
  font-weight: 700;
  color: #f8fafc;
}

.segment-tooltip-amount {
  color: #94a3b8;
  font-size: 0.75rem;
}

.progress-segment-wrapper:hover .segment-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

/* Welcome Profile Button */

.btn-welcome-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50px;
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  margin-left: 0.5rem;
}

/* Active Sub-Tab State */

.btn-text.active,
.btn-text.active-sub-tab {
  color: var(--theme-primary) !important;
  font-weight: 700 !important;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

body.theme-business .btn-text.active-sub-tab {
  color: #10b981 !important;
  /* Green for Business */
  text-decoration-color: #10b981;
}

body.theme-org .btn-text.active-sub-tab {
  color: #3b82f6 !important;
  /* Blue for Organization */
  text-decoration-color: #3b82f6;
}

.btn-welcome-profile:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
}

.btn-welcome-profile i {
  opacity: 0.6;
  color: var(--theme-primary);
}

/* Team Member Card */

.team-member-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.team-member-card:hover {
  border-color: var(--theme-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateX(4px);
}

.team-member-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.team-member-name {
  font-weight: 600;
  color: var(--text-main);
  font-size: 1rem;
}

.team-member-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.role-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 700;
}

.role-badge.admin-role {
  background: #e0e7ff;
  color: var(--brand-blue);
}

/* ===================================
   FUNDRAISER CARDS
   Fundraiser card styles
   =================================== */

/* === FUNDRAISER CARD STYLES === */

.fundraiser-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  overflow: hidden;
  height: 100%;
}

.fundraiser-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.08);
  border-color: var(--brand-green);
}

.fundraiser-card:hover .ph-caret-right {
  transform: translateX(4px);
  color: var(--brand-green) !important;
}

.fundraiser-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.fundraiser-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.fundraiser-icon.bg-green-sm {
  background: #ecfdf5;
  color: #10b981;
  border: 1px solid #d1fae5;
}

.fundraiser-icon.bg-blue-sm {
  background: #eff6ff;
  color: #3b82f6;
  border: 1px solid #dbeafe;
}

.fundraiser-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.status-open {
  background: #f1f5f9;
  color: #475569;
}

/* ===================================
   HAVEN HOMES AESTHETIC
   Haven Homes inspired styles
   =================================== */

/* === HAVEN HOMES INSPIRED AESTHETIC === */

/* Page Layout */

.tethyr-page-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem 4rem 1rem;
}

.tethyr-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--slate-200);
}

.tethyr-page-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
}

.tethyr-section {
  margin-bottom: 4rem;
}

.tethyr-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.tethyr-section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--text-primary);
  margin: 0;
}

/* Explore/See All Button */

.haven-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--slate-300);
  border-radius: 50px;
  background: white;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.haven-explore-btn:hover {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
  transform: translateY(-1px);
}

.haven-explore-btn i {
  font-size: 1rem;
}

/* New Grid Layouts */

.haven-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* 2-Column Grid for Scheduled Tethyrs */

.haven-grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 1.5rem;
}

/* 3-Column Grid for Availabilities */

.haven-grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 0.5rem;
  /* Add padding to container to prevent shadow clipping */
}

/* Featured / Large Card (Haven Style) */

.haven-card {
  position: relative;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  /* Ensure cards have enough height for content */
}

.haven-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(0, 0, 0, 0.05);
}

.haven-card-image {
  flex: 1;
  width: 100%;
  background: var(--slate-100);
  position: relative;
  overflow: hidden;
}

/* Gradient Overlay for Text Readability */

.haven-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

/* Placeholder Pattern if no image */

.haven-card-pattern {
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--slate-200) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
}

.haven-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  z-index: 2;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.haven-card-info {
  flex: 1;
}

.haven-card-type {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

.haven-card-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.haven-card-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.haven-tag {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

.haven-card-address {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.8rem;
  opacity: 0.9;
}

/* Round Arrow Button */

.haven-arrow-btn {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.haven-card:hover .haven-arrow-btn {
  background: var(--theme-primary);
  color: white;
  transform: translateX(4px);
}

/* Compact/List Card Variant (for Scheduled items maybe?) */

.haven-list-card {
  display: flex;
  background: white;
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid var(--slate-200);
  gap: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  align-items: center;
}

.haven-list-card:hover {
  border-color: var(--theme-primary);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.haven-list-image {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  background: var(--slate-100);
  object-fit: cover;
  flex-shrink: 0;
}

.haven-list-content {
  flex: 1;
}

.haven-list-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.haven-list-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.haven-status-pill {
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--slate-100);
  color: var(--text-secondary);
}

.haven-status-pill.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.05));
  color: var(--brand-green-dark);
}

@media (max-width: 768px) {
  .tethyr-page-title {
    font-size: 2rem;
  }

  .haven-grid,
  .haven-grid-2col,
  .haven-grid-3col {
    grid-template-columns: 1fr;
  }
}

/* Responsive Availability Card */

.haven-availability-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1.8fr 1.3fr 1fr;
  padding: 0;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  min-height: 220px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .haven-availability-card {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }

  /* Reset internal layouts for stacked view */
  .haven-availability-card>div {
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #f1f5f9;
    padding: 1.5rem !important;
  }

  .haven-availability-card>div:last-child {
    border-bottom: none;
  }
}

/* ===================================
   MOBILE RESPONSIVE
   Mobile styles for all card components
   =================================== */

/* === MOBILE RESPONSIVE === */

@media (max-width: 768px) {

  /* === LANDING/HEADER === */
  .landing-top-header {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 2rem;
  }

  .header-logo-section {
    width: 100%;
    justify-content: center;
  }

  .portal-choice-title {
    font-size: 1.75rem;
  }

  .split-layers-wrapper {
    flex-direction: column;
  }

  .split-layer {
    min-height: 50vh;
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .desktop-nav {
    flex-direction: column;
    gap: 1rem;
  }

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

  .btn-group {
    flex-direction: column;
  }

  /* === TETHYR CARDS === */
  .tethyr-card {
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
  }

  .tethyr-title {
    font-size: 0.95rem;
  }

  .tethyr-subtitle {
    font-size: 0.85rem;
  }

  .tethyr-detail {
    font-size: 0.8rem;
  }

  .tethyr-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  .clear-tethyr-btn {
    width: 32px;
    height: 32px;
  }

  /* === PAST PARTNERSHIP CARDS === */
  .past-partnership-card {
    padding: 1rem 1.25rem;
  }

  .past-partnership-title {
    font-size: 0.95rem;
  }

  .past-partnership-subtitle {
    font-size: 0.85rem;
  }

  .clear-partnership-btn {
    width: 32px;
    height: 32px;
  }

  /* === GOAL CARDS === */
  .goal-card {
    padding: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .goal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .goal-title {
    font-size: 1rem;
  }

  .goal-amount {
    font-size: 0.9rem;
    margin-left: 0;
  }

  .goal-description {
    font-size: 0.85rem;
  }

  /* === TEAM MEMBER CARDS === */
  .team-member-card {
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .team-member-name {
    font-size: 0.95rem;
  }

  .team-member-role {
    font-size: 0.85rem;
  }

  .team-member-actions {
    width: 100%;
    justify-content: stretch;
  }

  .team-member-actions .btn {
    flex: 1;
  }

  /* === BULLETIN GRID === */
  .bulletin-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: 0.5rem 1rem 2rem 1rem;
  }

  /* === BULLETIN CARDS === */
  .bulletin-card {
    margin-bottom: 1rem !important;
  }

  .card-hero {
    height: 100px;
    padding: 1rem;
  }

  .card-body {
    padding: 1.25rem;
    gap: 0.75rem;
  }

  .card-title {
    font-size: 1rem;
  }

  .card-subtitle {
    font-size: 0.85rem;
  }

  .card-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding-top: 0.75rem;
  }

  .metric-label {
    font-size: 0.65rem;
  }

  .metric-value {
    font-size: 0.85rem;
  }

  /* === COLOR PICKER === */
  .color-swatch {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .color-picker-btn {
    width: 38px !important;
    height: 38px !important;
  }

  .color-picker-btn i {
    font-size: 1.2rem;
  }

  /* === PROGRESS BARS === */
  .progress-bar-container {
    height: 14px;
  }

  .segment-tooltip {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }

  /* === FULL WIDTH LAYOUT UTILITIES === */
  .dash-content-grid.full-width .bulletin-grid {
    padding: 0.5rem 0.5rem 2rem 0.5rem;
  }

  /* === DETAIL MODE === */
  .dash-content-grid.detail-mode .content-panel.detail-panel {
    padding: 1rem;
  }
}/* === MODERN DASHBOARD LAYOUT (FINEXY STYLE) === */

/* --- 1. Dashboard Grid Shell --- */
.dashboard-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    /* Restored Width */
    min-height: 100vh;
    height: auto;
    background-color: #F4F7FE;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* --- 2. Sidebar --- */
.sidebar {
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    /* Restored Standard Padding */
    z-index: 20;
    position: sticky;
    top: 1.5rem;
    /* Restored Top Alignment (Lowers sidebar) */
    margin: 1.5rem 0 1.5rem 0.5rem;
    /* Left margin 0.5rem (Moves closer to edge) */
    height: calc(100vh - 3rem);
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    /* Restored Spacing */
    padding: 0 0.5rem;
}

.sidebar-logo {
    width: 32px;
    height: 32px;
    color: var(--theme-primary);
}

.sidebar-brand-text {
    font-size: 1.25rem;
    /* Restored Standard Font Size */
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

.sidebar-section-label {
    font-size: 0.75rem;
    color: var(--slate-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 1.5rem 0.5rem 0.75rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Restored Gap */
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    /* Restored Standard Padding */
    border-radius: var(--radius-md);
    color: var(--slate-500);
    font-weight: 500;
    font-size: 0.95rem;
    /* Restored Standard Font Size */
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.nav-item:hover {
    color: var(--theme-primary);
    background-color: var(--slate-50);
}

.nav-item.active {
    background-color: var(--theme-primary);
    color: var(--white) !important;
    box-shadow: 0 4px 12px var(--theme-glow);
    transform: scale(1.02);
}

.nav-item:active {
    transform: scale(0.98);
}

.nav-item i {
    font-size: 1.25rem;
    /* Restored Icon Size */
}

.nav-badge {
    margin-left: auto;
    background-color: #FF5630;
    color: white;
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 99px;
    font-weight: 700;
}

/* --- 3. Main Content Area --- */
/* --- 3. Main Content Area --- */
.main-content-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    /* Outer Right Margin: 0.5rem (Matches Sidebar Left) */
    /* Inner Left Gap: 2rem ( pushes content right) */
    padding: 0 0.5rem 2rem 2rem;
}

/* --- 4. Topbar --- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    background: #F4F7FE;
    /* Match shell background to cover scroll */
    z-index: 10;
}

.topbar-search {
    position: relative;
    width: 320px;
}

.topbar-search input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border-radius: 99px;
    border: none;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    color: var(--slate-700);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
}

.topbar-search input:focus {
    box-shadow: 0 0 0 2px var(--theme-glow);
}

.topbar-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    font-size: 1.1rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-500);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.action-btn:hover {
    color: var(--theme-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    padding: 0.35rem 0.5rem 0.35rem 0.35rem;
    border-radius: 99px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--theme-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.user-info-text {
    display: flex;
    flex-direction: column;
    margin-right: 0.5rem;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-800);
    line-height: 1.1;
}

.user-role {
    font-size: 0.7rem;
    color: var(--slate-500);
}

/* --- 5. Content Layouts --- */

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Stat Card - Modern */
.stat-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.stat-widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.15);
    /* Richer shadow on hover */
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.stat-title {
    font-size: 0.85rem;
    color: var(--slate-500);
    font-weight: 500;
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.stat-trend {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.trend-up {
    color: #10B981;
}

.trend-down {
    color: #EF4444;
}

/* Dashboard Sections Grid */
.dashboard-sections {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Main Content 2/3 | Right Panel 1/3 */
    gap: 1.5rem;
}

.section-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--slate-900);
}

/* List Items (Modern) */
.modern-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--slate-100);
}

.modern-list-item:last-child {
    border-bottom: none;
}

.item-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--slate-50);
    color: var(--theme-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.item-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    color: var(--slate-800);
}

.item-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--slate-500);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.status-completed {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .dashboard-shell {
        grid-template-columns: 80px 1fr;
        /* Collapsed sidebar */
    }

    .sidebar-brand-text,
    .sidebar-section-label,
    .user-info-text,
    .nav-badge,
    .nav-item span {
        display: none;
        /* Hide text, show icons only */
    }

    .nav-item {
        justify-content: center;
        padding: 0.75rem;
    }

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

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

@media (max-width: 768px) {
    .dashboard-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .sidebar {
        display: none;
        /* Mobile menu toggle needed */
    }

    .sidebar.mobile-open {
        display: flex;
        position: fixed;
        inset: 0;
        width: 80%;
        box-shadow: 100px 0 0 rgba(0, 0, 0, 0.5);
        /* Overlay effect */
    }

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

/* === DASHBOARD DROPDOWN MENU === */
.dashboard-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 220px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    z-index: 100;
    border: 1px solid var(--slate-200);
    animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top right;
}

.dash-drop-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--slate-600);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.dash-drop-item i {
    font-size: 1.1rem;
    color: var(--slate-400);
}

.dash-drop-item:hover {
    background: var(--slate-50);
    color: var(--theme-primary);
}

.dash-drop-item:hover i {
    color: var(--theme-primary);
}

.dash-drop-divider {
    height: 1px;
    background: var(--slate-100);
    margin: 0.5rem 0;
}

.dash-drop-item.text-red {
    color: #ef4444;
}

.dash-drop-item.text-red i {
    color: #ef4444;
}

/* Removed empty hover rule */

/* === DASHBOARD CALENDAR WIDGET === */

.calendar-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--slate-100);
}

.calendar-days-header span {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-400);
    text-transform: uppercase;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(5, 1fr);
    /* Fixed rows */
    gap: 4px;
    /* Increased gap for better separation */
    height: 100%;
}

.cal-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0.5rem;
    position: relative;
    border-radius: 12px;
    /* Softer corners */
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-700);
    height: 100%;
    aspect-ratio: 1;
    /* Keep square-ish */
    background: transparent;
}

.cal-day:hover {
    background-color: var(--white);
    color: var(--theme-primary);
    transform: translateY(-2px);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Stronger tactile shadow */
}

.cal-day.other-month {
    color: var(--slate-300);
    pointer-events: none;
    opacity: 0.5;
}

.cal-day.today {
    background-color: var(--theme-primary);
    color: white;
    box-shadow: 0 4px 12px var(--theme-glow);
}

.cal-day.today:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px var(--theme-glow);
}

.cal-event-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.cal-day:hover .cal-event-avatar {
    transform: scale(1.1);
}

.calendar-header-top .icon-btn-sm {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--slate-200);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--slate-500);
}

.calendar-header-top .icon-btn-sm:hover {
    background: var(--slate-50);
    color: var(--theme-primary);
    border-color: var(--theme-primary);
    transform: scale(1.05);
}

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

/* === VERTICAL GOAL WIDGET (PREMIUM) === */

.goal-progress-card {
    display: flex;
    flex-direction: column;
    /* Ensure card stretches if needed, but min height for visual balance */
    min-height: 420px;
}

.goal-widget-premium {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-grow: 1;
}

/* Header Area */
.goal-header {
    margin-bottom: 2rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.goal-main-value {
    display: flex;
    align-items: flex-start;
    line-height: 1;
    color: var(--slate-900);
    margin-bottom: 0.25rem;
}

.goal-main-value .currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 4px;
    margin-right: 2px;
    color: var(--slate-500);
}

.goal-main-value .val {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.goal-sub {
    font-size: 0.9rem;
    color: var(--slate-500);
    font-weight: 500;
    margin: 0;
}

.goal-sub span {
    color: var(--slate-700);
    font-weight: 600;
}

/* Visualization Area */
.goal-visual-container {
    flex-grow: 1;
    display: flex;
    position: relative;
    padding-right: 1rem;
    /* Space for tooltip overflow on right if needed */
}

/* Left: Milestones */
.goal-milestones {
    position: relative;
    width: 40px;
    height: 100%;
    margin-right: 1.5rem;
    /* Ensure markers align with the track height */
}

.milestone-marker {
    position: absolute;
    width: 100%;
    text-align: right;
    transform: translateY(50%);
    /* Center vertically on the bottom point */
    font-size: 0.7rem;
    color: var(--slate-400);
    font-weight: 600;
    padding-right: 0.5rem;
}

.milestone-marker::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    /* Extend line over to the track roughly */
    top: 50%;
    width: 1rem;
    /* Short dash */
    height: 1px;
    background: var(--slate-200);
    display: none;
    /* Optional: Hide simple dashes for cleaner look, or enable */
}

/* Right: Track Area */
.goal-track-area {
    position: relative;
    flex-grow: 1;
    height: 100%;
    /* Create a focused vertical column for the bar */
    max-width: 60px;
    margin: 0 auto;
    /* Center it if we want, or align left. Let's align closer to milestones */
    margin-left: 0;
}

.goal-track-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--slate-100);
    border-radius: 99px;
    /* Pill shape */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.goal-track-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    /* JS updates this */
    background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
    border-radius: 99px;
    transition: height 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

/* Shiny top effect on fill */
.fill-glow-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    border-radius: 99px 99px 0 0;
}

/* Floating Tooltip */
.goal-floater-anchor {
    position: absolute;
    bottom: 0;
    left: 100%;
    /* To the right of the bar */
    width: 0;
    height: 0%;
    /* Follows fill height */
    transition: height 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.goal-tooltip-bubble {
    position: absolute;
    top: -16px;
    /* Center-ish on the top edge of bar */
    left: 12px;
    /* Gap from bar */
    background: var(--white);
    padding: 6px 12px;
    border-radius: 12px;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    animation: floatIn 0.5s ease-out backwards 0.2s;
}

.goal-tooltip-bubble span {
    font-weight: 700;
    color: var(--theme-business-green);
    /* Use brand green */
    font-size: 0.9rem;
}

/* Little triangle pointing left to the bar */
.goal-tooltip-bubble::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px 6px 5px 0;
    border-style: solid;
    border-color: transparent var(--white) transparent transparent;
    filter: drop-shadow(-1px 0 1px rgba(0, 0, 0, 0.05));
}

@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Footer */
.goal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    /* Push to bottom if container grows */
    padding-top: 1.5rem;
    border-top: 1px solid var(--slate-100);
}

.sm-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-400);
    font-weight: 600;
}

.target-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-600);
}/* Fundraiser Card Styles */
/* State-specific styling for fundraiser tracking cards */

.fundraiser-card {
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.fundraiser-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* State-specific borders and styling */
.fundraiser-card--scheduled {
    border-color: #94a3b8;
}

.fundraiser-card--active {
    border-color: #ef4444;
    background: linear-gradient(to bottom, #fff5f5, #ffffff);
}

.fundraiser-card--completed {
    border-color: #10b981;
    opacity: 0.9;
}

.fundraiser-card--cancelled {
    border-color: #6b7280;
    opacity: 0.6;
}

/* Status Badges */
.fundraiser-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fundraiser-badge--live {
    background: #fee2e2;
    color: #dc2626;
    animation: pulse-badge 2s infinite;
}

.fundraiser-badge--completed {
    background: #d1fae5;
    color: #059669;
}

.fundraiser-badge--scheduled {
    background: #e0e7ff;
    color: #4f46e5;
}

/* Pulsing dot for LIVE indicator */
.pulse-dot {
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes pulse-badge {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
    }
}

/* Fundraiser Header */
.fundraiser-card__header {
    margin-bottom: 20px;
}

.fundraiser-partner-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.partner-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.fundraiser-name {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.fundraiser-partner {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Stats Section */
.fundraiser-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.fundraiser-stat {
    text-align: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.fundraiser-stat--highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.fundraiser-stat__value {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.fundraiser-stat__label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Progress Bar */
.fundraiser-progress {
    margin-bottom: 16px;
}

.fundraiser-progress__bar {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.fundraiser-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.fundraiser-progress__label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6b7280;
}

/* Time Remaining */
.fundraiser-time-remaining {
    text-align: center;
    padding: 8px;
    background: #fef3c7;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 16px;
}

/* Actions */
.fundraiser-card__actions {
    display: flex;
    gap: 8px;
    justify-content: stretch;
}

.fundraiser-card__actions .btn {
    flex: 1;
}

/* Manual Entry Modal */
#manual-entry-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

#manual-entry-modal.modal--active {
    display: flex;
}

.manual-entry-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.manual-entry-header {
    margin-bottom: 24px;
}

.manual-entry-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
}

.manual-entry-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.manual-entry-current {
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.manual-entry-current h3 {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.manual-entry-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.manual-entry-row:last-child {
    margin-bottom: 0;
}

.manual-entry-row label {
    color: #374151;
    font-size: 14px;
}

.manual-entry-row span {
    font-weight: 600;
    color: #111827;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

#manual-entry-preview {
    background: #eff6ff;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

#manual-entry-preview h3 {
    font-size: 14px;
    color: #1e40af;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.manual-entry-actions {
    display: flex;
    gap: 12px;
}

.manual-entry-actions .btn {
    flex: 1;
}

/* Responsive Design */
@media (max-width: 640px) {
    .fundraiser-card__stats {
        grid-template-columns: 1fr;
    }

    .manual-entry-content {
        padding: 24px;
    }
}/* Help Bubble Styles */
.help-bubble {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: max-content;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    display: none;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out forwards;
}

.help-bubble.active {
    display: block;
}

.help-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.help-arrow {
    position: absolute;
    top: -6px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-top: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}