/* ==========================================================================
 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 badge — prominent label above section title (replaces plain text, high visibility) */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: rgb(var(--color-secondary-rgb) / 0.22);
  border: 2px solid rgb(var(--color-secondary-rgb) / 0.55);
  color: var(--color-secondary);
  font-size: var(--fluid-base);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  box-shadow: 0 0 20px rgb(var(--color-secondary-rgb) / 0.25), inset 0 1px 0 rgb(255 255 255 / 0.4);
  transition: background-color var(--animation-duration-long) var(--animation-easing),
              box-shadow var(--animation-duration-long) var(--animation-easing),
              border-color var(--animation-duration-long) var(--animation-easing);
}

[data-theme="dark"] .section-badge {
  background: rgb(var(--color-secondary-rgb) / 0.28);
  border-color: rgb(var(--color-secondary-rgb) / 0.6);
  color: var(--color-secondary);
  box-shadow: 0 0 24px rgb(var(--color-secondary-rgb) / 0.3), inset 0 1px 0 rgb(255 255 255 / 0.12);
}

.section-title {
  font-size: var(--fluid-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.025em;
  line-height: 1.15;
  transition: color var(--animation-duration-long) var(--animation-easing);
}

/* Section divider — evolved to match hero accent line (secondary/gold gradient, glow, pill) */
.section-divider {
  width: 5rem;
  height: 0.3rem;
  background: linear-gradient(to right,
    rgb(var(--color-secondary-rgb)),
    rgb(var(--color-secondary-rgb) / 0.85),
    rgb(var(--color-secondary-rgb) / 0.5),
    transparent);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-6);
  box-shadow: 0 2px 12px rgb(var(--color-secondary-rgb) / 0.4),
              0 0 20px rgb(var(--color-secondary-rgb) / 0.2);
  transition: width var(--animation-duration-long) var(--animation-easing);
}

/* Light mode accent bar: prefer primary (blue) for a clean contrast with the content background */
:root:not([data-theme="dark"]) .section-divider {
  background: linear-gradient(to right,
    rgb(var(--color-primary-rgb)),
    rgb(var(--color-primary-rgb) / 0.7),
    rgb(var(--color-primary-rgb) / 0.3),
    transparent);
  box-shadow: 0 2px 10px rgb(var(--color-primary-rgb) / 0.3),
              0 0 16px rgb(var(--color-primary-rgb) / 0.15);
}

[data-theme="dark"] .section-divider {
  background: linear-gradient(to right,
    rgb(var(--color-secondary-rgb)),
    rgb(var(--color-secondary-rgb) / 0.8),
    rgb(var(--color-secondary-rgb) / 0.4),
    transparent);
  box-shadow: 0 2px 14px rgb(var(--color-secondary-rgb) / 0.45),
              0 0 24px rgb(var(--color-secondary-rgb) / 0.25);
  width: 6rem;
}

.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(4 3 3 / 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(4 3 3 / 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);
}

/* ==========================================================================
   Custom Select Styling
   ========================================================================== */
