/* ==========================================================================
 Button Styles
 ========================================================================== */
/* Hero Primary Buttons */
.hero-primary-btn {
  border-radius: var(--radius-full);
  border: 1px solid;
  position: relative;
  isolation: isolate;
  transition-property: background, background-color, border-color, transform, box-shadow;
  transition-duration: var(--animation-duration-long), var(--animation-duration-long), var(--animation-duration-long), 220ms, 220ms;
  transition-timing-function: var(--animation-easing), var(--animation-easing), var(--animation-easing), cubic-bezier(0.22, 1, 0.36, 1), var(--animation-easing);
  will-change: transform;
  box-shadow: 0 0 12px rgb(255 255 255 / 0.15), 
              0 4px 12px rgb(0 0 0 / 0.1),
              0 2px 4px rgb(0 0 0 / 0.05);
  overflow: visible;
  min-width: 200px;
  backdrop-filter: blur(var(--blur-md)) saturate(var(--backdrop-saturate));
}

/* Override min-width on mobile for hero buttons */
@media (max-width: 767px) {
  .hero-primary-btn {
    min-width: 0 !important;
  }
}

.hero-primary-btn:hover {
  transform: translateY(-2px);
}

.hero-primary-btn:active {
  transform: translateY(0) scale(0.98);
}

.hero-primary-btn-glow {
  background: radial-gradient(circle at 50% 50%, rgb(255 255 255 / 0.2) 0%, transparent 70%);
  opacity: 0.6;
}

.hero-primary-btn-gold .hero-primary-btn-glow {
  background: radial-gradient(circle at 50% 50%, rgb(var(--color-secondary-rgb) / 0.3) 0%, rgb(var(--color-secondary-rgb) / 0.25) 40%, transparent 70%);
}

[data-theme="dark"] .hero-primary-btn-gold .hero-primary-btn-glow {
  background: radial-gradient(circle at 50% 50%, rgb(var(--color-secondary-rgb) / 0.3) 0%, rgb(var(--color-secondary-rgb) / 0.25) 40%, transparent 70%);
}

.hero-primary-btn-blue .hero-primary-btn-glow {
  background: radial-gradient(circle at 50% 50%, rgb(var(--color-primary-rgb) / 0.4) 0%, rgb(var(--color-primary-rgb) / 0.25) 40%, transparent 70%);
}

[data-theme="dark"] .hero-primary-btn-blue .hero-primary-btn-glow {
  background: radial-gradient(circle at 50% 50%, rgb(var(--color-primary-rgb) / 0.4) 0%, rgb(var(--color-primary-rgb) / 0.25) 40%, transparent 70%);
}

.hero-primary-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  padding: 1px;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.3) 0%, rgb(255 255 255 / 0.1) 50%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

/* Gold Button */
.hero-primary-btn-gold {
  background: rgb(var(--color-secondary-rgb) / 0.55);
  border-color: rgb(var(--color-secondary-rgb) / 0.7);
  box-shadow: 0 0 18px rgb(var(--color-secondary-rgb) / 0.4), 0 0 12px rgb(255 255 255 / 0.15), 0 6px 16px rgb(0 0 0 / 0.15);
  color: rgb(var(--color-white-rgb));
}

.hero-primary-btn-gold:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(255 165 84 / 0.85) 0%, rgb(var(--color-secondary-rgb) / 0.8) 50%, rgb(220 120 40 / 0.75) 100%);
  border-color: rgb(255 165 84 / 0.95);
  box-shadow: 0 0 28px rgb(255 165 84 / 0.7), 0 0 20px rgb(255 180 100 / 0.5), 0 8px 24px rgb(0 0 0 / 0.2);
  transform: translateY(-2px);
}

.hero-primary-btn-gold:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

/* KISS Mortgage - Use gold color (#c79f4f) instead of orange */
[data-app="kiss-mortgage"] .hero-primary-btn-gold {
  background: rgb(199 159 79 / 0.55);
  border-color: rgb(199 159 79 / 0.7);
  box-shadow: 0 0 18px rgb(199 159 79 / 0.4), 0 0 12px rgb(255 255 255 / 0.15), 0 6px 16px rgb(0 0 0 / 0.15);
  color: rgb(var(--color-white-rgb));
}

[data-app="kiss-mortgage"] .hero-primary-btn-gold:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(215 180 110 / 0.85) 0%, rgb(199 159 79 / 0.8) 50%, rgb(180 140 60 / 0.75) 100%);
  border-color: rgb(215 180 110 / 0.95);
  box-shadow: 0 0 28px rgb(215 180 110 / 0.7), 0 0 20px rgb(220 190 130 / 0.5), 0 8px 24px rgb(0 0 0 / 0.2);
  transform: translateY(-2px);
}

[data-app="kiss-mortgage"] .hero-primary-btn-gold .hero-primary-btn-glow {
  background: radial-gradient(circle at 50% 50%, rgb(199 159 79 / 0.3) 0%, rgb(199 159 79 / 0.25) 40%, transparent 70%);
}

/* Dark mode gold button - Keep light mode styling */
[data-theme="dark"] .hero-primary-btn-gold {
  color: rgb(var(--color-white-rgb));
  background: rgb(var(--color-secondary-rgb) / 0.55);
  border-color: rgb(var(--color-secondary-rgb) / 0.7);
  box-shadow: 0 0 18px rgb(var(--color-secondary-rgb) / 0.4), 0 0 12px rgb(255 255 255 / 0.15), 0 6px 16px rgb(0 0 0 / 0.15);
}

[data-theme="dark"] .hero-primary-btn-gold:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(255 163 102 / 0.85) 0%, rgb(var(--color-secondary-rgb) / 0.8) 50%, rgb(220 120 40 / 0.75) 100%);
  border-color: rgb(255 163 102 / 0.95);
  box-shadow: 0 0 28px rgb(255 163 102 / 0.7), 0 0 20px rgb(255 180 100 / 0.5), 0 8px 24px rgb(0 0 0 / 0.2);
  transform: translateY(-2px);
}

/* KISS Mortgage - Dark mode gold button */
[data-app="kiss-mortgage"][data-theme="dark"] .hero-primary-btn-gold {
  background: rgb(199 159 79 / 0.55);
  border-color: rgb(199 159 79 / 0.7);
  box-shadow: 0 0 18px rgb(199 159 79 / 0.4), 0 0 12px rgb(255 255 255 / 0.15), 0 6px 16px rgb(0 0 0 / 0.15);
}

[data-app="kiss-mortgage"][data-theme="dark"] .hero-primary-btn-gold:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(215 180 110 / 0.85) 0%, rgb(199 159 79 / 0.8) 50%, rgb(180 140 60 / 0.75) 100%);
  border-color: rgb(215 180 110 / 0.95);
  box-shadow: 0 0 28px rgb(215 180 110 / 0.7), 0 0 20px rgb(220 190 130 / 0.5), 0 8px 24px rgb(0 0 0 / 0.2);
  transform: translateY(-2px);
}

[data-app="kiss-mortgage"][data-theme="dark"] .hero-primary-btn-gold .hero-primary-btn-glow {
  background: radial-gradient(circle at 50% 50%, rgb(199 159 79 / 0.3) 0%, rgb(199 159 79 / 0.25) 40%, transparent 70%);
}

/* Blue Button */
.hero-primary-btn-blue {
  background: rgb(var(--color-primary-rgb) / 0.55);
  border-color: rgb(var(--color-primary-rgb) / 0.7);
  box-shadow: 0 0 18px rgb(var(--color-primary-rgb) / 0.35), 0 0 12px rgb(255 255 255 / 0.15), 0 6px 16px rgb(0 0 0 / 0.15);
  color: rgb(var(--color-white-rgb));
}

.hero-primary-btn-blue:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(40 110 180 / 0.9) 0%, rgb(var(--color-primary-rgb) / 0.85) 50%, rgb(20 60 120 / 0.8) 100%);
  border-color: rgb(40 110 180);
  box-shadow: 0 0 28px rgb(40 110 180 / 0.7), 0 0 20px rgb(60 130 200 / 0.5), 0 8px 24px rgb(0 0 0 / 0.2);
  transform: translateY(-2px);
}

.hero-primary-btn-blue:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

/* Dark mode blue button - Keep light mode styling */
[data-theme="dark"] .hero-primary-btn-blue {
  color: rgb(var(--color-white-rgb));
  background: rgb(var(--color-primary-rgb) / 0.55);
  border-color: rgb(var(--color-primary-rgb) / 0.7);
  box-shadow: 0 0 18px rgb(var(--color-primary-rgb) / 0.35), 0 0 12px rgb(255 255 255 / 0.15), 0 6px 16px rgb(0 0 0 / 0.15);
}

[data-theme="dark"] .hero-primary-btn-blue:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(74 143 255 / 0.9) 0%, rgb(var(--color-primary-rgb) / 0.85) 50%, rgb(60 123 235 / 0.8) 100%);
  border-color: rgb(74 143 255);
  box-shadow: 0 0 28px rgb(var(--color-primary-rgb) / 0.7), 0 0 20px rgb(var(--color-primary-rgb) / 0.5), 0 8px 24px rgb(0 0 0 / 0.2);
  transform: translateY(-2px);
}

/* Glass Buttons */
.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  min-height: 44px; /* Touch target minimum */
  border-radius: var(--radius-button);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  border: 1px solid;
  cursor: pointer;
  transition-property: all;
  transition-duration: var(--animation-duration-long);
  transition-timing-function: var(--animation-easing);
  position: relative;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.btn-glass:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.btn-glass:active:not(:disabled) {
  transform: scale(0.98);
}

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

/* Blue Glass Button */
.btn-glass-blue {
  background: linear-gradient(135deg, rgb(var(--color-primary-rgb) / 0.25) 0%, rgb(var(--color-primary-rgb) / 0.2) 100%);
  border-color: rgb(var(--color-primary-rgb) / 0.3);
  color: rgb(var(--color-primary-rgb));
  box-shadow: 0 2px 8px rgb(var(--color-primary-rgb) / 0.15), 0 1px 4px rgb(0 0 0 / 0.1);
  backdrop-filter: blur(var(--blur-md)) saturate(var(--backdrop-saturate));
}

.btn-glass-blue:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(var(--color-primary-rgb) / 0.35) 0%, rgb(var(--color-primary-rgb) / 0.3) 100%);
  border-color: rgb(var(--color-primary-rgb) / 0.5);
  color: rgb(var(--color-primary-rgb));
  box-shadow: 0 4px 12px rgb(var(--color-primary-rgb) / 0.25), 0 2px 6px rgb(0 0 0 / 0.15);
  transform: translateY(-1px);
  backdrop-filter: blur(var(--blur-lg)) saturate(var(--backdrop-saturate));
}