:where(select) {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
  /* Light mode chevron — dark blue */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231e528c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

[data-theme="dark"] :where(select) {
  /* Dark mode chevron — light blue */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235ba3ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 1rem !important;
}

/* Option element styling — controls the open dropdown list */
:where(select) option {
  background: #ffffff;
  color: #1a1a1a;
  padding: 10px 14px;
  font-size: 0.9rem;
}

[data-theme="dark"] :where(select) option {
  background: #0d0d0d;
  color: #e8e8e8;
  padding: 10px 14px;
  font-size: 0.9rem;
}

[data-theme="dark"] :where(select) option:hover,
[data-theme="dark"] :where(select) option:focus,
[data-theme="dark"] :where(select) option:checked {
  background: rgb(var(--color-primary-rgb) / 0.3);
  color: #ffffff;
}

/* 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;
  border: 1px solid rgb(var(--color-primary-rgb) / 0.15) !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(4 3 3 / 0.98) !important;
  border-color: rgb(var(--color-neutral-400-rgb) / 0.3) !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 {
  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(4 3 3 / 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(4 3 3 / 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(4 3 3 / 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(4 3 3 / 0.6);
  border-color: rgb(var(--color-neutral-400-rgb) / 0.25);
  color: var(--text-primary);
}

[data-theme="dark"] .timeframe-btn:hover {
  background: rgb(4 3 3 / 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(4 3 3 / 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(4 3 3 / 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(10 18 38 / 0.96);
  border-color: rgb(var(--color-primary-rgb) / 0.18);
  box-shadow: 0 16px 56px rgb(0 0 0 / 0.55),
              0 6px 24px rgb(0 0 0 / 0.4),
              0 0 0 1px rgb(var(--color-primary-rgb) / 0.12) inset,
              0 1px 0 rgb(255 255 255 / 0.06) inset,
              0 0 80px rgb(var(--color-primary-rgb) / 0.08);
}

.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: 340px;
  overflow: hidden;
}

/* Gradient top accent bar */
.signin-dropdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

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

[data-theme="dark"] .signin-dropdown-header {
  border-bottom-color: rgb(255 255 255 / 0.08);
}

.signin-dropdown-header-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgb(var(--color-primary-rgb) / 0.2), rgb(var(--color-secondary-rgb) / 0.15));
  border: 1px solid rgb(var(--color-primary-rgb) / 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}

[data-theme="dark"] .signin-dropdown-header-icon {
  background: linear-gradient(135deg, rgb(var(--color-primary-rgb) / 0.15), rgb(var(--color-secondary-rgb) / 0.1));
  border-color: rgb(var(--color-primary-rgb) / 0.3);
  color: rgb(var(--color-primary-rgb));
}

.signin-dropdown-header-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: 0 0 0.15rem 0;
  line-height: 1.2;
}

:root:not([data-theme="dark"]) .signin-dropdown-header-title {
  color: rgb(var(--color-neutral-900-rgb));
}

.signin-dropdown-header-subtitle {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.2;
}

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

.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-lg);
  margin-bottom: var(--space-2);
}

: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.12);
  border-color: rgb(var(--color-error-rgb) / 0.35);
}

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

.signin-dropdown-label {
  font-size: 0.7rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

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

[data-theme="dark"] .signin-dropdown-label {
  color: rgb(var(--color-neutral-400-rgb));
}

.signin-dropdown-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-input);
  border: 1px solid rgb(var(--color-primary-rgb) / 0.2);
  background: rgb(255 255 255 / 0.85);
  color: rgb(var(--color-neutral-900-rgb));
  font-size: var(--font-size-sm);
  transition: all 0.2s ease;
}

:root:not([data-theme="dark"]) .signin-dropdown-input {
  background: rgb(255 255 255 / 0.9);
  border-color: rgb(var(--color-primary-rgb) / 0.25);
  color: rgb(var(--color-neutral-900-rgb));
}

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

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

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

: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);
}

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

[data-theme="dark"] .signin-dropdown-input {
  background: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.1);
  color: rgb(var(--color-neutral-100-rgb));
}

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

[data-theme="dark"] .signin-dropdown-input::placeholder {
  color: rgb(var(--color-neutral-400-rgb) / 0.6);
}

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

.signin-dropdown-submit {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-button);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-1);
  box-shadow: 0 2px 12px rgb(var(--color-primary-rgb) / 0.25);
}

.signin-dropdown-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgb(var(--color-primary-rgb) / 0.35);
  filter: brightness(1.08);
}

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

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