[data-theme="dark"] .btn-glass-blue {
  background: linear-gradient(135deg, rgb(var(--color-primary-rgb) / 0.3) 0%, rgb(var(--color-primary-rgb) / 0.25) 100%);
  border-color: rgb(var(--color-primary-rgb) / 0.4);
  color: rgb(var(--color-primary-rgb));
  backdrop-filter: blur(var(--blur-lg)) saturate(var(--backdrop-saturate));
  box-shadow: 
    0 2px 8px rgb(var(--color-primary-rgb) / 0.25),
    0 1px 4px rgb(0 0 0 / 0.3),
    inset 0 1px 0 rgb(255 255 255 / 0.08);
}

[data-theme="dark"] .btn-glass-blue:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(var(--color-primary-rgb) / 0.4) 0%, rgb(var(--color-primary-rgb) / 0.35) 100%);
  border-color: rgb(var(--color-primary-rgb) / 0.6);
  color: rgb(var(--color-primary-rgb));
  backdrop-filter: blur(var(--blur-xl)) saturate(var(--backdrop-saturate));
  box-shadow: 
    0 4px 16px rgb(var(--color-primary-rgb) / 0.35),
    0 2px 8px rgb(0 0 0 / 0.4),
    inset 0 1px 0 rgb(255 255 255 / 0.12);
  transform: translateY(-1px);
}

/* Gold Glass Button - Updated with softer orange palette */
.btn-glass-gold {
  background: linear-gradient(135deg, rgb(var(--color-secondary-rgb) / 0.22) 0%, rgb(var(--color-secondary-rgb) / 0.18) 100%);
  border-color: rgb(var(--color-secondary-rgb) / 0.25);
  color: rgb(var(--color-secondary-rgb));
  backdrop-filter: blur(var(--blur-md)) saturate(var(--backdrop-saturate));
  box-shadow: 
    0 2px 8px rgb(var(--color-secondary-rgb) / 0.12),
    0 1px 4px rgb(0 0 0 / 0.08),
    inset 0 1px 0 rgb(255 255 255 / 0.3);
  font-weight: 600;
}

.btn-glass-gold:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(var(--color-secondary-rgb) / 0.3) 0%, rgb(var(--color-secondary-rgb) / 0.25) 100%);
  border-color: rgb(var(--color-secondary-rgb) / 0.4);
  color: rgb(var(--color-secondary-rgb));
  backdrop-filter: blur(var(--blur-lg)) saturate(var(--backdrop-saturate));
  box-shadow: 
    0 4px 12px rgb(var(--color-secondary-rgb) / 0.2),
    0 2px 6px rgb(0 0 0 / 0.1),
    inset 0 1px 0 rgb(255 255 255 / 0.4);
  transform: translateY(-1px);
}

/* KISS Mortgage - Use gold color (#c79f4f) instead of orange */
[data-app="kiss-mortgage"] .btn-glass-gold {
  background: linear-gradient(135deg, rgb(199 159 79 / 0.22) 0%, rgb(199 159 79 / 0.18) 100%);
  border-color: rgb(199 159 79 / 0.25);
  color: rgb(199 159 79);
  backdrop-filter: blur(var(--blur-md)) saturate(var(--backdrop-saturate));
  box-shadow: 
    0 2px 8px rgb(199 159 79 / 0.12),
    0 1px 4px rgb(0 0 0 / 0.08),
    inset 0 1px 0 rgb(255 255 255 / 0.3);
  font-weight: 600;
}

[data-app="kiss-mortgage"] .btn-glass-gold:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(199 159 79 / 0.3) 0%, rgb(199 159 79 / 0.25) 100%);
  border-color: rgb(199 159 79 / 0.4);
  color: rgb(199 159 79);
  backdrop-filter: blur(var(--blur-lg)) saturate(var(--backdrop-saturate));
  box-shadow: 
    0 4px 12px rgb(199 159 79 / 0.2),
    0 2px 6px rgb(0 0 0 / 0.1),
    inset 0 1px 0 rgb(255 255 255 / 0.4);
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-glass-gold {
  background: linear-gradient(135deg, rgb(var(--color-secondary-rgb) / 0.28) 0%, rgb(var(--color-secondary-rgb) / 0.24) 100%);
  border-color: rgb(var(--color-secondary-rgb) / 0.35);
  color: rgb(var(--color-secondary-rgb));
  backdrop-filter: blur(var(--blur-lg)) saturate(var(--backdrop-saturate));
  box-shadow: 
    0 2px 6px rgb(0 0 0 / 0.25),
    0 1px 3px rgb(0 0 0 / 0.2),
    0 0 0 1px rgb(var(--color-secondary-rgb) / 0.15),
    inset 0 1px 0 rgb(255 255 255 / 0.12),
    inset 0 -1px 0 rgb(0 0 0 / 0.15);
}

[data-theme="dark"] .btn-glass-gold:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(var(--color-secondary-rgb) / 0.35) 0%, rgb(var(--color-secondary-rgb) / 0.3) 100%);
  border-color: rgb(var(--color-secondary-rgb) / 0.5);
  color: rgb(var(--color-secondary-rgb));
  backdrop-filter: blur(var(--blur-xl)) saturate(var(--backdrop-saturate));
  box-shadow: 
    0 4px 12px rgb(var(--color-secondary-rgb) / 0.3),
    0 2px 6px rgb(0 0 0 / 0.3),
    0 0 0 1px rgb(var(--color-secondary-rgb) / 0.2),
    inset 0 1px 0 rgb(255 255 255 / 0.18),
    inset 0 -1px 0 rgb(0 0 0 / 0.2);
  transform: translateY(-1px);
}

/* KISS Mortgage - Dark mode gold glass button */
[data-app="kiss-mortgage"][data-theme="dark"] .btn-glass-gold {
  background: linear-gradient(135deg, rgb(199 159 79 / 0.28) 0%, rgb(199 159 79 / 0.24) 100%);
  border-color: rgb(199 159 79 / 0.35);
  color: rgb(199 159 79);
  backdrop-filter: blur(var(--blur-lg)) saturate(var(--backdrop-saturate));
  box-shadow: 
    0 2px 6px rgb(0 0 0 / 0.25),
    0 1px 3px rgb(0 0 0 / 0.2),
    0 0 0 1px rgb(199 159 79 / 0.15),
    inset 0 1px 0 rgb(255 255 255 / 0.12),
    inset 0 -1px 0 rgb(0 0 0 / 0.15);
}

[data-app="kiss-mortgage"][data-theme="dark"] .btn-glass-gold:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(199 159 79 / 0.35) 0%, rgb(199 159 79 / 0.3) 100%);
  border-color: rgb(199 159 79 / 0.5);
  color: rgb(199 159 79);
  backdrop-filter: blur(var(--blur-xl)) saturate(var(--backdrop-saturate));
  box-shadow: 
    0 4px 12px rgb(199 159 79 / 0.3),
    0 2px 6px rgb(0 0 0 / 0.3),
    0 0 0 1px rgb(199 159 79 / 0.2),
    inset 0 1px 0 rgb(255 255 255 / 0.18),
    inset 0 -1px 0 rgb(0 0 0 / 0.2);
  transform: translateY(-1px);
}

/* Enhanced styling - Updated with orange theme */
.glass-card[data-bg="light"] .btn-glass-gold {
  position: relative;
  transition: all var(--animation-duration-long) var(--animation-easing);
  background: linear-gradient(135deg, rgb(var(--color-secondary-rgb) / 0.22) 0%, rgb(var(--color-secondary-rgb) / 0.18) 100%);
  border-color: rgb(var(--color-secondary-rgb) / 0.25);
  color: rgb(var(--color-secondary-rgb));
  font-weight: 600;
  backdrop-filter: blur(var(--blur-md)) saturate(var(--backdrop-saturate));
  box-shadow: 
    0 2px 8px rgb(var(--color-secondary-rgb) / 0.12),
    0 1px 4px rgb(0 0 0 / 0.08),
    inset 0 1px 0 rgb(255 255 255 / 0.3);
}

.glass-card[data-bg="light"] .btn-glass-gold:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(var(--color-secondary-rgb) / 0.3) 0%, rgb(var(--color-secondary-rgb) / 0.25) 100%);
  border-color: rgb(var(--color-secondary-rgb) / 0.4);
  color: rgb(var(--color-secondary-rgb));
  backdrop-filter: blur(var(--blur-lg)) saturate(var(--backdrop-saturate));
  box-shadow: 
    0 4px 12px rgb(var(--color-secondary-rgb) / 0.2),
    0 2px 6px rgb(0 0 0 / 0.1),
    inset 0 1px 0 rgb(255 255 255 / 0.4);
  transform: translateY(-1px);
}

/* KISS Mortgage - Glass card gold button */
[data-app="kiss-mortgage"] .glass-card[data-bg="light"] .btn-glass-gold {
  background: linear-gradient(135deg, rgb(199 159 79 / 0.22) 0%, rgb(199 159 79 / 0.18) 100%);
  border-color: rgb(199 159 79 / 0.25);
  color: rgb(199 159 79);
  box-shadow: 
    0 2px 8px rgb(199 159 79 / 0.12),
    0 1px 4px rgb(0 0 0 / 0.08),
    inset 0 1px 0 rgb(255 255 255 / 0.3);
}

[data-app="kiss-mortgage"] .glass-card[data-bg="light"] .btn-glass-gold:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(199 159 79 / 0.3) 0%, rgb(199 159 79 / 0.25) 100%);
  border-color: rgb(199 159 79 / 0.4);
  color: rgb(199 159 79);
  box-shadow: 
    0 4px 12px rgb(199 159 79 / 0.2),
    0 2px 6px rgb(0 0 0 / 0.1),
    inset 0 1px 0 rgb(255 255 255 / 0.4);
}

[data-theme="dark"] .glass-card[data-bg="light"] .btn-glass-gold {
  background: linear-gradient(135deg, rgb(var(--color-secondary-rgb) / 0.28) 0%, rgb(var(--color-secondary-rgb) / 0.24) 100%);
  border-color: rgb(var(--color-secondary-rgb) / 0.35);
  color: rgb(var(--color-secondary-rgb));
  backdrop-filter: blur(var(--blur-lg)) saturate(var(--backdrop-saturate));
  box-shadow: 
    0 2px 6px rgb(0 0 0 / 0.25),
    0 1px 3px rgb(0 0 0 / 0.2),
    0 0 0 1px rgb(var(--color-secondary-rgb) / 0.15),
    inset 0 1px 0 rgb(255 255 255 / 0.12),
    inset 0 -1px 0 rgb(0 0 0 / 0.15);
}