[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-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgb(var(--color-primary-rgb) / 0.12);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

[data-theme="dark"] .signin-dropdown-footer {
  border-top-color: rgb(255 255 255 / 0.08);
}

.signin-dropdown-footer-divider {
  width: 3px;
  height: 3px;
  border-radius: var(--radius-full);
  background: rgb(var(--color-neutral-400-rgb) / 0.5);
  flex-shrink: 0;
}

.signin-dropdown-link {
  display: inline-block;
  font-size: var(--font-size-xs);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

:root:not([data-theme="dark"]) .signin-dropdown-link {
  color: var(--color-primary);
}

[data-theme="dark"] .signin-dropdown-link {
  color: rgb(var(--color-primary-rgb) / 0.85);
}

.signin-dropdown-link:hover {
  color: var(--color-secondary);
  text-decoration: none;
  filter: brightness(1.15);
}

/* ==========================================================================
   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;
}

/* ==========================================================================
   Auth Pages (Sign Up / Sign In) — token-driven form inputs
   ========================================================================== */
/* Prevent scroll-lock compensation from shifting the page when the user role
   dropdown (or other Radix overlays) opens. react-remove-scroll adds
   padding-right/margin-right to body, which creates a thin black bar on the
   right and shifts content left. */
html:has(body.auth-page) {
  scrollbar-gutter: stable;
}
/* Neutralize the lock compensation on auth pages so the page doesn't shift. */
body.auth-page[data-scroll-locked] {
  padding-right: 0 !important;
  margin-right: 0 !important;
}

body.auth-page .auth-page-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  padding-left: 2.75rem;
  min-height: var(--touch-target, 44px);
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  background: rgb(255 255 255 / 0.7);
  backdrop-filter: blur(var(--blur-sm)) saturate(var(--backdrop-saturate, 150%));
  border: 2px solid rgb(var(--color-primary-rgb) / 0.2);
  border-radius: var(--radius-input);
  transition: border-color var(--duration-base) var(--easing-base),
              box-shadow var(--duration-base) var(--easing-base),
              background-color var(--duration-base) var(--easing-base);
}

body.auth-page .auth-page-input::-moz-placeholder {
  color: var(--color-text-tertiary);
}

body.auth-page .auth-page-input::placeholder {
  color: var(--color-text-tertiary);
}

body.auth-page .auth-page-input:focus {
  outline: none;
  background: rgb(255 255 255 / 0.9);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgb(var(--color-primary-rgb) / 0.15);
}

body.auth-page .auth-page-input--error {
  border-color: var(--color-error);
}

body.auth-page .auth-page-input--error:focus {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgb(var(--color-error-rgb) / 0.2);
}

body.auth-page .auth-page-input--success:focus {
  border-color: var(--color-success);
  box-shadow: 0 0 0 3px rgb(var(--color-success-rgb) / 0.15);
}

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

[data-theme="dark"] body.auth-page .auth-page-input::-moz-placeholder {
  color: var(--color-text-tertiary);
}

[data-theme="dark"] body.auth-page .auth-page-input::placeholder {
  color: var(--color-text-tertiary);
}

[data-theme="dark"] body.auth-page .auth-page-input:focus {
  background: rgb(var(--color-neutral-900-rgb) / 0.8);
  border-color: rgb(var(--color-primary-rgb) / 0.5);
  box-shadow: 0 0 0 3px rgb(var(--color-primary-rgb) / 0.2);
}

[data-theme="dark"] body.auth-page .auth-page-input--error {
  border-color: var(--color-error);
}

[data-theme="dark"] body.auth-page .auth-page-input--error:focus {
  box-shadow: 0 0 0 3px rgb(var(--color-error-rgb) / 0.25);
}

/* Auth page label and icon — semantic text */
body.auth-page .auth-page-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

body.auth-page .auth-page-label-icon {
  color: var(--color-primary);
}

body.auth-page .auth-page-input-wrap {
  position: relative;
}

body.auth-page .auth-page-input-wrap .auth-page-input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-text-tertiary);
  pointer-events: none;
}