[data-theme="dark"] .glass-card[data-bg="light"] .btn-glass-gold:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(var(--color-secondary-rgb) / 0.35) 0%, rgb(var(--color-secondary-rgb) / 0.3) 100%);
  border-color: rgb(var(--color-secondary-rgb) / 0.5);
  color: rgb(var(--color-secondary-rgb));
  backdrop-filter: blur(var(--blur-xl)) saturate(var(--backdrop-saturate));
  box-shadow: 
    0 4px 12px rgb(var(--color-secondary-rgb) / 0.3),
    0 2px 6px rgb(0 0 0 / 0.3),
    0 0 0 1px rgb(var(--color-secondary-rgb) / 0.2),
    inset 0 1px 0 rgb(255 255 255 / 0.2),
    inset 0 -1px 0 rgb(0 0 0 / 0.25),
    0 0 40px rgb(var(--color-secondary-rgb) / 0.2);
}

/* KISS Mortgage - Dark mode glass card gold button */
[data-app="kiss-mortgage"][data-theme="dark"] .glass-card[data-bg="light"] .btn-glass-gold {
  background: linear-gradient(135deg, rgb(199 159 79 / 0.28) 0%, rgb(199 159 79 / 0.24) 100%);
  border-color: rgb(199 159 79 / 0.35);
  color: rgb(199 159 79);
  box-shadow: 
    0 2px 6px rgb(0 0 0 / 0.25),
    0 1px 3px rgb(0 0 0 / 0.2),
    0 0 0 1px rgb(199 159 79 / 0.15),
    inset 0 1px 0 rgb(255 255 255 / 0.12),
    inset 0 -1px 0 rgb(0 0 0 / 0.15);
}

[data-app="kiss-mortgage"][data-theme="dark"] .glass-card[data-bg="light"] .btn-glass-gold:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(199 159 79 / 0.35) 0%, rgb(199 159 79 / 0.3) 100%);
  border-color: rgb(199 159 79 / 0.5);
  color: rgb(199 159 79);
  box-shadow: 
    0 4px 12px rgb(199 159 79 / 0.3),
    0 2px 6px rgb(0 0 0 / 0.3),
    0 0 0 1px rgb(199 159 79 / 0.2),
    inset 0 1px 0 rgb(255 255 255 / 0.2),
    inset 0 -1px 0 rgb(0 0 0 / 0.25),
    0 0 40px rgb(199 159 79 / 0.2);
}

/* Green Glass Button */
.btn-glass-green {
  background: linear-gradient(135deg, rgb(var(--color-success-rgb) / 0.15) 0%, rgb(var(--color-success-rgb) / 0.1) 100%);
  border-color: rgb(var(--color-success-rgb) / 0.3);
  color: rgb(var(--color-success-rgb));
  box-shadow: 0 2px 8px rgb(var(--color-success-rgb) / 0.15), 0 1px 4px rgb(0 0 0 / 0.1);
}

.btn-glass-green:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(var(--color-success-rgb) / 0.25) 0%, rgb(var(--color-success-rgb) / 0.2) 100%);
  border-color: rgb(var(--color-success-rgb) / 0.5);
  color: rgb(var(--color-success-rgb));
  box-shadow: 0 4px 12px rgb(var(--color-success-rgb) / 0.25), 0 2px 6px rgb(0 0 0 / 0.15);
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-glass-green {
  background: linear-gradient(135deg, rgb(var(--color-success-rgb) / 0.15) 0%, rgb(var(--color-success-rgb) / 0.1) 100%);
  border-color: rgb(var(--color-success-rgb) / 0.3);
  color: rgb(var(--color-success-rgb));
  box-shadow: 0 2px 8px rgb(var(--color-success-rgb) / 0.2), 0 1px 4px rgb(0 0 0 / 0.2);
}

[data-theme="dark"] .btn-glass-green:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(var(--color-success-rgb) / 0.25) 0%, rgb(var(--color-success-rgb) / 0.2) 100%);
  border-color: rgb(var(--color-success-rgb) / 0.5);
  box-shadow: 0 4px 12px rgb(var(--color-success-rgb) / 0.3), 0 2px 6px rgb(0 0 0 / 0.3);
}

/* Red Glass Button */
.btn-glass-red {
  background: linear-gradient(135deg, rgb(var(--color-error-rgb) / 0.15) 0%, rgb(var(--color-error-rgb) / 0.1) 100%);
  border-color: rgb(var(--color-error-rgb) / 0.3);
  color: rgb(var(--color-error-rgb));
  box-shadow: 0 2px 8px rgb(var(--color-error-rgb) / 0.15), 0 1px 4px rgb(0 0 0 / 0.1);
}

.btn-glass-red:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(var(--color-error-rgb) / 0.25) 0%, rgb(var(--color-error-rgb) / 0.2) 100%);
  border-color: rgb(var(--color-error-rgb) / 0.5);
  color: rgb(var(--color-error-rgb));
  box-shadow: 0 4px 12px rgb(var(--color-error-rgb) / 0.25), 0 2px 6px rgb(0 0 0 / 0.15);
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-glass-red {
  background: linear-gradient(135deg, rgb(var(--color-error-rgb) / 0.15) 0%, rgb(var(--color-error-rgb) / 0.1) 100%);
  border-color: rgb(var(--color-error-rgb) / 0.3);
  color: rgb(var(--color-error-rgb));
  box-shadow: 0 2px 8px rgb(var(--color-error-rgb) / 0.2), 0 1px 4px rgb(0 0 0 / 0.2);
}

[data-theme="dark"] .btn-glass-red:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(var(--color-error-rgb) / 0.25) 0%, rgb(var(--color-error-rgb) / 0.2) 100%);
  border-color: rgb(var(--color-error-rgb) / 0.5);
  box-shadow: 0 4px 12px rgb(var(--color-error-rgb) / 0.3), 0 2px 6px rgb(0 0 0 / 0.3);
}

/* Button Size Modifiers */
.btn-glass--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
}

/* Desktop Login Button */
.desktop-login-btn {
  /* Base button styles */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.25rem, 0.5vw, var(--space-2));
  padding: clamp(0.375rem, 0.5vw, var(--space-2)) clamp(0.5rem, 1vw, var(--space-4));
  border-radius: var(--radius-button);
  font-size: clamp(0.75rem, 0.875vw, var(--font-size-sm));
  font-weight: var(--font-weight-semibold);
  font-family: inherit;
  text-decoration: none;
  text-align: center;
  border: 1px solid;
  cursor: pointer;
  transition-property: all;
  transition-duration: var(--animation-duration-base);
  transition-timing-function: var(--animation-easing);
  position: relative;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  flex-shrink: 0; /* Prevent button from shrinking too much */
  min-width: -moz-fit-content;
  min-width: fit-content; /* Ensure button maintains minimum size */
  /* Orange variant styles */
  background: linear-gradient(135deg, rgb(var(--color-secondary-rgb) / 0.25) 0%, rgb(var(--color-secondary-rgb) / 0.2) 100%);
  border-color: rgb(var(--color-secondary-rgb) / 0.3);
  color: rgb(0 0 0);
  box-shadow: 0 2px 8px rgb(var(--color-secondary-rgb) / 0.15), 0 1px 4px rgb(0 0 0 / 0.1);
}

.desktop-login-btn:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(var(--color-secondary-rgb) / 0.35) 0%, rgb(var(--color-secondary-rgb) / 0.3) 100%);
  border-color: rgb(var(--color-secondary-rgb) / 0.5);
  color: rgb(0 0 0);
  box-shadow: 0 4px 12px rgb(var(--color-secondary-rgb) / 0.25), 0 2px 6px rgb(0 0 0 / 0.15);
  transform: translateY(-1px);
}

.desktop-login-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.desktop-login-btn:focus-visible {
  outline: 2px solid rgb(var(--color-secondary-rgb) / 0.5);
  outline-offset: 2px;
}

.desktop-login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

[data-theme="dark"] .desktop-login-btn {
  background: linear-gradient(135deg, rgb(var(--color-secondary-rgb) / 0.25) 0%, rgb(var(--color-secondary-rgb) / 0.2) 100%);
  border-color: rgb(var(--color-secondary-rgb) / 0.3);
  color: rgb(255 255 255) !important;
  box-shadow: 0 2px 8px rgb(var(--color-secondary-rgb) / 0.2), 0 1px 4px rgb(0 0 0 / 0.2);
}

[data-theme="dark"] .desktop-login-btn .login-icon,
[data-theme="dark"] .desktop-login-btn .login-text {
  color: rgb(255 255 255) !important;
}

[data-theme="dark"] .desktop-login-btn:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(var(--color-secondary-rgb) / 0.35) 0%, rgb(var(--color-secondary-rgb) / 0.3) 100%);
  border-color: rgb(var(--color-secondary-rgb) / 0.5);
  color: rgb(255 255 255) !important;
  box-shadow: 0 4px 12px rgb(var(--color-secondary-rgb) / 0.3), 0 2px 6px rgb(0 0 0 / 0.3);
}

[data-theme="dark"] .desktop-login-btn:hover:not(:disabled):not(:active) .login-icon,
[data-theme="dark"] .desktop-login-btn:hover:not(:disabled):not(:active) .login-text {
  color: rgb(255 255 255) !important;
}

/* KISS Mortgage - Desktop Login Button - Use gold color (#c79f4f) instead of orange */
[data-app="kiss-mortgage"] .desktop-login-btn {
  background: linear-gradient(135deg, rgb(199 159 79 / 0.25) 0%, rgb(199 159 79 / 0.2) 100%);
  border-color: rgb(199 159 79 / 0.3);
  color: rgb(0 0 0);
  box-shadow: 0 2px 8px rgb(199 159 79 / 0.15), 0 1px 4px rgb(0 0 0 / 0.1);
}

[data-app="kiss-mortgage"] .desktop-login-btn:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(199 159 79 / 0.35) 0%, rgb(199 159 79 / 0.3) 100%);
  border-color: rgb(199 159 79 / 0.5);
  color: rgb(0 0 0);
  box-shadow: 0 4px 12px rgb(199 159 79 / 0.25), 0 2px 6px rgb(0 0 0 / 0.15);
  transform: translateY(-1px);
}

[data-app="kiss-mortgage"] .desktop-login-btn:focus-visible {
  outline: 2px solid rgb(199 159 79 / 0.5);
  outline-offset: 2px;
}

[data-app="kiss-mortgage"][data-theme="dark"] .desktop-login-btn {
  background: linear-gradient(135deg, rgb(199 159 79 / 0.25) 0%, rgb(199 159 79 / 0.2) 100%);
  border-color: rgb(199 159 79 / 0.3);
  color: rgb(255 255 255) !important;
  box-shadow: 0 2px 8px rgb(199 159 79 / 0.2), 0 1px 4px rgb(0 0 0 / 0.2);
}

[data-app="kiss-mortgage"][data-theme="dark"] .desktop-login-btn .login-icon,
[data-app="kiss-mortgage"][data-theme="dark"] .desktop-login-btn .login-text {
  color: rgb(255 255 255) !important;
}