/* Password / confirm fields with show-hide button need extra right padding */
body.auth-page .auth-page-input-wrap--right-action .auth-page-input {
  padding-right: 2.75rem;
}

/* Select dropdown needs right padding for chevron */
body.auth-page .auth-page-input--select {
  padding-right: 2.5rem;
}

body.auth-page .auth-page-error-text {
  font-size: var(--font-size-xs);
  color: var(--color-error);
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}


/* ==========================================================================
   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;
}

/* Prevent focus outline on Value Proposition card links from painting onto adjacent cards (artifact edges on other buttons) */
.value-proposition-card .value-proposition-card__nmls-link:focus,
.value-proposition-card .value-proposition-card__contact-btn:focus,
.value-proposition-card .value-proposition-card__nmls-link:focus-visible,
.value-proposition-card .value-proposition-card__contact-btn:focus-visible {
  outline: none !important;
  outline-offset: 0;
}

/* Prevent transforms on glass cards inside content-wrapper that can break compositing */
.content-wrapper .parallax-section .glass-card {
  transform: none !important;
  -webkit-transform: none !important;
  backface-visibility: visible !important;
  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(4 3 3 / 0.95) 0%, rgb(4 3 3 / 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;
}

/* Prevent transforms and animations on glass cards in content-wrapper to avoid stacking
   context issues with the fixed hero background. Transitions on box-shadow and border-color
   are safe (no compositing layer) and are left enabled. */
.content-wrapper .glass-card {
  transform: none !important;
  -webkit-transform: none !important;
  animation: none !important;
  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;
  }
}

/* ==========================================================================
   Homepage Section — Hero design language applied to parallax sections
   ========================================================================== */

/* Subtle top-edge separator: thin gradient line matching the journey box's colored top stripe */
body.home-page .content-wrapper .parallax-section + .parallax-section::before,
body.home-page .content-wrapper .parallax-section:first-child::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    rgb(var(--color-primary-rgb) / 0.3) 20%,
    rgb(var(--color-primary-rgb) / 0.5) 50%,
    rgb(var(--color-primary-rgb) / 0.3) 80%,
    transparent 100%);
  pointer-events: none;
  z-index: 2;
}

[data-theme="dark"] body.home-page .content-wrapper .parallax-section + .parallax-section::before,
[data-theme="dark"] body.home-page .content-wrapper .parallax-section:first-child::before {
  background: linear-gradient(to right,
    transparent 0%,
    rgb(var(--color-secondary-rgb) / 0.25) 20%,
    rgb(var(--color-secondary-rgb) / 0.4) 50%,
    rgb(var(--color-secondary-rgb) / 0.25) 80%,
    transparent 100%);
}

/* No separator line above repeat CTA (Get Qualified) or Get In Touch — removes hard line */
body.home-page .content-wrapper .parallax-section#contact::before,
body.home-page .content-wrapper .parallax-section:has(.journey-cta-box)::before {
  display: none;
}

/* Allow journey-cta-box drop shadow to render (overflow + paint containment would clip it) */
body.home-page .content-wrapper .parallax-section:has(.journey-cta-box) {
  overflow: visible;
  contain: layout style;
}

/* Service / value-prop card icon circles — hero journey-button glow */
body.home-page .service-icon-circle,
body.home-page [class*="from-mortgage-blue"][class*="rounded-full"],
body.home-page [class*="from-mortgage-gold"][class*="rounded-full"] {
  box-shadow: 0 0 20px rgb(var(--color-primary-rgb) / 0.3),
              0 0 12px rgb(255 255 255 / 0.15),
              0 6px 16px rgb(0 0 0 / 0.15);
  transition: box-shadow var(--animation-duration-long) var(--animation-easing),
              transform var(--animation-duration-long) var(--animation-easing);
}