[data-app="kiss-mortgage"][data-theme="dark"] .desktop-login-btn:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(199 159 79 / 0.35) 0%, rgb(199 159 79 / 0.3) 100%);
  border-color: rgb(199 159 79 / 0.5);
  color: rgb(255 255 255) !important;
  box-shadow: 0 4px 12px rgb(199 159 79 / 0.3), 0 2px 6px rgb(0 0 0 / 0.3);
}

[data-app="kiss-mortgage"][data-theme="dark"] .desktop-login-btn:hover:not(:disabled):not(:active) .login-icon,
[data-app="kiss-mortgage"][data-theme="dark"] .desktop-login-btn:hover:not(:disabled):not(:active) .login-text {
  color: rgb(255 255 255) !important;
}

/* Ensure buttons with this class don't have default browser button styles */
button.desktop-login-btn {
  font-family: inherit;
}

.desktop-login-btn .login-icon {
  width: clamp(1rem, 1.125vw, 1.125rem);
  height: clamp(1rem, 1.125vw, 1.125rem);
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0; /* Prevent icon from shrinking */
}

.desktop-login-btn .login-text {
  font-size: clamp(0.75rem, 0.875vw, var(--font-size-sm));
  min-width: 0; /* Allow text to shrink */
}

.desktop-login-btn .user-name {
  font-size: var(--font-size-sm);
  max-width: clamp(80px, 12vw, 120px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0; /* Allow text to shrink */
}

/* Desktop Logout Button */
.desktop-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-button);
  background: rgb(var(--color-error-rgb) / 0.1);
  border: 1px solid rgb(var(--color-error-rgb) / 0.3);
  color: rgb(var(--color-error-rgb));
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-align: center;
  cursor: pointer;
  transition-property: all;
  transition-duration: var(--animation-duration-base);
  transition-timing-function: var(--animation-easing);
  -webkit-tap-highlight-color: transparent;
}

.desktop-logout-btn:hover {
  background: rgb(var(--color-error-rgb) / 0.15);
  border-color: rgb(var(--color-error-rgb) / 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgb(var(--color-error-rgb) / 0.2);
}

.desktop-logout-btn:active {
  transform: translateY(0) scale(0.98);
}

.desktop-logout-btn:focus-visible {
  outline: 2px solid rgb(var(--color-error-rgb) / 0.5);
  outline-offset: 2px;
}

[data-theme="dark"] .desktop-logout-btn {
  background: rgb(var(--color-error-rgb) / 0.15);
  border-color: rgb(var(--color-error-rgb) / 0.3);
  color: rgb(248 113 113);
}

[data-theme="dark"] .desktop-logout-btn:hover {
  background: rgb(var(--color-error-rgb) / 0.2);
  border-color: rgb(var(--color-error-rgb) / 0.4);
  box-shadow: 0 4px 12px rgb(var(--color-error-rgb) / 0.3);
}

.desktop-logout-btn .logout-icon {
  width: 1.125rem;
  height: 1.125rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.desktop-logout-btn .logout-text {
  font-size: var(--font-size-sm);
}

/* Desktop Account Container */
.desktop-account-container {
  position: relative;
}

/* Qualification Funnel - Light Mode Button Opacity Enhancement */
/* Make Back and Create Account buttons more opaque in light mode for better readability */
body:not([data-theme="dark"]) #qualificationFunnelModal .btn-glass-blue {
  background: linear-gradient(135deg, rgb(var(--color-primary-rgb) / 0.25) 0%, rgb(var(--color-primary-rgb) / 0.2) 100%);
  border-color: rgb(var(--color-primary-rgb) / 0.4);
  color: rgb(var(--color-white-rgb));
  box-shadow: 0 2px 8px rgb(var(--color-primary-rgb) / 0.2), 0 1px 4px rgb(0 0 0 / 0.1);
}

body:not([data-theme="dark"]) #qualificationFunnelModal .btn-glass-blue:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(var(--color-primary-rgb) / 0.35) 0%, rgb(var(--color-primary-rgb) / 0.3) 100%);
  border-color: rgb(var(--color-primary-rgb) / 0.6);
  color: rgb(var(--color-white-rgb));
  box-shadow: 0 4px 12px rgb(var(--color-primary-rgb) / 0.3), 0 2px 6px rgb(0 0 0 / 0.15);
}

body:not([data-theme="dark"]) #qualificationFunnelModal .btn-glass-gold {
  background: linear-gradient(135deg, rgb(var(--color-secondary-rgb) / 0.35) 0%, rgb(var(--color-secondary-rgb) / 0.3) 100%);
  border-color: rgb(var(--color-secondary-rgb) / 0.6);
  box-shadow: 
    0 2px 4px rgb(0 0 0 / 0.15),
    0 1px 2px rgb(0 0 0 / 0.1),
    0 0 0 1px rgb(var(--color-secondary-rgb) / 0.15),
    inset 0 1px 0 rgb(255 255 255 / 0.3),
    inset 0 -1px 0 rgb(0 0 0 / 0.08);
}

body:not([data-theme="dark"]) #qualificationFunnelModal .btn-glass-gold:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(var(--color-secondary-rgb) / 0.42) 0%, rgb(var(--color-secondary-rgb) / 0.37) 100%);
  border-color: rgb(var(--color-secondary-rgb) / 0.7);
  box-shadow: 
    0 4px 8px rgb(0 0 0 / 0.18),
    0 2px 4px rgb(0 0 0 / 0.12),
    0 0 0 1px rgb(var(--color-secondary-rgb) / 0.2),
    inset 0 1px 0 rgb(255 255 255 / 0.35),
    inset 0 -1px 0 rgb(0 0 0 / 0.1);
}

/* KISS Mortgage - Qualification funnel gold button */
body:not([data-theme="dark"])[data-app="kiss-mortgage"] #qualificationFunnelModal .btn-glass-gold {
  background: linear-gradient(135deg, rgb(199 159 79 / 0.35) 0%, rgb(199 159 79 / 0.3) 100%);
  border-color: rgb(199 159 79 / 0.6);
  box-shadow: 
    0 2px 4px rgb(0 0 0 / 0.15),
    0 1px 2px rgb(0 0 0 / 0.1),
    0 0 0 1px rgb(199 159 79 / 0.15),
    inset 0 1px 0 rgb(255 255 255 / 0.3),
    inset 0 -1px 0 rgb(0 0 0 / 0.08);
}

body:not([data-theme="dark"])[data-app="kiss-mortgage"] #qualificationFunnelModal .btn-glass-gold:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(199 159 79 / 0.42) 0%, rgb(199 159 79 / 0.37) 100%);
  border-color: rgb(199 159 79 / 0.7);
  box-shadow: 
    0 4px 8px rgb(0 0 0 / 0.18),
    0 2px 4px rgb(0 0 0 / 0.12),
    0 0 0 1px rgb(199 159 79 / 0.2),
    inset 0 1px 0 rgb(255 255 255 / 0.35),
    inset 0 -1px 0 rgb(0 0 0 / 0.1);
}

/* Profile Settings Dashboard - Enhanced Save Changes button visibility */
body:not([data-theme="dark"]) .glass-card[data-bg="light"] .btn-glass-blue {
  background: linear-gradient(135deg, rgb(var(--color-primary-rgb) / 0.45) 0%, rgb(var(--color-primary-rgb) / 0.4) 100%);
  border-color: rgb(var(--color-primary-rgb) / 0.6);
  color: rgb(255 255 255);
  box-shadow: 0 3px 10px rgb(var(--color-primary-rgb) / 0.3), 0 1px 4px rgb(0 0 0 / 0.15);
  backdrop-filter: blur(var(--blur-md)) saturate(var(--backdrop-saturate));
}

body:not([data-theme="dark"]) .glass-card[data-bg="light"] .btn-glass-blue:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(var(--color-primary-rgb) / 0.6) 0%, rgb(var(--color-primary-rgb) / 0.55) 100%);
  border-color: rgb(var(--color-primary-rgb) / 0.75);
  color: rgb(255 255 255);
  box-shadow: 0 5px 15px rgb(var(--color-primary-rgb) / 0.4), 0 2px 6px rgb(0 0 0 / 0.2);
  transform: translateY(-1px);
  backdrop-filter: blur(var(--blur-lg)) saturate(var(--backdrop-saturate));
}

[data-theme="dark"] .glass-card[data-bg="light"] .btn-glass-blue {
  background: linear-gradient(135deg, rgb(var(--color-primary-rgb) / 0.5) 0%, rgb(var(--color-primary-rgb) / 0.45) 100%);
  border-color: rgb(var(--color-primary-rgb) / 0.65);
  color: rgb(255 255 255);
  box-shadow: 0 3px 12px rgb(var(--color-primary-rgb) / 0.4), 0 1px 4px rgb(0 0 0 / 0.3);
  backdrop-filter: blur(var(--blur-md)) saturate(var(--backdrop-saturate));
}

[data-theme="dark"] .glass-card[data-bg="light"] .btn-glass-blue:hover:not(:disabled):not(:active) {
  background: linear-gradient(135deg, rgb(var(--color-primary-rgb) / 0.65) 0%, rgb(var(--color-primary-rgb) / 0.6) 100%);
  border-color: rgb(var(--color-primary-rgb) / 0.8);
  color: rgb(255 255 255);
  box-shadow: 0 5px 18px rgb(var(--color-primary-rgb) / 0.5), 0 2px 8px rgb(0 0 0 / 0.4);
  transform: translateY(-1px);
  backdrop-filter: blur(var(--blur-lg)) saturate(var(--backdrop-saturate));
}


/* ==========================================================================
 Typography & Glass Card Component
 ========================================================================== */
/* Semantic text colors */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-muted { color: var(--text-muted); }

/* Base element colors */
label, p, h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
}

/* Premium Typography - Ensure headings use theme colors */
/* Exception: Hero section and dark backgrounds always use white text */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero section headings always white - override theme colors */
#hero h1, #hero h2, #hero h3, #hero h4, #hero h5, #hero h6,
.hero-title, .hero-title-main, .hero-title-gold {
  color: rgb(var(--color-white-rgb));
}

h1 { font-size: var(--fluid-5xl); font-weight: 700; }
h2 { font-size: var(--fluid-4xl); font-weight: 600; }
h3 { font-size: var(--fluid-3xl); font-weight: 600; }
h4 { font-size: var(--fluid-xl); font-weight: 500; }
h5 { font-size: var(--fluid-lg); font-weight: 500; }
h6 { font-size: var(--fluid-base); font-weight: 500; }

/* Theme-aware gray utilities - Override Tailwind defaults with higher specificity */
body .text-gray-700 { 
  color: var(--text-primary); 
}
body[data-theme="dark"] .text-gray-700 { 
  color: var(--text-secondary); 
}
body .text-gray-600 { 
  color: var(--text-secondary); 
}
body[data-theme="dark"] .text-gray-600 { 
  color: var(--text-tertiary); 
}
body .text-gray-400 { 
  color: var(--text-tertiary); 
}
body[data-theme="dark"] .text-gray-400 { 
  color: var(--text-muted); 
}

/* Theme-aware mortgage-dark - Override Tailwind hardcoded value with higher specificity */
body .text-mortgage-dark {
  color: var(--text-primary);
}
body[data-theme="dark"] .text-mortgage-dark {
  color: var(--text-primary);
}

/* ==========================================================================
   Typography Component Styles
   ========================================================================== */
/* Note: Base .glass-card styles are now in utilities/_glass.css */
/* This file contains typography-specific glass card text styling */

/* Section Header Styles */
.section-header {
  margin-bottom: var(--space-12); /* 3rem - external spacing between sections */
}

.section-title {
  font-size: var(--fluid-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-divider {
  width: 4rem;
  height: 0.3rem;
  background: linear-gradient(to right, rgb(var(--color-primary-rgb)), rgb(var(--color-primary-rgb) / 0.8), rgb(var(--color-primary-rgb) / 0.4));
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-6);
  box-shadow: 0 2px 4px rgb(var(--color-primary-rgb) / 0.2);
}

[data-theme="dark"] .section-divider {
  background: linear-gradient(to right, rgb(var(--color-secondary-rgb) / 0.8), rgb(var(--color-secondary-rgb) / 0.4), transparent);
}

.section-subtitle {
  font-size: var(--fluid-lg);
  color: var(--text-secondary);
  max-width: 3xl;
  margin: 0 auto;
  line-height: 1.7;
}

[data-theme="dark"] .section-subtitle {
  color: var(--text-secondary);
}

/* Glass card text colors */
.glass-card[data-bg="light"] h1,
.glass-card[data-bg="light"] h2,
.glass-card[data-bg="light"] h3,
.glass-card[data-bg="light"] h4,
.glass-card[data-bg="light"] h5,
.glass-card[data-bg="light"] h6 {
  color: var(--text-primary);
}

/* Override hero white text for glass cards with light background */
#hero .glass-card[data-bg="light"] h1,
#hero .glass-card[data-bg="light"] h2,
#hero .glass-card[data-bg="light"] h3,
#hero .glass-card[data-bg="light"] h4,
#hero .glass-card[data-bg="light"] h5,
#hero .glass-card[data-bg="light"] h6 {
  color: rgb(var(--color-primary-rgb)) !important;
}

[data-theme="dark"] #hero .glass-card[data-bg="light"] h1,
[data-theme="dark"] #hero .glass-card[data-bg="light"] h2,
[data-theme="dark"] #hero .glass-card[data-bg="light"] h3,
[data-theme="dark"] #hero .glass-card[data-bg="light"] h4,
[data-theme="dark"] #hero .glass-card[data-bg="light"] h5,
[data-theme="dark"] #hero .glass-card[data-bg="light"] h6 {
  color: rgb(var(--color-white-rgb)) !important;
}

.glass-card[data-bg="light"] p {
  color: var(--text-secondary);
}

/* Override hero paragraph styles for glass cards with light background - remove glow and set black text */
#hero .glass-card[data-bg="light"] p {
  color: #000000 !important;
  text-shadow: none !important;
}

[data-theme="dark"] #hero .glass-card[data-bg="light"] p {
  color: rgba(255, 255, 255, 0.8) !important;
  text-shadow: none !important;
}

/* Note: Glass card fallback styles are in utilities/_glass.css */


/* ==========================================================================
   Glass Form Inputs & Selects
   ========================================================================== */
/* Glass-styled form inputs - using higher specificity to avoid !important */
:where(input[type="text"]),
:where(input[type="email"]),
:where(input[type="tel"]),
:where(input[type="number"]),
:where(input[type="password"]),
:where(input[type="date"]),
:where(input[type="time"]),
:where(textarea),
:where(select) {
  background: rgb(255 255 255 / 0.6);
  backdrop-filter: blur(var(--blur-sm)) saturate(var(--backdrop-saturate));
  border: 1.5px solid rgb(var(--color-primary-rgb) / 0.2);
  border-radius: var(--radius-input);
  color: var(--text-primary);
  padding: var(--space-3) var(--space-4);
  min-height: var(--touch-target);
  transition-property: all;
  transition-duration: var(--duration-slow);
  transition-timing-function: var(--easing-base);
}

:where(input[type="text"]:focus),
:where(input[type="email"]:focus),
:where(input[type="tel"]:focus),
:where(input[type="number"]:focus),
:where(input[type="password"]:focus),
:where(input[type="date"]:focus),
:where(input[type="time"]:focus),
:where(textarea:focus),
:where(select:focus) {
  background: rgb(255 255 255 / 0.8);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgb(var(--color-primary-rgb) / 0.1),
              0 4px 12px rgb(var(--color-primary-rgb) / 0.15);
  outline: none;
}

/* Dark mode form inputs - consolidated - matching sign-in input styles */
[data-theme="dark"] :where(input[type="text"]),
[data-theme="dark"] :where(input[type="email"]),
[data-theme="dark"] :where(input[type="tel"]),
[data-theme="dark"] :where(input[type="number"]),
[data-theme="dark"] :where(input[type="password"]),
[data-theme="dark"] :where(input[type="date"]),
[data-theme="dark"] :where(input[type="time"]),
[data-theme="dark"] :where(textarea),
[data-theme="dark"] :where(select) {
  background: rgb(var(--color-neutral-800-rgb) / 0.5) !important;
  border-color: rgb(var(--color-neutral-400-rgb) / 0.2);
  color: var(--text-primary);
}

[data-theme="dark"] :where(input[type="text"]:focus),
[data-theme="dark"] :where(input[type="email"]:focus),
[data-theme="dark"] :where(input[type="tel"]:focus),
[data-theme="dark"] :where(input[type="number"]:focus),
[data-theme="dark"] :where(input[type="password"]:focus),
[data-theme="dark"] :where(input[type="date"]:focus),
[data-theme="dark"] :where(input[type="time"]:focus),
[data-theme="dark"] :where(textarea:focus),
[data-theme="dark"] :where(select:focus) {
  background: rgb(var(--color-neutral-800-rgb) / 0.7) !important;
  border-color: rgb(var(--color-primary-rgb) / 0.4);
  box-shadow: 0 0 0 3px rgb(var(--color-primary-rgb) / 0.15),
              0 4px 12px rgb(var(--color-primary-rgb) / 0.2);
}

/* Dark mode placeholder text - white color to match text */
[data-theme="dark"] :where(input[type="text"])::-moz-placeholder, [data-theme="dark"] :where(input[type="email"])::-moz-placeholder, [data-theme="dark"] :where(input[type="tel"])::-moz-placeholder, [data-theme="dark"] :where(input[type="number"])::-moz-placeholder, [data-theme="dark"] :where(input[type="password"])::-moz-placeholder, [data-theme="dark"] :where(input[type="date"])::-moz-placeholder, [data-theme="dark"] :where(input[type="time"])::-moz-placeholder, [data-theme="dark"] :where(textarea)::-moz-placeholder, [data-theme="dark"] :where(select)::-moz-placeholder {
  color: var(--text-primary);
  opacity: 0.6;
}
[data-theme="dark"] :where(input[type="text"])::placeholder,
[data-theme="dark"] :where(input[type="email"])::placeholder,
[data-theme="dark"] :where(input[type="tel"])::placeholder,
[data-theme="dark"] :where(input[type="number"])::placeholder,
[data-theme="dark"] :where(input[type="password"])::placeholder,
[data-theme="dark"] :where(input[type="date"])::placeholder,
[data-theme="dark"] :where(input[type="time"])::placeholder,
[data-theme="dark"] :where(textarea)::placeholder,
[data-theme="dark"] :where(select)::placeholder {
  color: var(--text-primary);
  opacity: 0.6;
}

/* Webkit browser support for placeholder */
[data-theme="dark"] :where(input[type="text"])::-webkit-input-placeholder,
[data-theme="dark"] :where(input[type="email"])::-webkit-input-placeholder,
[data-theme="dark"] :where(input[type="tel"])::-webkit-input-placeholder,
[data-theme="dark"] :where(input[type="number"])::-webkit-input-placeholder,
[data-theme="dark"] :where(input[type="password"])::-webkit-input-placeholder,
[data-theme="dark"] :where(input[type="date"])::-webkit-input-placeholder,
[data-theme="dark"] :where(input[type="time"])::-webkit-input-placeholder,
[data-theme="dark"] :where(textarea)::-webkit-input-placeholder,
[data-theme="dark"] :where(select)::-webkit-input-placeholder {
  color: var(--text-primary);
  opacity: 0.6;
}

/* Firefox placeholder support */
[data-theme="dark"] :where(input[type="text"])::-moz-placeholder,
[data-theme="dark"] :where(input[type="email"])::-moz-placeholder,
[data-theme="dark"] :where(input[type="tel"])::-moz-placeholder,
[data-theme="dark"] :where(input[type="number"])::-moz-placeholder,
[data-theme="dark"] :where(input[type="password"])::-moz-placeholder,
[data-theme="dark"] :where(input[type="date"])::-moz-placeholder,
[data-theme="dark"] :where(input[type="time"])::-moz-placeholder,
[data-theme="dark"] :where(textarea)::-moz-placeholder,
[data-theme="dark"] :where(select)::-moz-placeholder {
  color: var(--text-primary);
  opacity: 0.6;
}

/* ==========================================================================
   Prevent Mobile Zoom on Input Fields - Sitewide
   ========================================================================== */
/* iOS Safari and some Android browsers automatically zoom when input font-size < 16px
   This ensures ALL form inputs have at least 16px on mobile to prevent zoom.
   Applied sitewide to all input types that users commonly interact with. */
@media screen and (max-width: 768px) {
  /* All common input types that can trigger zoom */
  :where(input[type="text"]),
  :where(input[type="email"]),
  :where(input[type="password"]),
  :where(input[type="tel"]),
  :where(input[type="number"]),
  :where(input[type="date"]),
  :where(input[type="time"]),
  :where(input[type="search"]),
  :where(input[type="url"]),
  :where(textarea) {
    font-size: 16px !important;
  }
  
  /* Dark mode variants */
  [data-theme="dark"] :where(input[type="text"]),
  [data-theme="dark"] :where(input[type="email"]),
  [data-theme="dark"] :where(input[type="password"]),
  [data-theme="dark"] :where(input[type="tel"]),
  [data-theme="dark"] :where(input[type="number"]),
  [data-theme="dark"] :where(input[type="date"]),
  [data-theme="dark"] :where(input[type="time"]),
  [data-theme="dark"] :where(input[type="search"]),
  [data-theme="dark"] :where(input[type="url"]),
  [data-theme="dark"] :where(textarea) {
    font-size: 16px !important;
  }
  
  /* Specific classes that might be used for inputs */
  .mobile-signin-input,
  input.mobile-signin-input {
    font-size: 16px !important;
  }
}