body.home-page .glass-card[data-bg="light"]:hover .service-icon-circle,
body.home-page .glass-card[data-bg="light"]:hover [class*="from-mortgage-blue"][class*="rounded-full"],
body.home-page .glass-card[data-bg="light"]:hover [class*="from-mortgage-gold"][class*="rounded-full"] {
  box-shadow: 0 0 28px rgb(var(--color-primary-rgb) / 0.45),
              0 0 16px rgb(255 255 255 / 0.2),
              0 8px 24px rgb(0 0 0 / 0.2);
  transform: scale(1.05);
}

[data-theme="dark"] body.home-page .service-icon-circle,
[data-theme="dark"] body.home-page [class*="from-mortgage-blue"][class*="rounded-full"],
[data-theme="dark"] body.home-page [class*="from-mortgage-gold"][class*="rounded-full"] {
  box-shadow: 0 0 24px rgb(var(--color-primary-rgb) / 0.35),
              0 0 12px rgb(255 255 255 / 0.1),
              0 6px 16px rgb(0 0 0 / 0.3);
}

/* Profile image wrapper in contact bio — hero glass glow ring */
body.home-page .profile-image-wrapper {
  box-shadow: 0 0 0 3px rgb(var(--color-primary-rgb) / 0.15),
              0 0 0 1px rgb(255 255 255 / 0.4),
              0 0 24px rgb(var(--color-primary-rgb) / 0.2),
              0 8px 20px rgb(0 0 0 / 0.15);
  transition: box-shadow var(--animation-duration-long) var(--animation-easing);
}

[data-theme="dark"] body.home-page .profile-image-wrapper {
  box-shadow: 0 0 0 3px rgb(var(--color-primary-rgb) / 0.25),
              0 0 0 1px rgb(255 255 255 / 0.1),
              0 0 28px rgb(var(--color-primary-rgb) / 0.3),
              0 8px 24px rgb(0 0 0 / 0.4);
}

/* Journey CTA box — dark glass panel matching hero */
.journey-cta-box {
  background: linear-gradient(135deg, rgb(5 25 55 / 0.92) 0%, rgb(var(--color-primary-rgb) / 0.78) 100%);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius-2xl);
  position: relative;
  isolation: isolate;
  box-shadow: 0 8px 40px rgb(0 0 0 / 0.45),
              0 0 0 1px rgb(255 255 255 / 0.06) inset,
              0 1px 0 rgb(255 255 255 / 0.18) inset;
  overflow: hidden;
}

.journey-cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 120% 60% at 50% 0%, rgb(255 255 255 / 0.1) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Top accent stripe */
.journey-cta-stripe {
  height: 0.25rem;
  width: 100%;
  background: linear-gradient(to right, var(--color-secondary), rgb(255 255 255 / 0.2));
  position: relative;
  z-index: 1;
}

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

[data-theme="dark"] .journey-cta-box {
  background: linear-gradient(135deg, rgb(4 3 3 / 0.88) 0%, rgb(var(--color-primary-rgb) / 0.35) 100%);
  border-color: rgb(255 255 255 / 0.1);
  box-shadow: 0 8px 40px rgb(0 0 0 / 0.6),
              0 0 0 1px rgb(255 255 255 / 0.04) inset,
              0 1px 0 rgb(255 255 255 / 0.1) inset,
              0 0 60px rgb(var(--color-primary-rgb) / 0.2);
}

/* ==========================================================================
   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;
}

/* ==========================================================================
   Profile Image Wrapper - Seamless background matching per theme
   ========================================================================== */
.profile-image-wrapper {
  background-color: rgb(255 255 255);
}

[data-theme="dark"] .profile-image-wrapper {
  background-color: rgb(var(--color-neutral-900-rgb));
}


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

   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 - frosted background */

[data-theme="dark"] footer {

  background-color: rgb(4 3 3 / 0.75);

  background-image: none;

  background-attachment: scroll;

}



/* Footer now uses consistent frosted 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=83d17ca46cc5ee12.css.map*/