/* ==========================================================================
   Google Maps Autocomplete Dropdown Styling
   ========================================================================== */
/* Ensure Google Maps Places Autocomplete dropdown is visible and above other elements */
.pac-container {
  z-index: 9999 !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 10px 40px rgb(0 0 0 / 0.15),
              0 6px 20px rgb(0 0 0 / 0.1) !important;
  border: 1px solid rgb(var(--color-primary-rgb) / 0.2) !important;
  margin-top: 4px !important;
  background: rgb(255 255 255 / 0.98) !important;
  backdrop-filter: blur(var(--blur-md)) saturate(var(--backdrop-saturate)) !important;
  font-family: inherit !important;
}

[data-theme="dark"] .pac-container {
  background: rgb(var(--color-neutral-900-rgb) / 0.98) !important;
  border-color: rgb(var(--color-neutral-400-rgb) / 0.3) !important;
  box-shadow: 0 10px 40px rgb(0 0 0 / 0.5),
              0 6px 20px rgb(0 0 0 / 0.4) !important;
}

.pac-item {
  padding: 12px 16px !important;
  cursor: pointer !important;
  border-top: 1px solid rgb(var(--color-primary-rgb) / 0.1) !important;
  font-size: 14px !important;
  color: var(--text-primary) !important;
  transition: background-color 0.2s ease !important;
}

.pac-item:first-child {
  border-top: none !important;
}

.pac-item:hover,
.pac-item-selected {
  background-color: rgb(var(--color-primary-rgb) / 0.1) !important;
}

[data-theme="dark"] .pac-item {
  border-top-color: rgb(var(--color-neutral-400-rgb) / 0.2) !important;
}

[data-theme="dark"] .pac-item:hover,
[data-theme="dark"] .pac-item-selected {
  background-color: rgb(var(--color-primary-rgb) / 0.2) !important;
}

.pac-icon {
  margin-right: 8px !important;
}

.pac-item-query {
  color: var(--text-primary) !important;
  font-weight: 500 !important;
}

.pac-matched {
  font-weight: 600 !important;
  color: var(--color-primary) !important;
}

/* Ensure parent containers don't clip the autocomplete dropdown */
.equity-calculator-container,
.glass-card {
  overflow: visible !important;
}

/* Ensure the form container allows overflow for autocomplete */
.equity-calculator-container form {
  position: relative;
  z-index: 1;
  overflow: visible !important;
}

/* ==========================================================================
   Responsive Form Grid Patterns
   ========================================================================== */
/* Standard form grid - 1 column on mobile, 2 on tablet+ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap-md);
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 3-column form grid for desktop */
.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap-md);
}

@media (min-width: 768px) {
  .form-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Full-width form item that spans all columns */
.form-item-full {
  grid-column: 1 / -1;
}

/* ==========================================================================
   Touch-Friendly Form Elements
   ========================================================================== */
/* Ensure buttons and submit inputs have adequate touch targets */
button,
.button,
[type="button"],
[type="submit"],
[type="reset"] {
  min-height: var(--touch-target);
  padding: var(--space-3) var(--space-6);
}

/* Labels should have adequate spacing for readability */
label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: var(--font-weight-medium);
}

/* Form field wrapper for consistent spacing */
.form-field {
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .form-field {
    margin-bottom: var(--space-5);
  }
}


/* ==========================================================================
   Glass Tables
   ========================================================================== */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgb(255 255 255 / 0.5);
  backdrop-filter: blur(var(--blur-sm)) saturate(var(--backdrop-saturate));
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid rgb(var(--color-primary-rgb) / 0.15);
}

[data-theme="dark"] table {
  background: rgb(var(--color-neutral-900-rgb) / 0.4);
  border-color: rgb(var(--color-neutral-400-rgb) / 0.2);
}

table thead {
  background: linear-gradient(135deg, rgb(var(--color-primary-rgb) / 0.15), rgb(var(--color-primary-rgb) / 0.1));
}

[data-theme="dark"] table thead {
  background: linear-gradient(135deg, rgb(var(--color-primary-rgb) / 0.2), rgb(var(--color-primary-rgb) / 0.1));
}

table th {
  padding: var(--space-4);
  text-align: left;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  border-bottom: 1px solid rgb(var(--color-primary-rgb) / 0.2);
}

[data-theme="dark"] table th {
  border-bottom-color: rgb(var(--color-neutral-400-rgb) / 0.2);
}

table td {
  padding: var(--space-4);
  border-bottom: 1px solid rgb(var(--color-primary-rgb) / 0.1);
  color: var(--text-primary);
}

[data-theme="dark"] table td {
  border-bottom-color: rgb(var(--color-neutral-400-rgb) / 0.1);
}

table tbody tr:last-child td {
  border-bottom: none;
}

table tbody tr:hover {
  background: rgb(var(--color-primary-rgb) / 0.05);
}

[data-theme="dark"] table tbody tr:hover {
  background: rgb(var(--color-primary-rgb) / 0.1);
}

/* ==========================================================================
   Cost of Waiting Table - Dark Mode Row Behavior
   ========================================================================== */
/* In dark mode, swap static and hover backgrounds for the data rows only */
[data-theme="dark"] .cost-of-waiting-table tbody tr {
  /* Use the darker, tinted background that was previously the hover state */
  background: rgb(var(--color-primary-rgb) / 0.1);
}

/* On hover in dark mode, use a semi-dark gray background for both rows */
[data-theme="dark"] .cost-of-waiting-table tbody tr:hover {
  background: rgb(var(--color-neutral-800-rgb) / 0.9);
}

/* When hovering in dark mode, keep specific Cost of Waiting values white
   for maximum contrast against the semi-dark hover background */
[data-theme="dark"] .cost-of-waiting-table tbody tr:hover .cost-of-waiting-value {
  color: rgb(255 255 255); /* White */
}

/* ==========================================================================
   Responsive Table Patterns
   ========================================================================== */
/* Standardize padding with responsive adjustments */
table th,
table td {
  padding: var(--space-4);
}

@media (min-width: 768px) {
  table th,
  table td {
    padding: var(--space-4) var(--space-6);
  }
}

/* Sticky table header for wide tables */
.sticky-header thead {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: linear-gradient(135deg, rgb(var(--color-primary-rgb) / 0.95), rgb(var(--color-primary-rgb) / 0.9));
}

[data-theme="dark"] .sticky-header thead {
  background: linear-gradient(135deg, rgb(var(--color-primary-rgb) / 0.95), rgb(var(--color-primary-rgb) / 0.85));
}

/* ==========================================================================
   Mobile Card Layout Pattern
   ========================================================================== */
/* Convert table to card layout on mobile for better readability */
@media (max-width: 767px) {
  .responsive-table {
    border: 0;
  }
  
  .responsive-table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  
  .responsive-table tbody,
  .responsive-table tr {
    display: block;
    margin-bottom: var(--space-4);
  }
  
  .responsive-table tr {
    border-radius: var(--radius-lg);
    border: 1px solid rgb(var(--color-primary-rgb) / 0.2);
    background: rgb(255 255 255 / 0.5);
    backdrop-filter: blur(var(--blur-sm)) saturate(var(--backdrop-saturate));
  }
  
  [data-theme="dark"] .responsive-table tr {
    background: rgb(var(--color-neutral-900-rgb) / 0.4);
    border-color: rgb(var(--color-neutral-400-rgb) / 0.2);
  }
  
  .responsive-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    border-bottom: 1px solid rgb(var(--color-primary-rgb) / 0.1);
    text-align: right;
  }
  
  [data-theme="dark"] .responsive-table td {
    border-bottom-color: rgb(var(--color-neutral-400-rgb) / 0.1);
  }
  
  .responsive-table td:last-child {
    border-bottom: none;
  }
  
  /* Add label from data-label attribute */
  .responsive-table td::before {
    content: attr(data-label);
    font-weight: var(--font-weight-semibold);
    margin-right: var(--space-4);
    color: var(--text-primary);
    text-align: left;
    flex: 0 0 auto;
    max-width: 50%;
  }
}


/* ==========================================================================
   Chart Components
   ========================================================================== */
/* Note: Base .chart-glass-card styles are now in utilities/_glass.css */
/* This file contains chart-specific styling only */

/* Chart widget title */
.chart-widget-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .chart-widget-title {
  color: var(--text-primary);
}

/* Timeframe buttons */
.timeframe-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.timeframe-btn {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  background: rgb(255 255 255 / 0.6);
  backdrop-filter: blur(var(--blur-sm)) saturate(var(--backdrop-saturate));
  border: 1.5px solid rgb(var(--color-primary-rgb) / 0.2);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition-property: all;
  transition-duration: var(--animation-duration-short);
  transition-timing-function: var(--animation-easing);
  position: relative;
  overflow: hidden;
}

.timeframe-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.3), transparent);
  transition-property: left;
  transition-duration: 0.5s;
}

.timeframe-btn:hover::before {
  left: 100%;
}

.timeframe-btn:hover {
  background: rgb(255 255 255 / 0.8);
  border-color: rgb(var(--color-primary-rgb) / 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgb(var(--color-primary-rgb) / 0.15),
              0 2px 6px rgb(var(--color-secondary-rgb) / 0.1);
}

.timeframe-btn.active {
  background: linear-gradient(135deg, rgb(var(--color-primary-rgb) / 0.2), rgb(var(--color-primary-rgb) / 0.15));
  border-color: rgb(var(--color-primary-rgb) / 0.5);
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgb(var(--color-primary-rgb) / 0.2),
              0 0 0 2px rgb(var(--color-primary-rgb) / 0.1) inset;
  font-weight: 700;
}

[data-theme="dark"] .timeframe-btn {
  background: rgb(var(--color-neutral-900-rgb) / 0.6);
  border-color: rgb(var(--color-neutral-400-rgb) / 0.25);
  color: var(--text-primary);
}

[data-theme="dark"] .timeframe-btn:hover {
  background: rgb(var(--color-neutral-900-rgb) / 0.8);
  border-color: rgb(var(--color-primary-rgb) / 0.4);
  box-shadow: 0 4px 12px rgb(var(--color-primary-rgb) / 0.2),
              0 2px 6px rgb(var(--color-primary-rgb) / 0.1);
}

[data-theme="dark"] .timeframe-btn.active {
  background: linear-gradient(135deg, rgb(var(--color-primary-rgb) / 0.25), rgb(var(--color-primary-rgb) / 0.15));
  border-color: rgb(var(--color-primary-rgb) / 0.5);
  color: rgb(var(--color-primary-rgb));
  box-shadow: 0 2px 8px rgb(var(--color-primary-rgb) / 0.3),
              0 0 0 2px rgb(var(--color-primary-rgb) / 0.15) inset;
}

/* Chart container */
.chart-container {
  background: rgb(255 255 255 / 0.4);
  backdrop-filter: blur(var(--blur-sm)) saturate(150%);
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  box-shadow: 0 4px 16px rgb(var(--color-primary-rgb) / 0.08),
              0 2px 8px rgb(var(--color-secondary-rgb) / 0.06),
              0 0 0 1px rgb(255 255 255 / 0.2) inset;
  position: relative;
  overflow: hidden;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.chart-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgb(var(--color-primary-rgb) / 0.03) 0%, transparent 50%, rgb(var(--color-secondary-rgb) / 0.03) 100%);
  pointer-events: none;
  z-index: 0;
}

.chart-container canvas {
  position: relative;
  z-index: 1;
  transition: opacity 0.3s ease-in-out;
}

[data-theme="dark"] .chart-container {
  background: rgb(var(--color-neutral-900-rgb) / 0.5);
  border-color: rgb(var(--color-neutral-400-rgb) / 0.2);
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.3),
              0 2px 8px rgb(0 0 0 / 0.2),
              0 0 0 1px rgb(var(--color-neutral-400-rgb) / 0.15) inset;
}

[data-theme="dark"] .chart-container::before {
  background: linear-gradient(135deg, rgb(var(--color-primary-rgb) / 0.05) 0%, transparent 50%, rgb(var(--color-secondary-rgb) / 0.05) 100%);
}

/* Chart current value */
.chart-current-value {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: rgb(255 255 255 / 0.5);
  backdrop-filter: blur(var(--blur-sm)) saturate(150%);
  border: 1px solid rgb(var(--color-primary-rgb) / 0.15);
  border-radius: var(--radius-lg);
  display: inline-block;
}

[data-theme="dark"] .chart-current-value {
  background: rgb(var(--color-neutral-900-rgb) / 0.6);
  border-color: rgb(var(--color-neutral-400-rgb) / 0.2);
  color: var(--text-primary);
}


/* ==========================================================================
   Account Dropdown Glass Styling
   ========================================================================== */
.account-dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  min-width: 280px;
  background: rgb(255 255 255 / 0.98);
  backdrop-filter: blur(var(--blur-xl)) saturate(200%);
  border: 1px solid rgb(var(--color-primary-rgb) / 0.15);
  border-radius: var(--radius-2xl);
  box-shadow: 0 12px 48px rgb(0 0 0 / 0.15),
              0 6px 24px rgb(0 0 0 / 0.1),
              0 0 0 1px rgb(255 255 255 / 0.5) inset,
              0 1px 0 rgb(255 255 255 / 0.6) inset;
  padding: var(--space-4);
  z-index: var(--z-dropdown);
  animation: dropdownSlideDown 0.2s ease-out;
}

[data-theme="dark"] .account-dropdown {
  background: rgb(var(--color-neutral-900-rgb) / 0.95);
  border-color: rgb(var(--color-neutral-400-rgb) / 0.2);
  box-shadow: 0 12px 48px rgb(0 0 0 / 0.5),
              0 6px 24px rgb(0 0 0 / 0.4),
              0 0 0 1px rgb(var(--color-neutral-400-rgb) / 0.15) inset,
              0 1px 0 rgb(255 255 255 / 0.08) inset,
              0 0 60px rgb(var(--color-primary-rgb) / 0.1);
}

.account-dropdown-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid rgb(var(--color-primary-rgb) / 0.2);
}

[data-theme="dark"] .account-dropdown-header {
  border-bottom-color: rgb(var(--color-neutral-400-rgb) / 0.2);
}

.account-dropdown-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  flex-shrink: 0;
}

/* KISS Mortgage - Account dropdown avatar - Use gold color instead of orange */
[data-app="kiss-mortgage"] .account-dropdown-avatar {
  background: linear-gradient(135deg, var(--color-primary), rgb(199 159 79));
}

.account-dropdown-user-info {
  flex: 1;
  min-width: 0;
}

.account-dropdown-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
  margin-bottom: var(--space-1); /* External spacing - margin below name */
}

/* Light mode name - ensure good contrast */
:root:not([data-theme="dark"]) .account-dropdown-name {
  color: rgb(var(--color-neutral-900-rgb));
}

.account-dropdown-email {
  font-size: 0.75rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Light mode email - ensure good contrast */
:root:not([data-theme="dark"]) .account-dropdown-email {
  color: rgb(var(--color-neutral-700-rgb));
}

.account-dropdown-type-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  background: rgb(var(--color-primary-rgb) / 0.1);
  border: 1px solid rgb(var(--color-primary-rgb) / 0.2);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-1);
}

[data-theme="dark"] .account-dropdown-type-badge {
  background: rgb(var(--color-primary-rgb) / 0.15);
  border-color: rgb(var(--color-primary-rgb) / 0.3);
  color: rgb(var(--color-primary-rgb));
}

.account-dropdown-divider {
  height: 1px;
  background: rgb(var(--color-primary-rgb) / 0.2);
  margin: var(--space-3) 0;
}

[data-theme="dark"] .account-dropdown-divider {
  background: rgb(var(--color-neutral-400-rgb) / 0.2);
}

.account-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.account-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3); /* External spacing - gap between icon and text */
  padding: var(--space-3); /* Internal spacing - padding for dropdown item */
  min-height: 2.75rem; /* Ensure consistent vertical depth for all items */
  border-radius: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.account-dropdown-item:hover {
  background: rgb(var(--color-primary-rgb) / 0.1);
  color: var(--color-primary);
}

[data-theme="dark"] .account-dropdown-item:hover {
  background: rgb(var(--color-primary-rgb) / 0.15);
  color: rgb(var(--color-primary-rgb));
}

.account-dropdown-item-danger {
  color: rgb(var(--color-error-rgb));
}

.account-dropdown-item-danger:hover {
  background: rgb(var(--color-error-rgb) / 0.1);
  color: rgb(var(--color-error-rgb));
}

[data-theme="dark"] .account-dropdown-item-danger:hover {
  background: rgb(var(--color-error-rgb) / 0.15);
}

.account-dropdown-icon {
  width: 1.125rem;
  height: 1.125rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.account-dropdown-footer {
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid rgb(var(--color-primary-rgb) / 0.15);
}

[data-theme="dark"] .account-dropdown-footer {
  border-top-color: rgb(var(--color-neutral-400-rgb) / 0.2);
}

/* ==========================================================================
   Sign In Dropdown Form Styling
   ========================================================================== */
.signin-dropdown {
  min-width: 320px;
}

.signin-dropdown-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.signin-dropdown-error {
  padding: var(--space-3);
  background: rgb(var(--color-error-rgb) / 0.1);
  border: 1px solid rgb(var(--color-error-rgb) / 0.3);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
}

/* Light mode error - better visibility */
:root:not([data-theme="dark"]) .signin-dropdown-error {
  background: rgb(var(--color-error-rgb) / 0.08);
  border-color: rgb(var(--color-error-rgb) / 0.4);
}

.signin-dropdown-error p {
  font-size: var(--font-size-sm);
  color: rgb(var(--color-error-rgb));
  margin: 0;
}

[data-theme="dark"] .signin-dropdown-error {
  background: rgb(var(--color-error-rgb) / 0.15);
  border-color: rgb(var(--color-error-rgb) / 0.4);
}

.signin-dropdown-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.signin-dropdown-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

/* Light mode label color - ensure good contrast */
:root:not([data-theme="dark"]) .signin-dropdown-label {
  color: rgb(var(--color-neutral-900-rgb));
}

.signin-dropdown-input {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid rgb(var(--color-primary-rgb) / 0.25);
  background: rgb(255 255 255 / 0.8);
  backdrop-filter: blur(var(--blur-sm));
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  transition: all 0.2s ease;
}

/* Light mode input styling - better contrast */
:root:not([data-theme="dark"]) .signin-dropdown-input {
  background: rgb(255 255 255 / 0.95);
  border-color: rgb(var(--color-primary-rgb) / 0.3);
  color: rgb(var(--color-neutral-900-rgb));
}

:root:not([data-theme="dark"]) .signin-dropdown-input::-moz-placeholder {
  color: rgb(var(--color-neutral-600-rgb));
}

:root:not([data-theme="dark"]) .signin-dropdown-input::placeholder {
  color: rgb(var(--color-neutral-600-rgb));
}

.signin-dropdown-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgb(255 255 255 / 0.7);
  box-shadow: 0 0 0 3px rgb(var(--color-primary-rgb) / 0.1);
}

/* Light mode input focus - better visibility */
:root:not([data-theme="dark"]) .signin-dropdown-input:focus {
  background: rgb(255 255 255);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgb(var(--color-primary-rgb) / 0.15),
              0 2px 8px rgb(var(--color-primary-rgb) / 0.1);
}

.signin-dropdown-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

[data-theme="dark"] .signin-dropdown-input {
  background: rgb(var(--color-neutral-800-rgb) / 0.5);
  border-color: rgb(var(--color-neutral-400-rgb) / 0.2);
}

[data-theme="dark"] .signin-dropdown-input:focus {
  background: rgb(var(--color-neutral-800-rgb) / 0.7);
  border-color: rgb(var(--color-primary-rgb));
  box-shadow: 0 0 0 3px rgb(var(--color-primary-rgb) / 0.2);
}

.signin-dropdown-submit {
  width: 100%;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-2);
}

.signin-dropdown-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgb(var(--color-primary-rgb) / 0.3);
}

.signin-dropdown-submit:active:not(:disabled) {
  transform: translateY(0);
}

.signin-dropdown-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* KISS Mortgage - Signin dropdown submit button - Use gold color instead of orange */
[data-app="kiss-mortgage"] .signin-dropdown-submit {
  background: linear-gradient(135deg, var(--color-primary), rgb(199 159 79));
}

.signin-dropdown-footer {
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid rgb(var(--color-primary-rgb) / 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  align-items: center;
}

[data-theme="dark"] .signin-dropdown-footer {
  border-top-color: rgb(var(--color-neutral-400-rgb) / 0.2);
}

.signin-dropdown-link {
  display: inline-block;
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
  text-align: center;
}

/* Light mode link - ensure good contrast */
:root:not([data-theme="dark"]) .signin-dropdown-link {
  color: var(--color-primary);
  font-weight: 500;
}

.signin-dropdown-link:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* ==========================================================================
   Dropdown Animation
   ========================================================================== */
@keyframes dropdownSlideDown {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Login Button Transitions & Animations
   ========================================================================== */

/* Authenticating state - gentle pulse */
.user-button-authenticating {
  animation: authPulse 1.5s ease-in-out infinite;
}

@keyframes authPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

/* Checkmark success state - scale animation */
.user-button-checkmark {
  animation: checkmarkScale 0.3s ease-out;
}

@keyframes checkmarkScale {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Smooth transition for user name fade */
.user-button-transition {
  transition: opacity 0.3s ease-in-out;
}

/* ==========================================================================
   Skeleton Loading Animations
   ========================================================================== */

/* Fade in skeleton overlay */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.skeleton-fade-in {
  animation: fadeIn 0.2s ease-in;
}

/* Fade out skeleton overlay */
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.skeleton-fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}


/* ==========================================================================
   Additional Component Styles
   ========================================================================== */
.parallax-section {
  position: relative;
  z-index: 1;
  /* Performance optimization: contain layout and paint for better scroll performance */
  contain: layout style paint;
}

/* Dashboard section background - let hero background show through */
#dashboard-section {
  background-color: transparent;
  background-image: none;
  background-attachment: scroll;
  backdrop-filter: none;
}

/* Dark theme dashboard section */
[data-theme="dark"] #dashboard-section {
  background-color: transparent;
  background-image: none;
  background-attachment: scroll;
  backdrop-filter: none;
}

/* Removed unused .parallax-gradient-bw class - not used anywhere in codebase */

.parallax-section .glass-card:not(.dashboard-nav-container) {
  position: relative;
  z-index: 1;
  transform: translateZ(10px) translateY(0);
  backface-visibility: hidden;
}

/* CRITICAL: Prevent transforms on glass cards inside content-wrapper that break backdrop-filter */
.content-wrapper .parallax-section .glass-card {
  transform: none !important;
  -webkit-transform: none !important;
  backface-visibility: visible !important;
  /* Optimize backdrop-filter rendering */
  will-change: auto;
}

.glass-card.calculator-results,
.glass-card.calculator-results.static-shadow {
  animation: none !important;
  box-shadow: 0 10px 30px rgb(var(--color-primary-rgb) / 0.1),
              0 6px 18px rgb(var(--color-secondary-rgb) / 0.08),
              0 4px 10px rgb(0 0 0 / 0.1) !important;
  transition: background 280ms ease, color 0.4s var(--animation-easing) !important;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.95) 0%, rgb(255 255 255 / 0.85) 100%) !important;
  /* Reduce backdrop-filter intensity for better performance */
  backdrop-filter: blur(8px) saturate(1.5);
  /* Performance hint for transition properties */
  will-change: background, color;
}

/* Dark mode calculator results */
[data-theme="dark"] .glass-card.calculator-results,
[data-theme="dark"] .glass-card.calculator-results.static-shadow {
  background: linear-gradient(135deg, rgb(var(--color-neutral-900-rgb) / 0.95) 0%, rgb(var(--color-neutral-800-rgb) / 0.9) 100%) !important;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.3),
              0 6px 18px rgb(var(--color-primary-rgb) / 0.15),
              0 4px 10px rgb(0 0 0 / 0.2) !important;
  border: 1px solid rgb(var(--color-primary-rgb) / 0.1);
}

/* Disable animations on calculator panels - optimized selector */
.calculator-panel .glass-card,
[id*="Calc"] .glass-card,
#calculators .glass-card,
#dashboard-section .glass-card:not(.dashboard-nav-container),
#profile-settings-section .glass-card {
  animation: none !important;
  transform: translateY(0) translateZ(0) !important;
}

/* Allow sticky positioning for dashboard navigation container - transform fixes */
#dashboard-section .glass-card.dashboard-nav-container {
  transform: none !important;
  -webkit-transform: none !important;
  backface-visibility: visible !important;
}

#viewAmortTable {
  color: var(--color-primary) !important;
}

/* CRITICAL: Ensure all glass cards inside content-wrapper have no transforms that break backdrop-filter */
.content-wrapper .glass-card {
  transform: none !important;
  -webkit-transform: none !important;
  animation: none !important;
  transition: none !important;
  /* Optimize for scrolling performance */
  will-change: auto;
  contain: layout style;
}

/* CRITICAL: Dashboard navigation container sticky positioning - must be last to override all other rules */
@media (min-width: 1024px) {
  #dashboard-section .glass-card.dashboard-nav-container,
  .parallax-section#dashboard-section .glass-card.dashboard-nav-container,
  .content-wrapper #dashboard-section .glass-card.dashboard-nav-container {
    position: sticky !important;
    top: 6rem !important; /* 96px - matches lg:top-24 */
    z-index: 10 !important;
    transform: none !important;
    -webkit-transform: none !important;
    backface-visibility: visible !important;
  }
}

/* ==========================================================================
   Service Card Icon Branding - KISS Mortgage Gold Override
   ========================================================================== */
/* Override Tailwind's from-mortgage-gold gradient for KISS Mortgage brand */
/* Target all elements with mortgage-gold gradient classes */
[data-app="kiss-mortgage"] [class*="from-mortgage-gold"][class*="to-mortgage-gold"] {
  background-image: linear-gradient(to bottom right, rgb(199 159 79), rgb(199 159 79 / 0.7)) !important;
}

/* Handle blue-to-gold gradients */
[data-app="kiss-mortgage"] [class*="from-mortgage-blue"][class*="to-mortgage-gold"] {
  background-image: linear-gradient(to bottom right, rgb(var(--color-primary-rgb)), rgb(199 159 79)) !important;
}

/* Handle gold-to-blue gradients */
[data-app="kiss-mortgage"] [class*="from-mortgage-gold"][class*="to-mortgage-blue"] {
  background-image: linear-gradient(to bottom right, rgb(199 159 79), rgb(var(--color-primary-rgb))) !important;
}

/* Fallback for any element with from-mortgage-gold that doesn't have a to- class */
[data-app="kiss-mortgage"] [class*="from-mortgage-gold"]:not([class*="to-"]) {
  background-image: linear-gradient(to bottom right, rgb(199 159 79), rgb(199 159 79 / 0.7)) !important;
}


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

   Footer Styles

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

footer {

  padding-top: var(--space-8); /* Match section padding - consistent spacing between sections and footer (py-8 = 2rem) */

  padding-bottom: var(--space-8);

  margin-top: 0;

  position: relative;

  /* Use dropdown-level z-index so footer sits above hero/background, but will still be under global overlays like the qualification funnel (which portals to body with a higher z-index). */

  z-index: var(--z-dropdown);

  /* Glassmorphic background - consistent across all pages */

  background-color: rgb(202 213 229 / 0.75);

  background-image: none;

  background-attachment: scroll;

  /* Adjust footer for dashboard sidebar */
  transition: padding-left 0.3s ease;
}

/* Adjust footer padding on dashboard pages to account for sidebar */
@media (min-width: 1024px) {
  body.dashboard-page footer {
    padding-left: 240px; /* Sidebar width when expanded */
  }
  
  body.dashboard-page[data-sidebar-collapsed="true"] footer {
    padding-left: 64px; /* Sidebar width when collapsed */
  }
  
  /* Ensure footer container also adjusts */
  body.dashboard-page footer .container {
    transition: margin-left 0.3s ease;
  }
}



/* Responsive footer padding to match section padding pattern */

@media (min-width: 640px) {

  footer {

    padding-top: var(--space-10); /* Match sm:py-10 = 2.5rem */

  }

}



@media (min-width: 1024px) {

  footer {

    padding-top: var(--space-12); /* Match lg:py-12 = 3rem */

  }

}





/* Ensure footer connects seamlessly to content-wrapper on home page */

body.home-page main + footer {

  margin-top: 0;

}



/* Dark theme footer - glassmorphic background */

[data-theme="dark"] footer {

  background-color: rgb(var(--color-neutral-900-rgb) / 0.75);

  background-image: none;

  background-attachment: scroll;

}



/* Footer now uses consistent glassmorphic style across all pages */

/* Removed body.home-page specificity - footer style is now universal */



/* Equal Housing Logo - Invert colors for dark mode */

.footer-equal-housing-icon {

  transition: filter 0.3s ease;

}



[data-theme="dark"] .footer-equal-housing-icon {

  filter: invert(1);

}



/* X (Twitter) Icon - Invert colors for dark mode */

.footer-x-icon {

  transition: filter 0.3s ease;

}



[data-theme="dark"] .footer-x-icon {

  filter: invert(1);

}



/* Remove blue glows from footer glass-card elements */

footer .glass-card[data-bg="light"] {

  box-shadow: 0 8px 32px rgb(0 0 0 / 0.08),

              0 4px 16px rgb(var(--color-secondary-rgb) / 0.08),

              0 0 0 1px rgb(255 255 255 / 0.3) inset,

              0 1px 0 rgb(255 255 255 / 0.5) inset,

              0 -1px 0 rgb(255 255 255 / 0.1) inset;

}



[data-theme="dark"] footer .glass-card {

  box-shadow: 0 8px 32px rgb(0 0 0 / 0.4),

              0 4px 16px rgb(0 0 0 / 0.3),

              0 0 0 1px rgb(var(--color-neutral-400-rgb) / 0.1) inset,

              0 1px 0 rgb(255 255 255 / 0.05) inset,

              0 -1px 0 rgb(0 0 0 / 0.2) inset;

}



[data-theme="dark"] footer .glass-card[data-bg="light"] {

  box-shadow: 0 8px 32px rgb(0 0 0 / 0.5),

              0 4px 16px rgb(0 0 0 / 0.4),

              0 0 0 1px rgb(var(--color-neutral-400-rgb) / 0.15) inset,

              0 1px 0 rgb(255 255 255 / 0.08) inset,

              0 -1px 0 rgb(0 0 0 / 0.3) inset;

}



/* Footer accent lines - blue in light mode, gold in dark mode */

footer .footer-section-title {

  border-bottom-color: rgb(var(--color-primary-rgb) / 0.5);

}



[data-theme="dark"] footer .footer-section-title {

  border-bottom-color: rgb(var(--color-secondary-rgb) / 0.5);

}



/* PRMG logo section border - blue in light mode, gold in dark mode */

footer .footer-logo-divider {

  border-top-color: rgb(var(--color-primary-rgb) / 0.3);

}



[data-theme="dark"] footer .footer-logo-divider {

  border-top-color: rgb(var(--color-secondary-rgb) / 0.3);

}



/* Legal container divider - blue in light mode, gold in dark mode */

footer .footer-legal-divider {

  border-top-color: rgb(var(--color-primary-rgb) / 0.3);

}



[data-theme="dark"] footer .footer-legal-divider {

  border-top-color: rgb(var(--color-secondary-rgb) / 0.3);

}



/* Ensure crisp logo rendering in footer */

footer .logo-light,

footer .logo-dark {

  image-rendering: -webkit-optimize-contrast;

  image-rendering: auto;

  -ms-interpolation-mode: bicubic;

}



/*# sourceMappingURL=bdd5c1aec0ea7807.css.map*/