:root {
  --primary-color: #4a90e2;
  --primary-hover: #6aaeff;
  --primary-dark: #1976d2;
  --primary-darker: #165389;
  --secondary-color: #428bca;
  --secondary-hover: #3276b1;
  --secondary-dark: #285e8e;
  --text-color: #333;
  --text-light: #888;
  --text-dark: #000;
  --bg-color: #fff;
  --bg-light: #f9f9f9;
  --bg-dark: #e9e9eb;
  --error-color: #a94442;
  --error-bg: #f2dede;
  --error-border: #ebccd1;
  --danger-color: #721c24;
  --danger-bg: #f8d7da;
  --danger-border: #f5c6cb;
  --info-color: #31708f;
  --info-bg: #d9edf7;
  --info-border: #bce8f1;
  --border-color: #ccc;
  --border-radius: 4px;
  --border-radius-lg: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
  --font-family:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
    "Open Sans", "Helvetica Neue", sans-serif;
  --font-size: 16px;
  --line-height: 1.6;
  --max-width: 100vw;
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 15px;
  --spacing-lg: 20px;
  --spacing-xl: 30px;
  --header-height: 70px;
  --header-expanded-height-min: 230px;
  --menu-animation-time: 0.3s;
  --dark-bg: #1e1e1e;
  --dark-bg-secondary: #292929;
  --dark-bg-tertiary: #3a3a3a;
  --dark-text: #eaeaea;
  --dark-text-secondary: #a0a0a0;
  --dark-border: #444;
}

.trust-badge {
  display: inline-block;
  font-size: 0.78rem;
  background: rgba(74, 144, 226, 0.12);
  color: #1976d2;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.trust-note {
  font-size: 0.9rem;
  color: #666;
  margin-top: 6px;
  line-height: 1.4;
  text-align: center;
  /* center within CTA width */
}

/* =========================================================
   HERO ENTRANCE ANIMATIONS
   Elements start hidden & slide/fade in with stagger.
   ========================================================= */
.hero-animate {
  opacity: 0;
  transform: translateY(48px) scale(0.95);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.hero-animate.hero-delay1 {
  transition-delay: 0.1s;
}

.hero-animate.hero-delay2 {
  transition-delay: 0.2s;
}

.hero-animate.hero-delay3 {
  transition-delay: 0.3s;
}

.hero-animate.hero-delay4 {
  transition-delay: 0.4s;
}

.hero-animate.hero-delay5 {
  transition-delay: 0.5s;
}

.hero-animate.hero-delay6 {
  transition-delay: 0.6s;
}

.hero-animate.hero-delay7 {
  transition-delay: 0.7s;
}

.hero-animate.is-visible {
  opacity: 1;
  transform: none;
}

/* Ensure benefits table can animate properly */
.dashboard-section.benefits-card.hero-animate {
  opacity: 0;
  transform: translateY(48px) scale(0.95);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.dashboard-section.benefits-card.hero-animate.is-visible {
  opacity: 1;
  transform: none;
}

/* Phone image can float a touch higher */
.hero-image-animate {
  transform: translateY(64px) scale(0.94);
}

.hero-image-animate.is-visible {
  transform: none;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {

  .hero-animate,
  .hero-image-animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Loading indicator for dashboard refresh - spinner in header */
.loading-indicator {
  position: fixed;
  top: -0.5rem; /* Position in header area */
  right: 70px; /* Position to the left of hamburger menu */
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-top: 2px solid #3b82f6;
  border-radius: 50%;
  z-index: 1001;
  animation: spin 1s linear infinite, fadeIn 0.3s ease-out;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes slideInFade {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

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

.upgrade-pro-banner .pro-badge,
.welcome-pro-banner .pro-badge {
  position: relative;
  top: -1px;
}

/* Get Started Banner Section */
.get-started-banner {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  position: relative;
  margin-bottom: 24px;
}

.get-started-banner .banner-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 50px 0 0; /* Add right padding for dismiss button */
}

.get-started-banner .banner-icon {
  font-size: 2.5rem;
  opacity: 0.9;
  flex-shrink: 0;
}

.get-started-banner .banner-text {
  flex: 1;
}

.get-started-banner .banner-text h4 {
  margin: 0 0 8px 0;
  color: white;
  border: none;
  padding: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.get-started-banner .banner-text p {
  margin: 0;
  opacity: 0.9;
  line-height: 1.4;
}

.get-started-banner .banner-actions {
  flex-shrink: 0;
}

.get-started-banner .banner-actions .btn {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

.get-started-banner .banner-actions .btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.banner-dismiss {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.banner-dismiss:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Mobile responsiveness for banner */
@media (max-width: 768px) {
  .get-started-banner .banner-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .get-started-banner .banner-icon {
    font-size: 2rem;
  }
}

/* Upgrade to Pro Banner Section */
.upgrade-pro-banner {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: none;
  position: relative;
  margin-bottom: 24px;
}

.upgrade-pro-banner .banner-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 50px 0 0; /* Add right padding for dismiss button */
}

.upgrade-pro-banner .banner-icon {
  font-size: 2.5rem;
  opacity: 0.9;
  flex-shrink: 0;
}

.upgrade-pro-banner .banner-text {
  flex: 1;
}

.upgrade-pro-banner .banner-text h4 {
  margin: 0 0 8px 0;
  color: white;
  border: none;
  padding: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.upgrade-pro-banner .banner-text p {
  margin: 0;
  opacity: 0.9;
  line-height: 1.4;
}

.upgrade-pro-banner .banner-actions {
  flex-shrink: 0;
}

.upgrade-pro-banner .banner-actions .btn {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
}

.upgrade-pro-banner .banner-actions .btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Welcome to Pro Banner Section */
.welcome-pro-banner {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  position: relative;
  margin-bottom: 24px;
}

.welcome-pro-banner .banner-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 50px 0 0; /* Add right padding for dismiss button */
}

.welcome-pro-banner .banner-icon {
  font-size: 2.5rem;
  opacity: 0.9;
  flex-shrink: 0;
}

.welcome-pro-banner .banner-text {
  flex: 1;
}

.welcome-pro-banner .banner-text h4 {
  margin: 0 0 8px 0;
  color: white;
  border: none;
  padding: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.welcome-pro-banner .banner-text p {
  margin: 0;
  opacity: 0.9;
  line-height: 1.4;
}

.welcome-pro-banner .banner-actions {
  flex-shrink: 0;
}

.welcome-pro-banner .banner-actions .btn {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

.welcome-pro-banner .banner-actions .btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Mobile responsiveness for new banners */
@media (max-width: 768px) {
  .upgrade-pro-banner .banner-content,
  .welcome-pro-banner .banner-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .upgrade-pro-banner .banner-icon,
  .welcome-pro-banner .banner-icon {
    font-size: 2rem;
  }
}

/* Subtle interactive lift on hover/focus for large screens */
@media (hover: hover) and (pointer: fine) {

  .phone-image:hover,
  .phone-image:focus {
    transform: translateY(-4px) scale(1.01);
    transition: transform 0.25s ease-out;
  }
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

html,
body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  max-width: 100%;
  line-height: var(--line-height);
  font-size: var(--font-size);
  color: var(--text-color);
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  min-height: 100vh;
  box-sizing: border-box;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 40%, #dbeafe 70%, #93c5fd 100%);
  background-attachment: fixed;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

body {
  margin: 0 auto;
  padding-top: 0 !important;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  max-width: unset;
}

/* Account for header height on non-landing pages */
body:not(.landing-page) .chat-container {
  height: calc(100dvh - var(--header-height));
}

html.chat-page-html,
body.chat-page {
  height: 100%;
  overflow: hidden;
  position: relative;
}

body.menu-open {
  padding-top: calc(var(--header-height) + 10px + var(--menu-content-height, 160px));
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
}

h1 {
  font-size: 1.5rem;
  margin: 0;
  padding-top: 10px;
}

h1 a,
h1 a:link,
h1 a:visited,
h1 a:hover,
h1 a:active {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

h3 {
  padding-left: 0;
  padding-right: 0;
  font-weight: normal;
}

h3,
h4 {
  margin-bottom: 0;
}

h4 {
  font-size: 20px;
}

li {
  padding-bottom: var(--spacing-lg);
}

.header-message {
  width: 72%;
  max-width: 400px;
  margin: 0 auto;
}

.header-message h3 {
  font-weight: 500;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 15px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  z-index: 1000;
  height: var(--header-height);
  box-sizing: border-box;
  transition: all 0.3s ease;
}

/* Header scroll effect - hide title and logo when scrolled */
.header-container.scrolled h1[data-scroll-hide],
.header-container.scrolled .title-logo h1,
.header-container.scrolled .title-logo .logo {
  opacity: 0 !important;
  transform: translateY(-10px) !important;
}

.header-container.menu-open {
  height: auto;
  min-height: var(--header-expanded-height-min);
}

/* Desktop navigation - always visible on larger screens */
.desktop-nav {
  display: none;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  gap: var(--spacing-lg);
  margin-right: var(--spacing-md);
  background-color: transparent;
  height: 100%;
}

.desktop-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: var(--border-radius);
  transition: background-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.desktop-nav a svg {
  flex-shrink: 0;
}

.title-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding-right: var(--spacing-md);
}

.title-logo h1 {
  margin: 0;
  font-size: 1.5rem;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease !important;
}

.logo {
  width: 48px;
  height: 48px;
  margin: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.menu {
  position: absolute;
  top: 10px;
  right: 15px;
  padding: 0;
  z-index: 1001;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: var(--text-dark);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.menu:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.menu-icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.menu-icon span {
  position: absolute;
  height: 2px;
  width: 100%;
  background-color: var(--text-dark);
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.menu-icon span:nth-child(1) {
  top: 2px;
}

.menu-icon span:nth-child(2),
.menu-icon span:nth-child(3) {
  top: 9px;
}

.menu-icon span:nth-child(4) {
  top: 16px;
}

.menu-open .menu-icon span:nth-child(1) {
  top: 9px;
  width: 0%;
  left: 50%;
}

.menu-open .menu-icon span:nth-child(2) {
  transform: rotate(45deg);
}

.menu-open .menu-icon span:nth-child(3) {
  transform: rotate(-45deg);
}

.menu-open .menu-icon span:nth-child(4) {
  top: 9px;
  width: 0%;
  left: 50%;
}

.menu-container {
  position: fixed;
  top: 76px;
  right: 24px;
  left: auto;
  height: 0;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
  opacity: 0;
  text-align: left;
  transition:
    height 0.3s ease,
    opacity 0.3s ease,
    padding 0.3s ease,
    box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 2100;
  width: fit-content;
  min-width: 120px;
}

.menu-container.open {
  height: auto;
  opacity: 1;
  padding: 25px;
  box-shadow: var(--shadow-lg);
}

.content-wrapper {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto 0 auto;
  padding-top: var(--header-height);
  transition: margin-top var(--menu-animation-time) ease;
  flex-grow: 1;
}

body.chat-page .content-wrapper {
  margin-bottom: 0 !important;
}

.menu-container a {
  font-size: 1.08rem;
  font-weight: 500;
  text-align: left;
  justify-content: flex-start;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 5px 0;
  color: var(--text-color);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.menu-container a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.menu-container.open a {
  opacity: 1;
  transform: translateY(0);
}

.menu-container a:nth-child(1) {
  transition-delay: 0.05s;
}

.menu-container a:nth-child(2) {
  transition-delay: 0.1s;
}

.menu-container a:nth-child(3) {
  transition-delay: 0.15s;
}

.menu-container a:nth-child(4) {
  transition-delay: 0.2s;
}

.menu-container a:hover {
  color: #4a90e2;
}

.menu-container p {
  margin: 3px 0;
}

.menu-container a:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 12px;
  margin-bottom: 8px;
}

nav {
  background-color: #333;
  overflow: hidden;
  margin-bottom: var(--spacing-lg);
}

nav a {
  float: left;
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

nav a:hover {
  background-color: #ddd;
  color: black;
}

.active {
  background-color: var(--primary-dark);
}

.logout {
  float: right;
}

.container {
  margin-left: auto;
  margin-right: auto;
  padding: var(--spacing-sm);
  padding-bottom: 0;
}

.container,
.usercontainer {
  max-width: var(--max-width);
  font-size: 18px;
}

.usercontainer {
  margin: 0 10px 15px 10px;
  padding: 5px;
  text-align: left;
}

.usercontainer h3,
.usercontainer h4 {
  margin-bottom: var(--spacing-md);
}

.usercontainer h4 {
  margin-top: var(--spacing-xs);
}

div.usercontainer div.cards-specific-div {
  margin-bottom: 0 !important;
  /* Added !important */
}

.usercontainer .btn {
  margin-top: 0;
}

.usercontainer #submit {
  margin-top: 25px;
  margin-bottom: 5px;
}

.usercontainer label {
  display: block;
  margin: 6px 0;
}

.userelement .btn {
  margin-top: var(--spacing-md);
}

.pagecontainer {
  margin: 10px 0 0 0;
  max-width: var(--max-width);
  padding: 15px;
  font-size: 18px;
  text-align: left;
  line-height: 1.5;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  position: relative;
  transition: box-shadow 0.2s ease;
}

.pagecontainer:hover {
  box-shadow: var(--shadow-lg);
}

.pagecontainer h3 {
  font-weight: 600;
  margin-bottom: 0;
  padding-bottom: 0;
}

.pagecontainer h3,
.pagecontainer h2 {
  margin-top: 0;
  color: var(--text-dark);
}

.pagecontainer h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagecontainer h2 {
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.pagecontainer p {
  margin-top: 10px;
}

.subscribe {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  padding: var(--spacing-sm);
  text-align: left;
  font-size: 18px;
}

.FAQ {
  font-size: 18px;
  padding-top: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
  margin-top: 20px;
  margin-bottom: 10px;
}

.sms {
  font-size: 16px;
}

.pagecontainer ul,
.pagecontainer ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  list-style-type: none;
  line-height: 1.3;
}

.pagecontainer ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.25rem;
}

ul {
  margin-bottom: var(--spacing-xs);
}

.pagecontainer ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--text-color);
  border-radius: 50%;
}

.rounded-box {
  width: 320px;
  background-color: #f6faff;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  font-size: 18px;
  margin: 1px auto;
  height: 44px;
}

.rounded-box,
.textbox {
  border: 1px solid var(--border-color);
}

.textbox {
  width: 93.5%;
  min-width: 200px;
  max-width: 678px;
  height: 150px;
  min-height: 150px;
  max-height: 300px;
  resize: none;
  font-size: 16px;
  padding: var(--spacing-sm);
  display: block;
  margin-top: var(--spacing-lg);
  margin-bottom: 0;
  font-family: var(--font-family);
  border-radius: var(--border-radius);
}

/* Reduce top margin on textboxes that follow button containers */
.tomselect-buttons+.textbox {
  margin-top: 0 !important;
}

#mfa,
#phone,
#email,
#verify-code,
#email-bottom {
  font-weight: normal;
}

#mfa,
#phone,
#email,
#verify-code,
#email-bottom,
.btn {
  padding-top: 6px;
  padding-bottom: 6px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 16px;
}

.btn {
  font-weight: 600;
  color: #ffffff;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  outline: none;
  cursor: pointer;
  padding-left: 12px;
  padding-right: 12px;
}

#phone-status {
  display: block;
  margin-top: 0;
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: var(--border-radius);
  background-color: var(--info-bg);
  border: 1px solid var(--info-border);
  color: var(--info-color);
  font-size: 14px;
  line-height: 1.4;
  max-width: 238px;
  word-wrap: break-word;
  text-align: left;
}

#phone-status:empty {
  display: none;
}

/* Success state */
#phone-status.success {
  background-color: #dff0d8;
  border-color: #d6e9c6;
  color: #3c763d;
}

/* Error state */
#phone-status.error {
  background-color: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error-color);
}

/* Warning/pending state */
#phone-status.warning {
  background-color: #fcf8e3;
  border-color: #faebcc;
  color: #8a6d3b;
}

/* MFA Container and Button Styles */
.mfa-container {
  margin-top: 8px;
  padding: 0;
  display: block;
  flex-direction: row;
  gap: 12px;
}

.mfa-input-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mfa-container input[type="text"] {
  width: 200px;
  max-width: 200px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 16px;
  box-sizing: border-box;
}

/* 
.mfa-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
} */
#verification-status {
  max-width: 300px;
  text-align: center;
  margin: 0 auto;
}

#verify-mfa-btn,
#resend-code-btn {
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  border: 1px solid;
  white-space: nowrap;
  box-sizing: border-box;
}

#verify-mfa-btn {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

#verify-mfa-btn:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

#resend-code-btn {
  background-color: #f8f9fa;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

#resend-code-btn:hover {
  background-color: #e9ecef;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

#resend-code-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mfa-status {
  display: block;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: var(--border-radius);
  background-color: var(--info-bg);
  border: 1px solid var(--info-border);
  color: var(--info-color);
  font-size: 14px;
  line-height: 1.4;
  max-width: 100%;
  word-wrap: break-word;
  text-align: left;
}

.mfa-status:empty {
  display: none;
}

/* MFA status states */
.mfa-status.success {
  background-color: #dff0d8;
  border-color: #d6e9c6;
  color: #3c763d;
}

.mfa-status.error {
  background-color: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error-color);
}

.mfa-status.warning {
  background-color: #fcf8e3;
  border-color: #faebcc;
  color: #8a6d3b;
}

/* Mobile responsive styles */
/* Phone input styling to match button height and fix alignment */
#add-phone-form {
  display: inline-flex;
  align-items: center;
  vertical-align: bottom;
  gap: 8px;
  margin-top: 0;
  /* Remove top margin since phone-status is now above */
}

#phone {
  width: 200px;
  max-width: 200px;
  font-size: 16px;
  padding: 8px 12px 8px 52px !important;
  height: 32px;
  line-height: normal;
  /* Allow browser to determine line height */
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

#phone:focus {
  border-color: var(--primary-color);
  outline: none;
}

.iti {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.intl-tel-input {
  position: relative;
  width: 200px;
  max-width: 200px;
  display: inline-block;
  vertical-align: middle;
  /* Align with centered items */
}

.intl-tel-input .iti__flag-container {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 48px;
  /* Increased width for better spacing */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  z-index: 2;
  cursor: pointer;
  margin-bottom: 0 !important;
}

.intl-tel-input .iti__selected-flag {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  /* Remove padding */
}

.intl-tel-input .iti__flag {
  box-shadow: none;
  margin: 0 4px 0 0;
  width: 20px;
  height: 15px;
  background-size: contain;
  background-repeat: no-repeat;
}

.intl-tel-input input[type="tel"],
#phone {
  padding: 8px 12px 8px 48px !important;
  height: 32px;
  line-height: 20px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  font-size: 16px;
  background: #fff;
  box-sizing: border-box;
  width: 100%;
  display: block;
}

.intl-tel-input input[type="tel"]:focus,
#phone:focus {
  border-color: var(--primary-color);
  outline: none;
}

.intl-tel-input .iti__arrow {
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid #999;
  margin-left: 2px;
  margin-top: 0;
}

.intl-tel-input .iti__selected-flag:hover .iti__arrow {
  border-top-color: var(--primary-color);
}

/* Ensure the phone form container aligns properly */
#add-phone-btn,
#verify-mfa-btn,
#resend-code-btn {
  height: 32px;
  line-height: 10px;
  padding: 8px 12px;
  vertical-align: baseline;
  box-sizing: border-box;
}

#email,
#verify-code,
#email-bottom {
  width: 250px;
  padding-left: 6px;
  margin-top: 10px;
}

#mfa {
  width: 120px;
  max-width: 172px;
}

#submit,
#submit-bottom {
  margin-top: var(--spacing-xl);
  margin-bottom: 5px;
}

#login-button {
  margin-top: 15px;
}

input[type="checkbox"] {
  transform: scale(1.25);
  margin-right: var(--spacing-sm);
  margin-left: 2px;
  position: relative;
  vertical-align: middle;
}

.remember-me-container {
  display: flex;
  align-items: center;
  margin: var(--spacing-md) 0;
}

.remember-me-container input[type="checkbox"] {
  margin-right: var(--spacing-sm);
}

.remember-me-container label {
  font-size: 0.9rem;
}

.remember-label {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--spacing-md) 0 0 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.remember-label input[type="checkbox"] {
  margin-right: var(--spacing-sm);
}

input[type="radio"] {
  display: none;
}

.radio-group {
  justify-content: center;
  gap: 40px;
}

.radio-group,
.radio-label {
  display: flex;
  align-items: center;
}

.radio-label {
  cursor: pointer;
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--primary-color);
  background-color: white;
  color: var (--primary-color);
  transition: all 0.3s ease;
}

.radiobutton {
  font-size: 14px;
}

input[type="radio"]:checked+.radio-label {
  background-color: #1a2f76;
  color: white;
  border: 5px solid var(--primary-color);
}

input[type="radio"]:not(:checked)+.radio-label {
  background-color: #dae5f2;
  color: navy;
}

input[type="radio"]:not(:checked)+.radio-label:hover {
  background-color: #1a2f76;
  color: white;
}

.btn:focus,
.btn:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff;
}

.btn:active {
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  background-color: var(--primary-darker);
}

.btn-secondary {
  background-color: #f8f9fa;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: #e9ecef;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

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

.alert {
  display: inline-block;
  min-width: 50px;
  max-width: 90%;
  width: auto;
  margin: 0 auto;
  padding: var(--spacing-md);
  margin-top: var(--spacing-xl);
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.alert-info {
  border-color: var(--info-border);
  color: var(--info-color);
  background-color: var(--info-bg);
}

.alert.alert-info.cards-page {
  margin-top: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
  width: 100%;
  text-align: left;
}

.alert-error {
  color: var(--error-color);
  background-color: var(--error-bg);
  border-color: var(--error-border);
}

.alert-danger {
  color: var(--danger-color);
  background-color: var(--danger-bg);
  border-color: var(--danger-border);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  border: 1px solid transparent;
  border-radius: var(--border-radius);
}

.error-message {
  display: none;
  margin: var(--spacing-md) 0;
  padding: 12px 16px;
  background-color: var(--error-bg);
  color: var(--error-color);
  border: 1px solid var(--error-border);
  border-radius: var(--border-radius-lg);
  border-left: 4px solid var(--error-color);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: var(--shadow);
  position: relative;
  animation: slideInError 0.3s ease-out;
}

.error-message::before {
  content: "⚠️";
  margin-right: 8px;
  font-size: 16px;
}

/* System error messages in chat */
.system-error-message {
  margin: 16px 10px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.system-error-message.floating-error {
  position: fixed;
  top: 80vh;
  /* Position at 80% of viewport height */
  left: 10px;
  right: 10px;
  z-index: 100;
  margin: 0;
}

.system-error-message .error-content {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

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

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

/* === START: CHAT PAGE LAYOUT === */
/* Chat container - full viewport height minus header */
.chat-container {
  height: 100dvh;
  position: relative;
  overflow: hidden;
}

/* Chat content wrapper - takes full height */
.chat-container,
.chat-content {
  display: flex;
  flex-direction: column;
  position: relative;
  /* Add relative positioning for absolute children */
}

.chat-content {
  height: 100%;
  min-height: 0;
  /* Important for flex child scrolling */
}

.chat-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  flex-shrink: 0;
  /* Prevent header from shrinking */
}

/* Messages area - flexible, scrollable */
.chat-messages {
  flex: 1;
  min-height: 0;
  /* Important for flex child scrolling */
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  padding: var(--spacing-md) var(--spacing-md) 0 var(--spacing-md);
  background-color: var(--bg-light);
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

/* Ensure smooth scrolling */
body.menu-open .chat-messages {
  height: calc(100vh - var(--header-height) - 140px - var(--menu-content-height, 160px));
}

.message {
  display: inline-block;
  margin-bottom: var(--spacing-sm);
  padding: 8px 12px;
  max-width: 70%;
  width: auto;
  box-shadow: var(--shadow);
  border-radius: 18px;
  animation: messageFadeIn 0.3s ease forwards;
  opacity: 0;
  transform: translateY(20px);
  /* Ensure proper box sizing for all messages */
  box-sizing: border-box;
}

.message,
.message-content {
  position: relative;
  line-height: 1.3;
  /* Default fallback font for all browsers */
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 1rem;
}

/* iOS Dynamic Type support for touch devices (iPhone, iPad) */
@media (pointer: coarse) {
  @supports (font: -apple-system-body) {
    .message-content {
      font: -apple-system-body;
      line-height: 1.3;
    }

    .message-content ol {
      margin-left: 0.5rem;
    }

    .message-content ul {
      padding-left: 1.5rem;
    }
  }
}

/* Standard fonts for precise pointer devices (Mac) */
@media (pointer: fine) {
  .message-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
  }
}

/* Adjust message width for larger text sizes to prevent horizontal scroll */
.message {
  max-width: min(85%, calc(100vw - 2rem));
  box-sizing: border-box;
}

.message-content {
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  /* Ensure content doesn't cause horizontal overflow */
  max-width: 100%;
  overflow: hidden;
}

.message-content ul {
  margin-top: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.message-content ol {
  padding-left: 1.5rem;
  list-style-position: outside;
  box-sizing: border-box;
  overflow: visible;
}

.message-content li {
  margin-bottom: 0.2rem;
  padding-bottom: 0;
}

.message-content li ul,
.message-content li ol {
  margin-top: 0;
  margin-bottom: 0;
}

.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4,
.message-content h5,
.message-content h6 {
  /* Default fallback font for all browsers */
  font-size: 1em;
  font-weight: bold;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.3;
}

/* iOS Dynamic Type support for headings on touch devices (iPhone, iPad) */
@media (pointer: coarse) {
  @supports (font: -apple-system-headline) {

    .message-content h1,
    .message-content h2,
    .message-content h3,
    .message-content h4,
    .message-content h5,
    .message-content h6 {
      font: -apple-system-headline;
      line-height: 1.3;
    }
  }
}

/* Standard fonts for headings on precise pointer devices (Mac) */
@media (pointer: fine) {
  .message-content h1 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .message-content h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.35rem;
    font-weight: 650;
    line-height: 1.3;
  }

  .message-content h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
  }

  .message-content h4 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
  }

  .message-content h5 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.05rem;
    font-weight: 550;
    line-height: 1.3;
  }

  .message-content h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 550;
    line-height: 1.3;
  }
}

.message-content h1 {
  margin-top: 1.2em;
  margin-bottom: 0.6em;
}

.message-content h2 {
  margin-top: 1em;
  margin-bottom: 0.5em;
}

.message-content h3,
.message-content h4 {
  margin-top: 0.8em;
  margin-bottom: 0.4em;
}

.message-content h5,
.message-content h6 {
  margin-top: 0.6em;
  margin-bottom: 0.3em;
}

.message-content p {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.message-content p:first-child {
  margin-top: 0;
}

.message-content hr {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  border: none;
  height: 1px;
  background-color: rgba(74, 144, 226, 0.25);
  border-radius: 0.5px;
}

.message-content pre {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  padding: var(--spacing-sm);
  overflow-x: auto;
}

.message-content code {
  /* Default fallback font for all browsers */
  font-family: "Courier New", monospace;
  font-size: 0.9em;
}

/* iOS Dynamic Type support for inline code on touch devices (iPhone, iPad) */
@media (pointer: coarse) {
  @supports (font: -apple-system-caption1) {
    .message-content code {
      font: -apple-system-caption1;
      font-family: "Courier New", monospace;
    }
  }
}

/* Standard fonts for inline code on precise pointer devices (Mac) */
@media (pointer: fine) {
  .message-content code {
    font-family: "Courier New", "SF Mono", Monaco, monospace;
    font-size: 0.9rem;
    background-color: #f5f5f5;
    padding: 0.1em 0.3em;
    border-radius: 3px;
  }
}

.message-time {
  /* Default fallback font for all browsers */
  font-size: 0.8em;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  margin-top: 4px;
  opacity: 0.7;
}

/* iOS Dynamic Type support for message timestamps on touch devices (iPhone, iPad) */
@media (pointer: coarse) {
  @supports (font: -apple-system-caption1) {
    .message-time {
      font: -apple-system-caption1;
      opacity: 0.7;
    }
  }
}

/* Standard fonts for message timestamps on precise pointer devices (Mac) */
@media (pointer: fine) {
  .message-time {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.8rem;
    opacity: 0.7;
  }
}

.user-message {
  background-color: var(--primary-dark);
  color: white;
  margin-left: auto;
  margin-right: 0;
  text-align: right;
  float: right;
  clear: both;
  border-bottom-right-radius: var(--border-radius);
  animation:
    messageFadeIn 0.3s ease forwards,
    messageBounce 0.4s ease 0.2s;
}

.user-message .assistant-message {
  position: relative;
}

.assistant-message {
  background-color: var(--bg-dark);
  color: var(--text-color);
  margin-right: auto;
  margin-left: 0;
  text-align: left;
  float: left;
  clear: both;
  border-bottom-left-radius: var(--border-radius);
  animation: messageFadeIn 0.3s ease forwards;
}

.assistant-message.thinking .message-content {
  position: relative;
  display: flex;
  align-items: center;
}

.assistant-message.thinking .message-content::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #555;
  border-radius: 50%;
  margin-left: -1px;
  animation: thinkingDot 1.4s infinite ease-in-out both;
}

/* New thinking indicator styles */
.thinking-message {
  background-color: var(--bg-light) !important;
  border: 1px solid var(--border-color);
  opacity: 0.9;
}

.thinking-animation {
  display: flex;
  align-items: center;
  gap: 8px;
}

.thinking-dots {
  display: none;
}

.thinking-dots span {
  width: 6px;
  height: 6px;
  background-color: var(--primary-color);
  border-radius: 50%;
  animation: thinkingBounce 1.4s infinite ease-in-out;
}

.thinking-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.thinking-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

.thinking-dots span:nth-child(3) {
  animation-delay: 0s;
}

.thinking-text {
  color: var(--text-color);
}

@keyframes thinkingBounce {

  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  40% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.assistant-message p:last-of-type {
  margin-bottom: 0;
}

/* Input area - fixed height at bottom */
.chat-input {
  flex-shrink: 0;
  padding: 0.5rem 1rem 1rem 1rem;
  border: 1px solid var(--border-color);
  border-top: none;
  background-color: var(--bg-light);
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  /* border-radius: 0 0 20px 20px; */
}

.chat-input textarea {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  resize: none;
  height: 60px;
  font-size: 16px;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  box-shadow: var(--shadow);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

@supports (font: -apple-system-body) {
  .chat-input textarea {
    font: -apple-system-body;
    font-size: max(16px, 1em);
  }

  .chat-input textarea::placeholder {
    font: -apple-system-body;
    font-size: max(16px, 1em);
  }

  .send-button {
    font: -apple-system-body;
    font-size: max(16px, 1em);
  }
}

.chat-input textarea::placeholder {
  font-size: 16px;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: #999;
}

.send-button {
  flex-shrink: 0;
  height: 86px;
  padding: 12px 20px;
  background-color: var(--primary-dark);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  transition:
    background-color 0.3s,
    transform 0.1s;
  box-shadow: var(--shadow);
}

.send-button:hover {
  background-color: var(--primary-color);
}

.send-button:active {
  transform: scale(0.98);
}

.send-button i {
  font-size: 0.9em;
}

body.chat-page footer {
  display: none;
}

.loading-indicator {
  text-align: center;
  margin: 2rem 0;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: #09f;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

.success-message {
  color: #3bb273;
  background-color: #e6f9f0;
  border: 1px solid #b2e5d0;
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  text-align: center;
  font-weight: 500;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.error-container {
  max-width: 600px;
  margin: 50px auto;
  text-align: center;
  padding: var(--spacing-lg);
  color: #d9534f;
}

.support-info {
  margin-top: var(--spacing-xl);
  font-size: 0.9em;
  color: #6c757d;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: var(--bg-color);
  margin: 15% auto;
  padding: var(--spacing-lg);
  border-radius: 8px;
  max-width: 500px;
  text-align: center;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

footer {
  line-height: 1.6;
  margin-top: 0;
  font-size: small;
  margin-bottom: var(--spacing-md);
}

footer,
footer a {
  color: var(--text-light);
}

.light-mode-logo {
  display: block;
}

.dark-mode-logo {
  display: none;
}

.landing-hero {
  min-height: 100vh;
  width: 100vw;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
}

body.landing-page .content-wrapper {
  max-width: none;
  margin: 0;
  padding-top: 0;
}

.landing-hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  box-sizing: border-box;
  position: relative;
}

/* =========================================================
   SCROLL INDICATOR (Scroll cue at bottom of hero)
   Improves contrast, hit area, and focus affordance across
   light/dark backgrounds.
   ========================================================= */
.scroll-indicator {
  position: fixed;
  top: 90dvh;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.05),
    0 2px 8px rgba(0, 0, 0, 0.15);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.3s ease;
  z-index: 10;
}

.scroll-indicator.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  animation: none !important;
}

/* Larger tap target for very small screens */
@media (max-width: 480px) {
  .scroll-indicator {
    width: 52px;
    height: 52px;
    font-size: 26px;
    top: 90dvh;
  }
}

/* Hover / focus-visible state */
.scroll-indicator:hover,
.scroll-indicator:focus-visible {
  background: var(--primary-color);
  color: #fff;
  transform: translateX(-50%) translateY(-2px) scale(1.04);
  box-shadow:
    0 0 0 3px rgba(74, 144, 226, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.25);
  outline: none;
}

/* Dark mode variant */
/* Gentle pulse animation to attract attention (repeats, subtle) */
@keyframes scrollCuePulse {
  0% {
    transform: translateX(-50%) translateY(0) scale(1);
  }

  50% {
    transform: translateX(-50%) translateY(3px) scale(1.02);
  }

  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.scroll-indicator {
  animation: scrollCuePulse 2.4s ease-in-out 1.2s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator {
    animation: none !important;
    transform: translateX(-50%) !important;
  }
}

#tagline-carousel {
  transition: opacity 0.4s ease-in-out !important;
  display: inline-block;
  min-height: 3.2em;
  /* enough space for up to 2 lines at large sizes */
}

@media (max-width: 599.98px) {
  #tagline-carousel {
    min-height: 2.6em;
  }
}

@keyframes messageFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

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

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

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

@keyframes tailFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

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

@keyframes thinking {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

@keyframes messageBounce {
  0% {
    transform: scale(0.8);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes thinkingDot {

  0%,
  80%,
  100% {
    opacity: 0.4;
    transform: scale(0.7);
  }

  40% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Existing thinkingDot animation renamed to avoid conflicts */
@keyframes messageDot {

  0%,
  80%,
  100% {
    opacity: 0.4;
    transform: scale(0.7);
  }

  40% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-left {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: 48px;
  padding-right: 32px;
  min-width: 320px;
  max-width: 520px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: #111;
  text-align: left;
  margin-bottom: 10px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-title-sub {
  display: block;
  font-size: clamp(1.75rem, 4.5vw, 2.2rem);
  margin-top: 4px;
  line-height: 1.1;
}

.tagline-break {
  display: none;
}

@media (min-width: 600px) {
  .tagline-break {
    display: block;
  }
}

.hero-subtitle {
  font-size: 1.18rem;
  color: #444;
  text-align: left;
  margin-bottom: 36px;
  line-height: 1.5;
}

.hero-features {
  display: flex;
  flex-direction: row;
  gap: 48px;
  margin-bottom: 24px;
  margin-top: 0;
  width: 100%;
  justify-content: flex-start;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 110px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 2px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.feature-shield {
  background-image: url('data:image/svg+xml;utf8,<svg width="44" height="44" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="22" cy="22" r="22" fill="%234A90E2"/><path d="M22 12l8 4v5c0 5.25-3.44 10.08-8 11-4.56-.92-8-5.75-8-11v-5l8-4z" fill="%23fff"/></svg>');
}

.feature-cards {
  background-image: url('data:image/svg+xml;utf8,<svg width="44" height="44" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="22" cy="22" r="22" fill="%234A90E2"/><rect x="13" y="16" width="18" height="12" rx="2" fill="%23fff"/><rect x="16" y="20" width="8" height="2" rx="1" fill="%234A90E2"/></svg>');
}

.feature-chat {
  background-image: url('data:image/svg+xml;utf8,<svg width="44" height="44" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="22" cy="22" r="22" fill="%234A90E2"/><rect x="12" y="14" width="20" height="14" rx="4" fill="white"/><path d="M18 28 l-4 4 v-4" fill="white"/><path d="M18 28 l-4 4 v-4 a4 4 0 0 1 4-4 h12 a4 4 0 0 0 4-4 v-6 a4 4 0 0 0-4-4 h-12 a4 4 0 0 0-4 4 v6 a4 4 0 0 0 4 4 z" fill="none"/></svg>');
}

.feature-speed {
  background-image: url('data:image/svg+xml;utf8,<svg width="44" height="44" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="22" cy="22" r="22" fill="%234A90E2"/><path d="M13 24c0-5 4-9 9-9s9 4 9 9" stroke="%23fff" stroke-width="3" stroke-linecap="round" fill="none"/><line x1="15" y1="21" x2="16" y2="20" stroke="%23fff" stroke-width="2" stroke-linecap="round"/><line x1="18" y1="17" x2="19" y2="16" stroke="%23fff" stroke-width="2" stroke-linecap="round"/><line x1="22" y1="15" x2="22" y2="14" stroke="%23fff" stroke-width="2" stroke-linecap="round"/><line x1="26" y1="17" x2="25" y2="16" stroke="%23fff" stroke-width="2" stroke-linecap="round"/><line x1="29" y1="21" x2="28" y2="20" stroke="%23fff" stroke-width="2" stroke-linecap="round"/><circle cx="22" cy="24" r="2" fill="%23fff"/><line x1="22" y1="24" x2="27" y2="17" stroke="%23fff" stroke-width="3" stroke-linecap="round"/><line x1="22" y1="24" x2="27" y2="17" stroke="%234A90E2" stroke-width="1.5" stroke-linecap="round"/></svg>');
}

.feature-text {
  font-size: 1.05rem;
  color: #111;
  text-align: center;
  font-weight: 500;
  line-height: 1.3;
}

/* Add line breaks for larger screens */
.feature-line2::before {
  content: "\A";
  white-space: pre;
}

/* Remove line breaks on mobile */
.testimonial {
  margin: 10px 0 32px 0;
  text-align: center;
  width: 100%;
  margin-bottom: 10px;
}

.testimonial p {
  font-size: 1.08rem;
  color: #333;
  font-style: italic;
  font-weight: 400;
  margin: 0 auto;
  max-width: 36ch;
  /* readable line length */
  line-height: 1.4;
  cursor: pointer;
  /* signals it's interactive (advances carousel) */
  transition: color 0.15s ease;
}

.testimonial-author {
  font-size: 1rem;
  color: #777;
  font-style: normal;
  margin-left: 6px;
  font-weight: 500;
}

#testimonial-carousel:hover,
#testimonial-carousel:focus-visible {
  color: #111;
  outline: none;
}

#testimonial-carousel:focus-visible {
  box-shadow: 0 0 0 2px var(--primary-color);
  border-radius: 4px;
}

.subscribe-page .testimonial {
  margin-top: 20px;
  margin-bottom: 0px;
}

/* Restrict .cta-box width for subscribe page */
.subscribe-page .cta-box {
  max-width: 480px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  margin: 30px auto 20px auto;
}

/* Center the entire CTA box horizontally within the hero column on the subscribe page */
.subscribe-page .hero-left .cta-box {
  align-self: center;
  /* overrides hero-left's flex-start */
}

/* Restrict .cta-box width for landing page specifically */
.landing-page .cta-box {
  max-width: 460px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  margin-top: 20px;
  padding: 15px 15px 30px 15px;
}

/* Restrict .cta-box width for login page specifically */
.login-page .cta-box {
  max-width: 460px;
  width: auto;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  margin-top: 20px;
  margin-bottom: 40px;
  padding: 20px 20px 30px 20px;
}

.login-page .cta-box #resendCodeBtn {
  display: block;
  margin: 10px auto 15px auto;
  text-align: center;
}

.verify-page .alert-error {
  margin-bottom: 15px;
}

/* Restrict .cta-box width for verify page specifically */
.verify-page .cta-box {
  max-width: 460px;
  width: auto;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  margin-top: 20px;
  margin-bottom: 40px;
  padding: 20px 20px 30px 20px;
}

.cta-box {
  max-width: 460px;
  width: auto;
  margin: 0 auto 0 auto;
  text-align: center;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  /* elevated card: mostly white */
  backdrop-filter: blur(4px) saturate(120%);
  /* subtle glass lift */
  border: 1px solid rgba(74, 144, 226, 0.25);
  border-radius: 12px;
  padding: 28px;
  margin-top: 12px;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(74, 144, 226, 0.15);
  /* brand edge */
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
  position: relative;
}

.cta-box:hover,
.cta-box:focus-within {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(74, 144, 226, 0.45);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(74, 144, 226, 0.3);
  transform: translateY(-2px);
}

.card-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 35px auto;
  text-align: center;
  background-color: #f9fbfe;
  border: 1px solid #e1e8f0;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.cta-title {
  font-size: 1.18rem;
  font-weight: 600;
  color: #111;
  margin-top: 18px;
}

.cta-sub {
  font-size: 1rem;
  color: #888;
  font-weight: 400;
  margin-left: 4px;
}

.cta-form {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 10px 0;
  flex-wrap: wrap;
}

#email:focus,
#verify-code:focus,
#email-bottom:focus {
  border-color: #4a90e2;
  border-width: 1px;
}

.cta-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 16px 28px;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cta-links {
  width: 100%;
  margin-top: var(--spacing-md);
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  font-size: 1rem;
  /* slightly larger for readability */
  line-height: 1.4;
}

.cta-links a,
.cta-links span {
  color: #555;
  /* darker for contrast */
  font-weight: 500;
}

.cta-links a:hover {
  color: var(--primary-color);
}

.hero-right {
  flex: 1 1 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 320px;
  max-width: 520px;
}

.phone-image {
  width: 100%;
  max-width: 430px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
  box-shadow: none !important;
  border-radius: 32px;
}

/* Medium tablets and landscape tablets (821px-1019px) */
/* iPad Portrait and smaller tablets */
/* iPad Portrait (768px - 834px) - More specific spacing adjustment */
/* Small tablets in landscape mode */
/* Hide mobile phone image by default (only show on mobile) */
.hero-phone-mobile {
  display: none;
}

/* Enhanced navigation with SVG icons */
/* Erase button styling */
.erase-button {
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  position: relative;
  display: inline-block;
  margin-top: 15px;
  box-sizing: border-box;
  text-align: center;
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
}

.erase-button:hover {
  background-color: #c82333;
}

.erase-button i {
  margin-right: 5px;
}

/* Erase status overlay styling */
#erase-status {
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  transition: background-color 0.2s;
  position: relative;
  display: none;
  text-align: left;
  width: 136px;
  height: 33px;
  box-sizing: border-box;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#erase-status,
#erase-status.save-status-saving {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 15px;
}

#erase-status.save-status-saving {
  background-color: #ffc107;
  color: #212529;
  border: none;
}

#erase-status.save-status-success {
  background-color: #28a745;
}

#erase-status.save-status-success,
#erase-status.save-status-error {
  color: white;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 15px;
}

#erase-status.save-status-error {
  background-color: #dc3545;
}

.dashboard-subscription-overlay {
  background: #fffbe8;
  border: 1px solid #ffe08a;
  border-radius: 8px;
  padding: 18px 40px 20px 60px;
  /* increased right padding */
  margin: 18px 0 0 0 !important;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 18px;
}

.dashboard-subscription-overlay .overlay-icon {
  position: absolute;
  left: 18px;
  top: 18px;
  font-size: 2rem;
  color: #f7b500;
}

.dashboard-subscription-overlay .overlay-content {
  flex: 1;
}

.dashboard-subscription-overlay .overlay-actions a {
  background: #f7b500;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 18px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s;
  margin-top: 5px;
  margin-left: 10px;
  margin-right: 18px;
  /* min-width: 60px; */
  text-align: center;
  display: inline-block;
}

.dashboard-subscription-overlay .overlay-actions a:hover {
  background: #e0a800;
}

.dashboard-subscription-overlay .overlay-dismiss {
  position: absolute;
  right: 12px;
  top: 10px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #bfa700;
  cursor: pointer;
  z-index: 2;
}

/* Dashboard section styling for better visual separation */
.dashboard-section {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  position: relative;
  transition: box-shadow 0.2s ease;
}

/* --- Dashboard pane visibility controls --- */
.dashboard-panes-wrapper {
  width: 100%;
}

.dashboard-pane {
  display: none;
  margin: 0 0 15px 0;
  text-align: left;
}

.dashboard-pane.active {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.dashboard-section:hover {
  box-shadow: var(--shadow-lg);
}

/* Remove bottom margin from the last dashboard section */
.dashboard-section:last-child {
  margin-bottom: 0;
}

.dashboard-section h2,
.dashboard-section h4 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--text-dark);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-section h2 {
  font-size: 1.6rem;
}

.dashboard-section h4 {
  font-size: 1.2rem;
}

/* Subsections within settings */
.subsection {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid var(--border-color);
  position: relative;
}

.subsection:first-child {
  margin-top: 20px;
  padding-top: 0;
  border-top: none;
}

/* Special styling for danger section */
.dashboard-section.danger-section {
  border-color: var(--danger-border);
  background-color: #fdfbfb;
}

.dashboard-section.danger-section h4 {
  color: var(--danger-color);
  border-bottom-color: var(--danger-border);
}

/* Dark mode for dashboard sections */
/* iPad mini and similar devices in landscape */
/* iPad mini specific adjustments */
/* iPad mini portrait - reduce top margin */
/* @media (max-width: 820px) and (orientation: portrait) and (max-height: 1180px) {
  .landing-hero-inner {
    padding-top: 0rem;
  }
} */
/* iPad mini landscape - increase top margin */
/* Landing page hamburger menu styles */
.landing-hamburger {
  position: fixed;
  top: 10px;
  right: 15px;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  border: none;
  padding: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

/* Hide hamburger menu when in features section - mobile only */
@media (max-width: 768px) {
  .landing-hamburger.hide-in-features {
    opacity: 0;
    pointer-events: none;
  }
}

.landing-hamburger .menu-icon {
  width: 28px;
  height: 28px;
  position: relative;
}

.landing-hamburger .menu-icon span {
  position: absolute;
  height: 3px;
  width: 100%;
  background: #222;
  border-radius: 2px;
  left: 0;
  transition: 0.25s;
}

.landing-hamburger .menu-icon span:nth-child(1) {
  top: 5px;
}

.landing-hamburger .menu-icon span:nth-child(2) {
  top: 13px;
}

.landing-hamburger .menu-icon span:nth-child(3) {
  top: 21px;
}

/* Mobile responsive styles for menu */
/* Subscription banner styles - non-intrusive top banner */
#subscription-overlay {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #4a90e2 0%, #6aaeff 100%);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* border-bottom: 2px solid rgba(255, 255, 255, 0.2); */
  border-radius: 14px;
  border: 1.5px solid rgba(74, 144, 226, 0.25);
}

#subscription-overlay.show {
  transform: translateY(0);
}

#subscription-overlay .subscription-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

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

#subscription-overlay .subscription-icon::before {
  content: "⭐";
  font-size: 14px;
}

#subscription-overlay .subscription-text {
  flex: 1;
  min-width: 0;
}

#subscription-overlay h2 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  line-height: 1.2;
}

#subscription-overlay p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

#subscription-overlay .subscription-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

#subscription-overlay a {
  font-size: 0.875rem;
  color: #4a90e2;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

#subscription-overlay a:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#subscription-overlay .dismiss-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: color 0.2s ease;
  line-height: 1;
}

#subscription-overlay .dismiss-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile responsive styles for subscription banner */
/* Comparison Table Styles */
.benefits-table-wrapper {
  margin: 0 auto 12px auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Secondary conversion CTA shown below comparison table */
.benefits-cta-bottom {
  margin-top: 24px;
  text-align: center;
}

.benefits-cta-bottom .benefits-bottom-cta {
  margin-top: 4px;
  margin-bottom: 4px;
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 600;
}

.benefits-cta-bottom .benefits-cta-note {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .benefits-cta-bottom .benefits-bottom-cta {
    width: 100%;
    display: inline-block;
  }
}

.benefits-table-wrapper,
.benefits-table {
  width: auto;
  max-width: 100%;
  text-align: left;
}

.benefits-table {
  min-width: 280px;
  border-collapse: collapse;
  background: #f9fafd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.06);
  font-size: 1rem;
  margin: 0;
}

.benefits-table th,
.benefits-table td {
  padding: 12px 12px;
  text-align: left;
  border-bottom: 1px solid #e3eaf3;
  font-weight: 400;
  white-space: nowrap;
}

.benefits-table th:first-child,
.benefits-table td:first-child {
  white-space: normal;
  max-width: 200px;
}

.benefits-table th:nth-child(2),
.benefits-table th:nth-child(3),
.benefits-table td:nth-child(2),
.benefits-table td:nth-child(3) {
  padding: 12px 8px;
  width: 50px;
}

.benefits-table th {
  font-size: 1.05rem;
  font-weight: 700 !important;
  color: #222;
  background: none;
}

/* Soften weight for feature names in comparison table rows */
.benefits-table tbody th[scope="row"] {
  font-weight: 500 !important;
  /* was inheriting 700 */
}

@media (max-width: 600px) {
  .benefits-table tbody th[scope="row"] {
    font-weight: 500 !important;
    /* keep consistent on mobile */
  }
}

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

.benefits-table td {
  vertical-align: middle;
  font-size: 1rem;
}

.benefits-table td:nth-child(2),
.benefits-table td:nth-child(3) {
  text-align: center;
  font-size: 1.15rem;
}

/* Emphasize PRO column */
.benefits-table .benefits-pro-col {
  background: linear-gradient(180deg, rgba(255, 248, 225, 0.9) 0%, rgba(255, 241, 193, 0.9) 100%);
  font-weight: 600;
  position: relative;
}

.benefits-table .benefits-pro-col::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: -1px;
  left: 0;
  width: 3px;
  background: #ffd54f;
}

/*  */
/* Dark mode for benefits-table */
/* FAQ and dashboard-section left-justified text */
.dashboard-section,
.dashboard-section p,
.dashboard-section h4,
.dashboard-section b,
.dashboard-section a,
.pagecontainer,
.pagecontainer p,
.pagecontainer h2,
.pagecontainer h3,
.pagecontainer b,
.pagecontainer a {
  text-align: left;
}

/* Remove inline FAQ margin-top in subscribe.html, use a class instead */
.faq-section {
  margin-top: 20px;
}

/* Crop phone image to top 200px on subscribe page */
.subscribe-page .phone-image {
  width: 100%;
  max-width: 370px;
  object-fit: cover;
  object-position: top;
  overflow: hidden;
  border-radius: 32px;
  display: block;
  margin: 0 auto;
}

/* --- SUBSCRIBE PAGE CUSTOMIZATIONS ONLY (body class) --- */
.subscribe-page .landing-hero-inner {
  justify-content: center;
  align-items: flex-start;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1200px;
  width: 100%;
}

.subscribe-page .hero-left {
  align-items: flex-start;
  margin-top: 0;
  display: flex;
  flex-direction: column;
}

.subscribe-page .hero-right {
  align-items: flex-start !important;
  justify-content: flex-start;
  margin-top: 0;
  flex-direction: column;
  max-width: 520px;
}

.subscribe-page .hero-right .phone-image {
  width: 100%;
  max-width: 370px;
  margin-top: 32px;
}

.subscribe-page .hero-phone-mobile {
  display: none;
}

.subscribe-page .hero-right .dashboard-section {
  margin: 0 auto;
  width: 80%;
  max-width: 424px;
  overflow: hidden;
}

.subscribe-page .hero-right .benefits-table-wrapper {
  max-width: 100%;
  overflow-x: auto;
  margin: 0 auto 16px auto;
}

.subscribe-page .hero-right .benefits-table {
  width: 100%;
  /* min-width: 280px;
  max-width: 100%; */
}

.subscribe-page .hero-features {
  margin-bottom: 0;
}

.subscribe-page .cta-title {
  margin-bottom: 20px;
  margin-top: 0;
  text-align: center;
}

.subscribe-page .cta-btn {
  display: block;
  width: fit-content;
  margin: 0 auto 15px auto;
  text-align: center;
}

.subscribe-page .subscribe-note {
  font-size: 0.9rem;
  color: #888;
  margin-top: 10px;
  text-align: center;
}

.cta-box .auth-return {
  margin-top: 4px;
  font-size: 0.9rem;
  color: #888;
  text-align: center;
}

.cta-box .auth-return a {
  color: #4a90e2;
  text-decoration: underline;
}

.trial-step-label {
  margin-bottom: var(--spacing-sm);
}

.trial-verify-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.subscribe-page #verify-code,
.subscribe-page #email,
.subscribe-page #email-bottom {
  margin-top: 0;
}

.subscribe-page #submit,
.subscribe-page #verify-btn {
  margin-top: var(--spacing-xs);
}

.subscribe-page #verify-btn {
  margin-bottom: var(--spacing-xs);
}

.subscribe-page #resend-code-btn {
  width: auto;
}

.verify-email-display {
  font-weight: 600;
  color: #111;
}

/* Hidden OTP sentinel (Safari Mail autofill hint) */
.otp-sentinel {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.landing-hamburger.open .menu-icon span:nth-child(1) {
  opacity: 0;
}

.landing-hamburger.open .menu-icon span:nth-child(2) {
  transform: rotate(45deg);
}

.landing-hamburger.open .menu-icon span:nth-child(3) {
  transform: rotate(-45deg);
}

.landing-hamburger.open .menu-icon span:nth-child(2),
.landing-hamburger.open .menu-icon span:nth-child(3) {
  width: 70%;
  left: 15%;
  top: 13px;
}

#smsConsentModal.modal {
  position: fixed;
  top: 75px;
  /* Shift down from the top */
  left: 0;
  height: 100vh;
  background: rgba(0, 0, 0, 0.35);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
}

#smsConsentModal .modal-content {
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid #428bca;
  box-shadow:
    0 8px 32px rgba(66, 139, 202, 0.12),
    0 1.5px 4px rgba(0, 0, 0, 0.08);
  margin-top: 0;
  margin-bottom: 40px;
  padding: 32px 28px 24px 28px;
  max-width: 420px;
  width: 70dvw;
  color: #222;
  font-family: inherit;
  position: relative;
  animation: fadeInModal 0.25s;
  top: 2px;
}

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

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

#smsConsentModal h3 {
  margin-top: 0;
  color: #428bca;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

#smsConsentModal p {
  font-size: 1rem;
  margin-bottom: 22px;
  color: #444;
}

#smsConsentModal .modal-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  /* Center the buttons horizontally */
  margin-top: 10px;
}

#smsConsentModal .btn {
  background: var(--primary-color);
  color: #fff;
  border: 1px solid var(--primary-color);
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.15s,
    border 0.15s;
}

#smsConsentModal .btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

#smsConsentModal .btn-secondary {
  background: #f8f9fa;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

#smsConsentModal .btn-secondary:hover {
  background: #e9ecef;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

#smsConsentModal .modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.3rem;
  color: #bbb;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
  z-index: 2;
}

#smsConsentModal .modal-close:hover {
  color: #428bca;
}

/* Dark mode styles for SMS Consent Modal */
@media (prefers-color-scheme: dark) {
  #smsConsentModal.modal {
    background: rgba(0, 0, 0, 0.6);
  }

  #smsConsentModal .modal-content {
    background: var(--dark-bg);
    border: 1.5px solid var(--primary-color);
    color: var(--dark-text);
    box-shadow:
      0 8px 32px rgba(74, 144, 226, 0.2),
      0 1.5px 4px rgba(0, 0, 0, 0.4);
  }

  #smsConsentModal h3 {
    color: var(--primary-color);
  }

  #smsConsentModal p {
    color: var(--dark-text-secondary);
  }

  #smsConsentModal .btn-secondary {
    background: var(--dark-bg-secondary);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
  }

  #smsConsentModal .btn-secondary:hover {
    background: var(--dark-bg-tertiary);
    color: var(--primary-hover);
    border-color: var(--primary-hover);
  }

  #smsConsentModal .modal-close {
    color: var(--dark-text-tertiary);
  }

  #smsConsentModal .modal-close:hover {
    color: var(--primary-color);
  }
}

.discount-price {
  color: #28a745;
  font-weight: 700;
}

/* Reduce top padding for .landing-hero on iPad Mini and similar devices (min-width: 744px) */
.modal-bg {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: center;
}

.modal-bg.active {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 8px;
  padding: 32px 24px 24px 24px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.15);
  max-width: 350px;
  width: 100%;
  text-align: left;
}

.modal-box label {
  font-weight: 500;
}

.modal-box input[type="email"] {
  width: 100%;
  padding: 8px 10px;
  margin: 12px 0 18px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.modal-box .modal-btn {
  width: 100%;
  padding: 10px 0;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.modal-box .modal-btn:disabled {
  opacity: 0.6;
}

.modal-box .modal-error {
  color: var(--error-color);
  font-size: 15px;
  margin-bottom: 8px;
}

.inline-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}

.inline-form input[type="email"],
.inline-form input[type="text"] {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.inline-form .btn {
  padding: 8px 18px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid var(--primary-color);
  background: var(--primary-color);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.inline-form .btn:disabled {
  opacity: 0.6;
}

.verify-section {
  margin-top: 10px;
}

.verify-section .inline-form {
  margin-top: 0;
}

.verify-section .btn {
  min-width: 110px;
}

.verify-section .error {
  color: var(--error-color);
  font-size: 15px;
  margin-top: 4px;
}

.verify-section .success {
  color: #2d5a2d;
  font-size: 15px;
  margin-top: 4px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cta-title .original-price {
  text-decoration: line-through;
  color: #888;
}

.cta-title .discounted-price {
  color: #28a745;
  font-weight: 600;
}

.cta-title .promo-badge {
  background: #e1f5fe;
  color: #0077c2;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}

.pro-badge {
  display: inline-block;
  background: linear-gradient(90deg, #ffd700 0%, #ffb300 100%);
  color: #222;
  font-weight: 800;
  font-size: 0.8em;
  border-radius: 6px;
  padding: 2px 8px;
  letter-spacing: 0.04em;
  vertical-align: middle;
  box-shadow: 0 1px 4px rgba(255, 215, 0, 0.13);
  border: 1px solid #ffe082;
  text-shadow: 0 1px 1px #fffbe7;
}

.benefits-table .pro-badge {
  margin-left: 3px;
}

.pagecontainer .pro-badge {
  transform: translateY(-2px);
}

.pagecontainer h3 .pro-badge {
  transform: translateY(-1px);
}

.pro-feature-overlay .pro-badge {
  transform: translateY(-1.5px);
}

.alert-info .pro-badge {
  transform: translateY(-1px);
}

.alert-info .pro-badge-tomselect {
  transform: translateY(-1px);
}

.overlay-content .pro-badge {
  transform: translateY(-2px);
}

.subscribe-cta {
  background: linear-gradient(to bottom, #4caf50, #388e3c);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  color: white !important;
  font-weight: bold;
}

.benefits-card {
  background: #fefefe;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
}

.benefits-table tbody tr:hover {
  background: #f9f9f9;
}

.faq-card {
  background: #f6f8fa;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  margin-left: auto;
  margin-right: auto;
}

/* FAQ collapsible details styling */
.faq-card details {
  background: none;
  border-radius: 6px;
  margin-bottom: 10px;
  padding: 0;
  box-shadow: none;
  border: none;
  transition: background 0.2s;
}

.faq-card details[open] {
  background: #f4f8fc;
  border: 1px solid #e1e8f0;
  padding: 8px 12px 12px 12px;
}

.faq-card summary {
  font-weight: 600;
  font-size: 1.07em;
  cursor: pointer;
  outline: none;
  color: #1877f2;
  padding: 8px 0;
  transition: color 0.2s;
  list-style: none;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card details[open] summary {
  color: #111;
}

.faq-card details p {
  margin: 8px 0 0 0;
  font-size: 1em;
  color: #222;
  line-height: 1.5;
}

@keyframes banner-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
  }
}

.subscription-content.pulse {
  animation: banner-pulse 0.8s;
}

.dashboard-welcome-overlay {
  background: #f0f8ff;
  border: 1px solid #87ceeb;
  border-radius: 8px;
  padding: 18px 40px 20px 60px;
  margin: 18px 0 0 0 !important;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 18px;
}

.dashboard-welcome-overlay .overlay-icon {
  position: absolute;
  left: 18px;
  top: 18px;
  font-size: 2rem;
  color: #4a90e2;
}

.dashboard-welcome-overlay .overlay-content {
  flex: 1;
}

.dashboard-welcome-overlay .overlay-actions button {
  background: #4a90e2;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 18px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s;
  margin-top: 5px;
  margin-left: 10px;
  margin-right: 18px;
  text-align: center;
  display: inline-block;
  cursor: pointer;
}

.dashboard-welcome-overlay .overlay-actions button:hover {
  background: var(--primary-hover);
}

.dashboard-welcome-overlay .overlay-dismiss {
  position: absolute;
  right: 12px;
  top: 10px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #4a90e2;
  cursor: pointer;
  z-index: 2;
}

.dashboard-empty-wallet-overlay {
  background: #f8f4ff;
  border: 1px solid #d4c5f9;
  border-radius: 8px;
  padding: 18px 40px 20px 60px;
  margin: 18px 0 0 0 !important;
  position: relative;
  /* increased right padding */
  display: flex;
  align-items: center;
  gap: 18px;
}

.dashboard-empty-wallet-overlay .overlay-icon {
  position: absolute;
  left: 18px;
  top: 18px;
  font-size: 2rem;
  color: #7c3aed;
}

.dashboard-empty-wallet-overlay .overlay-content {
  flex: 1;
}

.dashboard-empty-wallet-overlay .overlay-actions button {
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  /* min-width: 60px; */
  text-align: center;
  display: inline-block;
  cursor: pointer;
}

.dashboard-empty-wallet-overlay .overlay-actions button:hover {
  background: #6d28d9;
}

.dashboard-empty-wallet-overlay .overlay-dismiss {
  position: absolute;
  right: 12px;
  top: 10px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #7c3aed;
  cursor: pointer;
  z-index: 2;
}

/* Unsaved changes indicator */
.unsaved-indicator {
  display: none;
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
  border-radius: var(--border-radius);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 8px;
  text-align: left;
  align-items: center;
  gap: 6px;
}

/* Specific spacing for unsaved indicator after textbox (valuations section) */
.textbox+.unsaved-indicator {
  margin-top: 5px;
}

.unsaved-indicator.show {
  display: flex;
}

.unsaved-indicator i {
  color: #f39c12;
  font-size: 16px;
  flex-shrink: 0;
}

/* Save status indicator */
.save-status {
  display: none;
  padding: 8px 12px;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 500;
  margin-top: 8px;
  text-align: left;
  align-items: center;
  gap: 6px;
  transition: opacity 0.3s ease;
  width: auto;
  height: auto;
  position: static;
}

.save-status-saving {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.save-status-saving,
.save-status-success {
  display: flex;
  width: auto;
  position: static;
}

.save-status-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.save-status-autosave-success {
  display: flex;
  background-color: #e8f5e8;
  color: #0d7520;
  border: 1px solid #b8e6b8;
  opacity: 0.9;
  width: auto;
  position: static;
}

.save-status-error {
  display: flex;
  background-color: #3d1e1e;
  color: #e6a8a8;
  border: 1px solid #5a2d2d;
  width: auto;
  position: static;
}

.save-status::before,
.save-status-autosave-success::before,
.save-status-error::before {
  content: "";
  margin-right: 0;
}

/* Dark mode styles for save status */
/* === VALUATIONS COMPONENT STYLES === */
.valuations-container {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin: 15px 0;
  text-align: left;
}

.valuations-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #dee2e6;
}

.valuations-header h4 {
  margin: 0;
  color: #495057;
}

.valuations-actions {
  display: flex;
  gap: 10px;
}

.valuation-category {
  margin-bottom: 30px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding: 10px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.category-header i {
  color: #6c757d;
  width: 20px;
}

.category-header h5 {
  margin: 0;
  color: #343a40;
}

.category-description {
  font-size: 0.9em;
  color: #6c757d;
  font-style: italic;
}

.valuations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 250px));
  gap: 15px;
  justify-content: start;
}

.valuation-item {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 15px;
  transition: all 0.2s ease;
  max-width: 100%;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.valuation-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.valuation-item.changed {
  border-color: #ffc107;
  background-color: #fff8e1;
}

.valuation-item.saved {
  border-color: #28a745;
  background-color: #d4edda;
  transition:
    border-color 0.5s ease,
    background-color 0.5s ease;
}

.valuation-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.valuation-label {
  font-weight: 600;
  color: #495057;
  font-size: 0.95em;
}

.valuation-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 0;
}

.valuation-controls,
.value-btn {
  display: flex;
  align-items: center;
}

.value-btn {
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.value-btn:hover {
  background: #5a6268;
}

.value-btn:active {
  background: #495057;
}

.valuation-input {
  text-align: center;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 8px 12px;
  width: 80px;
  font-size: 1em;
  font-weight: 600;
}

.valuation-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.valuation-unit {
  font-size: 0.9em;
  color: #6c757d;
  margin-left: 8px;
  display: flex;
  align-items: center;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}

.valuation-actions {
  margin-top: 10px;
  text-align: right;
}

.btn-reset-single {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 5px 8px;
  cursor: pointer;
  color: #6c757d;
  font-size: 0.8em;
  transition: all 0.2s ease;
}

.btn-reset-single:hover {
  background: #e9ecef;
  color: #495057;
}

.valuations-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #dee2e6;
}

.valuation-note {
  font-size: 0.9em;
  color: #6c757d;
  line-height: 1.5;
}

.valuation-note i {
  margin-right: 8px;
}

.valuations-unsaved {
  margin-top: 15px;
  color: #856404;
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: var(--border-radius);
  padding: 8px 12px;
  font-size: 0.9em;
  display: none;
  align-items: center;
  gap: 8px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.valuations-unsaved.visible {
  display: flex;
}

.valuations-unsaved.saved {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.valuations-unsaved i {
  color: #856404;
  transition: color 0.3s ease;
}

.valuations-unsaved.saved i {
  color: #155724;
}

.faq-card.dashboard-section.faq-section {
  margin-bottom: 20px !important;
}

/* Pro feature overlay styles */
.pro-feature-overlay {
  background: rgba(255, 255, 255, 0.85);
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border-radius: 8px;
  padding-top: 20px;
}

.pro-feature-overlay>div {
  text-align: center;
}

.pro-feature-overlay .pro-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #1976d2;
}

.pro-feature-overlay .pro-subtitle {
  color: #888;
}

.pro-feature-overlay .btn {
  background: #1976d2;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  display: inline-block;
  margin-top: 8px;
}

/* Disabled state styles for non-pro users */
.valuations-container [disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.valuations-container input[readonly] {
  background: #f3f3f3;
  cursor: not-allowed;
}

/* Dark mode styles for valuations component */
/* Extra small mobile devices */
/* ============================================
   Dark Mode Styles (Consolidated)
   ============================================ */
/* Mobile improvements */
/* Smooth transitions for pane switching */
.dashboard-pane {
  transition: opacity 0.2s ease-in-out;
  display: none;
  background: transparent;
  border-top: none;
  border-radius: 0 0 12px 12px;
  min-height: 400px;
  animation: fadeIn 0.2s ease-in-out;
}

.dashboard-pane:not(.active) {
  opacity: 0;
}

.dashboard-pane.active {
  opacity: 1;
  display: grid;
}

/* Loading states */
/* .dashboard-pane .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}
.dashboard-pane .btn:disabled:hover {
  background: #3b82f6;
  transform: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
} */
/* Better focus styles */
.dashboard-tab:focus {
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
}

/* Improved spacing between elements */
.dashboard-pane .dashboard-section>div {
  margin-bottom: 20px;
}

.dashboard-pane .dashboard-section>div:last-child {
  margin-bottom: 0;
}

/* Enhanced danger section styling */
.dashboard-pane .dashboard-section.danger-section {
  border-color: #fecaca;
  border: 1px solid #fecaca;
  background: #fef2f2;
  border-radius: 8px;
  margin-top: 24px;
  padding: 20px;
}

.dashboard-pane .dashboard-section.danger-section h4 {
  color: #dc2626;
  border-bottom-color: #fecaca;
  margin-bottom: 16px;
}

/* Collapsible danger sections */
.collapsible-section .collapsible-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #fecaca;
  padding-bottom: 10px;
  margin-bottom: 0;
  transition: all 0.2s ease;
}

.collapsible-section .collapsible-header:hover {
  color: #b91c1c;
}

.collapsible-section .collapse-icon {
  font-size: 12px;
  transition: transform 0.2s ease;
  color: #dc2626;
}

.collapsible-section.collapsed .collapse-icon {
  transform: rotate(-90deg);
}

.collapsible-content {
  max-height: 1000px;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
  opacity: 1;
  margin-top: 16px;
}

.collapsible-section.collapsed .collapsible-content {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

/* .dashboard-pane .erase-button,
.dashboard-pane .delete-account-btn {
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dashboard-pane .erase-button:hover,
.dashboard-pane .delete-account-btn:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}
.dashboard-pane .erase-button:active,
.dashboard-pane .delete-account-btn:active {
  transform: translateY(0);
} */
/* Responsive tabs for mobile */
/* Dashboard Tabs and Panes */
.dashboard-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}

.dashboard-tab {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 12px 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.2s ease;
  border-radius: 24px;
  position: relative;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.dashboard-tab:hover {
  color: #1f2937;
  background: #f8fafc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

.dashboard-tab.active {
  color: #ffffff;
  background: #3b82f6;
  border-color: #3b82f6;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.dashboard-tab.active:hover {
  background: #2563eb;
  border-color: #2563eb;
}

@keyframes fadeIn {}

/* Dashboard pane grid layout - moved to active state above */

/* Responsive grid breakpoints */
@media (min-width: 768px) {
  .dashboard-pane.active {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .dashboard-pane.active {
    grid-template-columns: repeat(6, 1fr);
  }

  .dashboard-section.two-thirds {
    grid-column: span 4;
  }

  .dashboard-section:not(.full-width):not(.half-width):not(.two-thirds) {
    grid-column: span 2;
  }
}

/* Grid item sizing for special sections */
.dashboard-section.full-width {
  grid-column: 1 / -1;
}

/* Base mobile/tablet half-width - stays span 1 */
.dashboard-section.half-width {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .dashboard-section.two-thirds {
    grid-column: span 2;
  }
}

/* Desktop half-width override */
@media (min-width: 1200px) {
  .dashboard-section.half-width {
    grid-column: span 3;
  }
}

/* Dashboard pane content styling */
.dashboard-pane .dashboard-section {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 25px;
  margin-bottom: 0;
  box-shadow: var(--shadow);
  position: relative;
  transition: box-shadow 0.2s ease;
  height: fit-content;
}

.dashboard-pane .dashboard-section:hover {
  box-shadow: var(--shadow-lg);
}

/* Enhanced section headers */
.dashboard-pane .dashboard-section h2,
.dashboard-pane .dashboard-section h4 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--text-dark);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-pane .dashboard-section h2 {
  font-size: 1.6rem;
}

.dashboard-pane .dashboard-section h4 {
  font-size: 1.2rem;
}

/* Enhanced danger section styling */
/* .dashboard-pane .erase-button,
.dashboard-pane .delete-account-btn {
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dashboard-pane .erase-button:hover,
.dashboard-pane .delete-account-btn:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
} */
/* Better focus styles */
/* Better text styling */
/* .dashboard-pane p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 16px;
}
.dashboard-pane i {
  color: #9ca3af;
  font-size: 13px;
} */
/* Status indicators */
.dashboard-pane .success {
  color: #059669;
  font-weight: 500;
}

.dashboard-pane .error {
  color: #dc2626;
  font-weight: 500;
}

.dashboard-pane .warning {
  color: #d97706;
  font-weight: 500;
}

/* Better spacing for subsections */
.dashboard-pane .subsection {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.dashboard-pane .subsection:first-child {
  margin-top: 24px;
  padding-top: 0;
  border-top: none;
}

#tagline-carousel-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#tagline-indicator {
  font-size: 1.6rem;
  opacity: 0.6;
  animation: pulseArrow 1.8s infinite ease-in-out;
  transform-origin: center;
}

@keyframes pulseArrow {

  0%,
  100% {
    transform: translateX(0);
    opacity: 0.5;
  }

  50% {
    transform: translateX(4px);
    opacity: 1;
  }
}

.promo-badge {
  display: inline-block;
  background: #e0f7fa;
  color: #007b8a;
  font-weight: 700;
  font-size: 0.92em;
  border-radius: 999px;
  padding: 3px 12px 3px 10px;
  margin-left: 10px;
  vertical-align: middle;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: none;
}

/* Main subscription split: left-right separator */
/* Comparison table header row bg and bold headers */
.benefits-table thead tr {
  background: #f9fafb;
}

/* ============================================
   Dark Mode Styles (Consolidated)
   ============================================ */
/* === FEATURES SECTION ====================================== */
.features-section {
  width: 100%;
  margin: 32px auto;
  padding: 0;
  box-sizing: border-box;
  text-align: left;
  background: transparent;
}

/* === SCROLL-TRIGGERED FEATURES LAYOUT ==================== */
.features-container {
  display: flex;
  gap: 0;
  min-height: 100vh;
  position: relative;
  background: transparent;
}

/* Text Container on Left */
.features-text-container {
  flex: 1 1 40%;
  padding-right: 100px;
  padding-left: 20px;
  padding-top: 40vh;
  background: transparent;
}

/* Fixed Image Container on Right */
.features-image-container {
  flex: 1 1 60%;
  max-width: none;
  min-width: 320px;
  position: sticky;
  top: 20vh;
  height: fit-content;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: transparent;
  padding-left: 32px;
  padding-right: 20px;
}

/* Media query for wide screens - position images higher */
@media (min-aspect-ratio: 16/10) {
  .features-image-container {
    top: 5vh !important;
  }
}

/* Unlocked state - image stops being sticky and scrolls normally */
.features-container.image-unlocked .features-image-container {
  position: relative !important;
  top: auto !important;
  transform: none !important;
  margin-top: var(--unlock-offset, 0);
  /* No transition - instant positioning to prevent visible movement */
}

.features-image-wrapper {
  position: relative;
  width: 100%;
}

.feature-image-item {
  position: absolute;
  top: 0;
  right: 0;
  width: auto;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.feature-image-item.active {
  opacity: 1;
  pointer-events: auto;
}

.feature-image-item img {
  width: auto;
  max-width: 100%;
  border-radius: 16px;
  cursor: default;
  transition: transform 0.3s ease;
}

.feature-image-item img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .feature-image-item img {
    cursor: default;
  }
}


.feature-text-block {
  margin-bottom: 60vh;
  padding: 48px 0;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.feature-text-block.active {
  opacity: 1;
}

.feature-text-block:last-child {
  margin-bottom: 50vh;
  /* Reduced space after last feature */
}

.feature-text-block h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text-color);
}

.feature-text-block p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color-secondary);
  margin: 0;
}

/* Responsive Design */
@media (min-width: 1334px) {

  /* When 45vw > 600px, use fixed positioning for max size */
  .features-image-container:not(.unlocked) {
    top: calc(50vh - 300px);
  }
}

@media (max-width: 711px) {

  /* When 45vw < 320px, use fixed positioning for min size */
  .features-image-container:not(.unlocked) {
    top: calc(50vh - 160px);
  }
}

/* @media (max-width: 1024px) {
  .features-container {
    gap: 3vw;
  }

  .features-text-container {
    padding-right: 1vw;
  }
} */

/* MOBILE LAYOUT - 0-768px: Vertical stack [IMAGE] [DOTS] [TEXT] */
@media (max-width: 768px) {
  .features-section {
    margin: 8px auto;
    padding: 0;
  }

  .features-heading {
    margin: 1rem !important;
  }

  /* STRUCTURE: Stack vertically */
  .features-container {
    flex-direction: column !important;
    gap: 2rem !important;
    min-height: auto !important;
    padding: 0 !important;
  }

  /* IMAGE SECTION */
  .features-image-container {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    flex: none !important;
    order: 1 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: auto !important;
    height: auto !important;
    overflow: visible;
    margin: 0 !important;
    padding: 20px 20px 0 20px !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .features-image-wrapper {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
  }

  .feature-image-item {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
  }

  .feature-image-item.active {
    opacity: 1 !important;
    position: relative !important;
  }

  .feature-image-item img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    display: block !important;
  }

  /* DOTS - Between image and text */
  .features-mobile-indicators {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    order: 2 !important;
    margin: 0 !important;
    margin-top: -20px !important;
    padding: 0 32px !important;
  }

  .mobile-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.3);
    transition: background 0.3s ease;
    cursor: pointer;
    border: none;
  }

  .mobile-indicator.active {
    background: var(--primary-color);
  }

  /* TEXT SECTION */
  .features-text-container {
    order: 3 !important;
    flex: none;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
  }

  .features-text-wrapper {
    position: relative !important;
    width: 100% !important;
    min-height: 320px !important;
    /* Increased from 280px to prevent truncation */
    height: auto !important;
    /* Allow dynamic height based on content */
    overflow: visible;
  }

  .feature-text-block {
    position: relative !important;
    /* Changed from absolute to let content determine height */
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    opacity: 1 !important;
    padding: 0 32px 32px 32px !important;
    /* Increased bottom padding to prevent truncation */
    box-sizing: border-box !important;
    display: none !important;
    white-space: normal;
    overflow: visible;
    word-wrap: break-word;
  }

  .feature-text-block.active {
    display: block !important;
  }

  .feature-text-block[style*="display: block"] {
    display: block !important;
  }

}

.features-heading {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-family);
  text-align: center;
  margin: 15vh 0 15vh 0;
}

/* Hide mobile indicators on desktop */
.features-mobile-indicators {
  display: none;
  color: #111;
}

.feature-block {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 64px;
  opacity: 0;
  transform: translateY(24px);
}

.feature-block:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-block .feature-copy {
  margin-top: 32px;
  /* Adjust this value as needed */
}

.feature-image img {
  width: 100%;
  max-width: 500px;
  min-width: 360px;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.feature-image img:hover {
  transform: scale(1.02);
}

/* Image Modal */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

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

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.image-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.image-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 28px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1001;
}

.image-modal-prev {
  left: 30px;
}

.image-modal-next {
  right: 30px;
}

.image-modal-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.image-modal-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.feature-copy h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #111;
}

.feature-copy p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.5;
}

/* === BOTTOM CTA SECTION ================================== */
.bottom-cta-section {
  width: 100%;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 64px 0;
  margin-top: 32px;
  position: relative;
}

.bottom-cta-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.bottom-cta-heading {
  font-size: 2.2rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 16px 0;
  font-family: var(--font-family);
}

.bottom-cta-subheading {
  font-size: 1.2rem;
  color: #555;
  margin: 0 0 32px 0;
  font-weight: 400;
}



/* === SCROLL INDICATOR ================================ */
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 36px;
  color: #999;
  opacity: 0.8;
  text-decoration: none;
  animation: scrollBounce 2s infinite;
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

@keyframes scrollBounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translate(-50%, 0);
    opacity: 0.5;
  }

  40% {
    transform: translate(-50%, -10px);
    opacity: 1;
  }

  60% {
    transform: translate(-50%, -5px);
  }
}

/* === FOOTER STYLES ======================================== */
.site-footer {
  background: #f8fafc;
  padding: 44px 0 20px 0;
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 0;
  width: 100%;
  max-width: none;
}

.footer-disclaimer {
  margin: 0 0 44px 0;
  padding: 0;
  font-size: 0.9rem;
  color: #666;
  text-align: left;
  /* aligns with columns */
}

.footer-inner {
  max-width: none;
  margin: 0 auto;
  padding: 0 25px;
  box-sizing: border-box;
}

/* Landing page specific footer styling to match features section */
body.landing-page .site-footer {
  padding: 44px 0 20px 0;
}

body.landing-page .footer-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
}

.footer-brand {
  flex: 1 1 240px;
  text-align: left;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #111;
}

.footer-logo a {
  color: #111;
  text-decoration: none;
}

.footer-tagline {
  margin: 0 0 16px 0;
  color: #555;
}

.footer-col {
  flex: 1 1 160px;
  text-align: left;
}

.footer-col h4 {
  margin: 0 0 12px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #111;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 8px;
  padding-bottom: 5px;
}

.footer-col a {
  color: #444;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid #e3eaf3;
  margin-top: 10px;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: left;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #888;
}

@keyframes featureFadeUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }

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

/* Start hidden / shifted */
/* Play the animation once the JS observer adds .visible */
.feature-block.visible {
  animation: featureFadeUp 0.8s ease-out forwards;
}

@media (max-width: 768px) {
  .subscribe-page .landing-hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .subscribe-page .faq-section {
    grid-column: 1;
    order: 3;
    margin-top: 30px;
  }

  .subscribe-page .hero-right {
    order: 2;
  }

  .subscribe-page .hero-left {
    order: 1;
  }

  .subscribe-page .content-wrapper {
    padding-top: 20px;
  }

  /* Subscribe page footer matches landing-hero-inner mobile max-width */
  body.subscribe-page .footer-inner {
    max-width: 540px;
    width: 86%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  /* Center the footer the same way as FAQ section */
  body.subscribe-page .site-footer {
    display: flex;
    justify-content: center;
    padding: 44px 0 20px 0;
  }
}

@media (min-width: 769px) {
  body.subscribe-page .footer-inner {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
  }

  body.subscribe-page .site-footer {
    display: block;
    padding: 44px 0 20px 0;
  }

  .subscribe-page .landing-hero {
    padding-top: 0;
    margin-top: -40px;
  }

  .landing-page .landing-hero {
    padding-top: 0;
    margin-top: 20px;
  }

  .subscribe-page .hero-right {
    margin-top: 75px;
  }

  .landing-hero-inner {
    /* Vertically align columns to the top for better visual balance */
    align-items: flex-start;
  }

  .landing-hero-inner .hero-left,
  .landing-hero-inner .hero-right {
    position: relative;
    z-index: 1;
  }

  .landing-hero-inner .hero-left::after {
    content: "";
    display: block;
    position: absolute;
    top: 4%;
    right: -25px;
    width: 1.5px;
    height: 92%;
    background: linear-gradient(to bottom, #e5eaf2 0%, #f6fafd 40%, #e5eaf2 100%);
    opacity: 0.75;
    border-radius: 2px;
    z-index: 2;
  }

  #email,
  #email-bottom {
    margin-top: 20px;
  }
}

/* Universal 768px breakpoint - desktop hero layout above this */
@media (min-width: 769px) {
  .hero-phone-mobile {
    display: none !important;
  }

  .hero-right {
    display: flex !important;
  }
}

@media (min-width: 769px) and (max-width: 834px) {
  .landing-hero {
    display: flex;
    align-items: flex-start;
    padding: 2rem 0 2rem 0;
  }

  .landing-hero-inner {
    padding: 1.5rem 2rem;
    margin-top: 1rem;
  }
}

@media (min-width: 769px) and (max-width: 820px) {
  .hero-features {
    justify-content: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
    flex-wrap: nowrap;
  }

  .feature {
    flex: none;
    min-width: 100px;
    max-width: 120px;
  }
}

@media (min-width: 821px) and (max-width: 1019px) {
  .landing-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 0;
  }

  .landing-hero-inner {
    flex-direction: row;
    padding: 2.5rem 2rem 1.5rem 2rem;
    gap: 1rem;
    max-width: 100%;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
  }

  .hero-left {
    flex: 1.1;
    padding: 0;
    margin-bottom: 0;
    padding-left: 32px;
    align-items: flex-start;
    max-width: none;
    text-align: left;
  }

  .hero-title {
    font-size: 2.4rem;
    text-align: left;
    line-height: 1.1;
    margin-bottom: 1.2rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 1.8rem;
    max-width: none;
    text-align: left;
  }

  .hero-features {
    justify-content: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
    flex-wrap: nowrap;
  }

  .feature {
    flex: none;
    min-width: 100px;
    max-width: 120px;
  }

  .feature-text {
    font-size: 0.95rem;
  }

  .testimonial {
    margin-bottom: 1.8rem;
    text-align: left;
  }

  .testimonial p {
    font-size: 1.1rem;
    max-width: none;
    margin: 0;
    text-align: left;
  }

  .cta-box {
    margin-bottom: 0;
  }

  .cta-title {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .cta-sub {
    display: block;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    margin-left: 0;
  }

  .cta-form {
    gap: 0.75rem;
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .landing-page .cta-form {
    max-width: 430px;
    margin: 0 auto;
  }

  .cta-btn {
    max-width: 180px;
    font-size: 1.05rem;
    padding: 0.85rem 1.5rem;
    flex-shrink: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .login-page #email,
  .login-page #email-bottom {
    margin-top: 36px;
  }

  /* Login page specific overrides to maintain vertical layout */
  .login-page .cta-form {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }

  .login-page .cta-form input[type="email"],
  .login-page .cta-form #email-bottom {
    width: 100%;
    max-width: 300px;
  }

  .login-page .cta-btn {
    width: 100%;
    max-width: 300px;
  }

  .login-page .remember-label {
    justify-content: center;
  }

  .hero-right {
    flex: 0.9;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    margin-left: 1.5rem;
  }

  .phone-image {
    width: 100%;
    max-width: 430px;
    height: auto;
    object-fit: contain;
  }

  /* .cta-links {
    justify-content: flex-start;
    margin-top: 1.2rem;
    text-align: left;
  } */
}

@media (min-width: 1024px) {

  html.landing-page,
  body.landing-page {
    height: 100vh;
    max-height: 100vh;
    overflow: auto;
  }

  .subscribe-page .hero-right .dashboard-section {
    margin-left: 40px;
  }

  /* Login page specific overrides to maintain vertical layout */
  .login-page .cta-form {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }

  .login-page .cta-form input[type="email"],
  .login-page .cta-form #email-bottom {
    width: 100%;
    max-width: 300px;
  }

  .login-page .cta-btn {
    width: 100%;
    max-width: 300px;
  }

  .login-page .remember-label {
    justify-content: center;
  }
}

/* Removed landscape-specific rule - using consistent layout at 768px+ regardless of orientation */

@media (max-width: 1200px) {
  .landing-hero-inner {
    max-width: 100vw;
    padding: 0 8px;
  }
}

@media (max-width: 1200px) and (orientation: landscape) and (max-height: 800px) {

  html.landing-page,
  body.landing-page {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .landing-hero {
    min-height: auto;
    height: auto;
  }

  .landing-hero-inner {
    padding-top: 2rem;
  }
}

@media (max-width: 1024px) {
  .subscribe-page .landing-hero-inner {
    gap: 20px;
    padding: 0 16px;
  }

  /* Fix CTA button truncation between 820px and 1024px */
  .cta-form {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .cta-btn {
    width: 100%;
    max-width: 300px;
    margin-bottom: 15px;
  }

  #bottom-email {
    margin-bottom: 10px;
  }

  #submit,
  #submit-bottom {
    margin-top: 10px;
    margin-bottom: 15px;
  }
}

@media (max-width: 768px) {
  .subscribe-page .faq-section {
    grid-column: 1;
    order: 3;
    margin-top: 30px;
  }

  .subscribe-page .hero-right {
    order: 2;
  }

  .subscribe-page .hero-left {
    order: 1;
  }

  .landing-hero {
    min-height: unset;
    padding-top: 48px;
    padding-bottom: 24px;
  }

  .landing-hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
  }

  .hero-left {
    padding-right: 0;
    margin-bottom: var(--spacing-xl);
    align-items: center;
    max-width: 100%;
  }

  .hero-title {
    text-align: center;
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-features {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .phone-image {
    width: 100%;
    max-width: 430px;
  }

  .cta-form {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .cta-btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 899px) {
  .landing-hero-inner .hero-left::after {
    display: none !important;
  }
}

/* Removed portrait-specific rule - using consistent two-column layout at 768px+ regardless of orientation */

@media (min-width: 769px) {
  .landing-hero-inner {
    flex-direction: row !important;
  }
}

@media (max-width: 768px) {
  .valuations-header {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .valuations-actions {
    justify-content: center;
  }

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

  .valuation-item {
    max-width: none;
  }

  .category-header {
    flex-wrap: wrap;
  }

  .category-description {
    flex-basis: 100%;
    margin-top: 5px;
  }

  /* Override mobile footer padding for landing page to match features section */
  body.landing-page .site-footer {
    padding: 44px 0 20px 0;
  }

  body.landing-page .footer-inner {
    padding: 0 32px;
  }

  .dashboard-tabs {
    flex-direction: row;
    gap: 6px;
    padding: 0 16px;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 18px;
  }

  .dashboard-pane {
    gap: 16px;
  }

  .dashboard-pane .dashboard-section {
    padding: 16px;
  }

  .dashboard-section h2 {
    font-size: 1.25rem;
  }

  .dashboard-section h4 {
    font-size: 1.1rem;
  }

  .dashboard-tab {
    padding: 10px 16px;
    font-size: 14px;
    min-width: 0;
    flex-shrink: 0;
    border-radius: 20px;
  }

  .feature-block,
  .feature-block:nth-child(even) {
    flex-direction: column;
    gap: 24px;
  }

  /* Center feature images on mobile while capping at 666 px */
  .feature-image {
    align-self: center;
    text-align: center;
    width: 100%;
    max-width: 666px;
    /* cap container */
  }

  .feature-image img {
    width: 100%;
    max-width: 666px;
    /* cap image */
    height: auto;
  }

  /* Bottom CTA mobile styles */
  .bottom-cta-section {
    padding: 48px 0;
  }

  .bottom-cta-container {
    padding: 0 20px;
  }

  .bottom-cta-heading {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }

  .bottom-cta-subheading {
    font-size: 1.1rem;
    margin-bottom: 28px;
  }


  /* Image modal navigation mobile styles */
  .image-modal-nav {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }

  .image-modal-prev {
    left: 15px;
  }

  .image-modal-next {
    right: 15px;
  }

  .footer-columns {
    flex-direction: column;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}


@media (max-width: 768px) {
  .subscribe-page .cta-title {
    font-size: 1.1rem;
    margin-bottom: 18px;
  }

  .subscribe-page .cta-btn {
    padding: 14px 24px;
    font-size: 1rem;
  }

  .subscribe-page .hero-left {
    align-items: center !important;
  }

  .subscribe-page .hero-right .phone-image {
    margin-bottom: 24px;
  }

  .subscribe-page .faq-section {
    order: 7;
    margin-top: 20px;
    text-align: left;
    width: 86%;
    max-width: 500px;
    /* Ensure consistent width */
  }

  .landing-hero {
    min-height: unset;
    padding-top: 0;
    padding-bottom: 0;
  }

  .landing-hero-inner {
    text-align: center;
    padding: 1rem 0.75rem;
    gap: 1.5rem;
  }

  .landing-hero-inner,
  .hero-left {
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .hero-left {
    padding: 0 0.5rem;
    width: 100%;
    order: 1;
  }

  /* Show mobile phone image */
  .hero-phone-mobile {
    display: block;
    margin: 1rem 0;
    order: 2;
  }

  /* Hide desktop phone image */
  .hero-right {
    display: none;
    order: 4;
  }

  .phone-image-mobile {
    width: 350px;
    height: 310px;
    object-fit: cover;
    object-position: top;
    border-radius: 20px;
    margin: 0 auto;
    display: block;
  }

  .hero-title {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    text-align: center;
    margin-top: 50px;
    order: 1;
  }

  .hero-subtitle {
    font-size: 1.08rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    text-align: center;
    order: 3;
  }

  .hero-features {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    order: 4;
  }

  .feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    min-width: 80px;
    max-width: 100px;
  }

  .feature-icon {
    flex-shrink: 0;
  }

  .feature-text {
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .testimonial {
    margin: 0 20px 5px 20px;
    text-align: center;
    order: 5;
    max-width: 460px;
  }

  .testimonial p {
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
  }

  .testimonial-author {
    font-size: 0.9rem;
  }

  .cta-box {
    text-align: center;
    order: 6;
  }

  .cta-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .cta-sub {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.9rem;
  }

  .cta-form {
    gap: 0.75rem;
    flex-direction: column;
    align-items: center;
  }

  .cta-btn {
    width: 100%;
    max-width: 300px;
    font-size: 16px;
  }

  .cta-btn {
    padding: 0.75rem 1.5rem;
  }

  .cta-links {
    margin-top: 1rem;
    gap: 1rem;
    justify-content: center;
    order: 7;
  }

  .cta-links a {
    font-size: 0.9rem;
  }

  .benefits-table {
    font-size: 0.9rem;
  }

  .benefits-table th,
  .benefits-table td {
    padding: 10px 8px;
    font-size: 0.9rem;
  }

  .benefits-table th:nth-child(2),
  .benefits-table th:nth-child(3),
  .benefits-table td:nth-child(2),
  .benefits-table td:nth-child(3) {
    padding: 10px 6px;
    width: 45px;
  }

  .benefits-table th {
    font-size: 0.95rem;
  }

  .subscribe-page .landing-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 600px;
    text-align: center;
    align-items: center;
    /* Center align items */
  }

  .subscribe-page .dashboard-section h2,
  .subscribe-page .dashboard-section h4 {
    border-bottom: none !important;
  }

  /* Make .hero-left and .hero-right 'disappear' on mobile, promoting their children */
  .subscribe-page .hero-left,
  .subscribe-page .hero-right {
    display: contents;
  }

  .subscribe-page .hero-right .dashboard-section {
    order: 6;
    margin: 20px auto 0 auto;
    width: 86%;
    max-width: 500px;
  }

  /* --- Ordering Rules for the promoted children --- */
  /* 1. Title */
  .subscribe-page .hero-title {
    order: 1;
    width: 100%;
    /* Ensure it takes full width */
  }

  /* 2. Subtitle */
  .subscribe-page .hero-subtitle {
    order: 2;
    width: 100%;
  }

  /* 3. Features */
  .subscribe-page .hero-features {
    order: 3;
    width: 100%;
    /* Copied from original for spacing */
  }

  /* 4. Testimonial */
  .subscribe-page .testimonial {
    order: 4;
    width: 100%;
    margin: 24px auto 24px auto;
  }

  /* 5. Call to Action */
  .subscribe-page .cta-box {
    order: 5;
    width: 100%;
    margin: 0px auto 0 auto;
    /* Copied from original for spacing */
  }

  /* 6. Benefits Table */
  /* This targets the dashboard-section in hero-right that contains the table */
  /* 7. FAQ */
  /* Hide unnecessary elements on mobile */
  .subscribe-page .hero-right .phone-image,
  .subscribe-page .hero-phone-mobile {
    display: none !important;
  }

  /* Styling for CTA elements that might lose context */
  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 600px) {
  #add-phone-form {
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
  }

  #phone {
    width: 100%;
    max-width: none;
    margin-bottom: 0;
  }

  #add-phone-btn,
  #verify-mfa-btn,
  #resend-code-btn {
    width: 100%;
    margin-top: 0;
  }

  .mfa-container {
    margin-top: 10px;
    width: 300px;
  }

  #phone-status,
  #mfa-status {
    max-width: 238px;
  }

  .mfa-input-row {
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
  }

  .mfa-container input[type="text"] {
    width: 100%;
    max-width: none;
  }

  .mfa-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  #phone,
  .intl-tel-input {
    width: 172px;
    max-width: 172px;
  }

  #tagline-carousel {
    transition: opacity 0.3s ease-in-out !important;
  }

  .feature-line2::before {
    content: "\A";
    white-space: pre;
  }

  .subscribe-page .cta-box {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    margin-top: 5px;
    padding: 20px 16px;
  }

  .login-page .cta-wrapper {
    padding: 0 10px;
    box-sizing: border-box;
  }

  .login-page .cta-box {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    margin-top: 20px;
    padding: 20px 16px 30px 16px;
  }

  .verify-page .cta-wrapper {
    padding: 0 5px;
    box-sizing: border-box;
  }

  .verify-page .cta-box {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    margin-top: 20px;
    padding: 20px 16px 30px 16px;
  }

  .card-container {
    max-width: 360px;
    padding: 20px;
  }

  .landing-hamburger {
    right: 12px;
    top: 12px;
  }

  .menu-container {
    right: 12px;
    left: 12px;
    top: 76px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    min-width: auto;
    width: auto;
  }

  .menu-container.open {
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-lg);
  }

  .menu-container a {
    display: grid;
    grid-template-columns: auto 1fr;
    justify-items: center;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    margin: 0;
    width: 100%;
    justify-self: center;
    place-content: center;
  }

  .menu-container a svg {
    justify-self: end;
    width: 18px;
    height: 18px;
  }

  .menu-container a b {
    justify-self: start;
    margin: 0;
  }

  /* Restore separators on mobile */
  .menu-container a:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0 12px 0;
    margin-bottom: 0;
  }

  /* Push content down when menu is open on mobile */
  .content-wrapper {
    transition: margin-top 0.3s ease;
  }

  #subscription-overlay {
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  #subscription-overlay .subscription-content {
    justify-content: center;
    text-align: center;
  }

  #subscription-overlay h2 {
    font-size: 0.9rem;
  }

  #subscription-overlay p {
    font-size: 0.8rem;
  }

  #subscription-overlay .subscription-actions {
    justify-content: center;
  }

  #subscription-overlay a {
    flex: 1;
    text-align: center;
    max-width: 120px;
  }

  .benefits-table {
    font-size: 0.85rem;
  }

  .benefits-table th,
  .benefits-table td {
    padding: 8px 6px;
    font-size: 0.85rem;
  }

  .benefits-table th:nth-child(2),
  .benefits-table th:nth-child(3),
  .benefits-table td:nth-child(2),
  .benefits-table td:nth-child(3) {
    padding: 8px 4px;
    width: 40px;
  }

  .benefits-table th,
  .benefits-table td:nth-child(2),
  .benefits-table td:nth-child(3) {
    font-size: 0.9rem;
  }

  .dashboard-subscription-overlay,
  .dashboard-welcome-overlay,
  .dashboard-empty-wallet-overlay {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 18px 18px 18px;
    gap: 12px;
    text-align: center;
  }

  .dashboard-subscription-overlay .overlay-content,
  .dashboard-welcome-overlay .overlay-content,
  .dashboard-empty-wallet-overlay .overlay-content {
    text-align: center;
    margin: 0 auto;
  }

  .dashboard-subscription-overlay .overlay-actions,
  .dashboard-welcome-overlay .overlay-actions,
  .dashboard-empty-wallet-overlay .overlay-actions {
    justify-content: center;
    margin: 0 auto;
    width: 100%;
  }

  .dashboard-subscription-overlay .overlay-actions button,
  .dashboard-welcome-overlay .overlay-actions button,
  .dashboard-empty-wallet-overlay .overlay-actions button {
    margin: 10px auto 0 auto;
    width: 100%;
    max-width: 220px;
    display: block;
  }

  .dashboard-subscription-overlay .overlay-icon,
  .dashboard-welcome-overlay .overlay-icon,
  .dashboard-empty-wallet-overlay .overlay-icon {
    position: relative;
    left: auto;
    top: auto;
    display: inline;
  }

  .dashboard-subscription-overlay .overlay-dismiss,
  .dashboard-welcome-overlay .overlay-dismiss,
  .dashboard-empty-wallet-overlay .overlay-dismiss {
    top: 8px;
    right: 8px;
  }
}

@media (max-width: 480px) {
  .message {
    max-width: 85%;
  }

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

  .valuation-item {
    max-width: none;
  }

  .valuation-controls {
    flex-wrap: wrap;
    gap: 8px;
  }

  .valuation-input {
    width: 70px;
  }

  .valuation-unit {
    margin-left: 4px;
  }
}

@media (max-width: 375px) {
  .landing-hero-inner {
    padding: 0.75rem 0.5rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .feature-text,
  .testimonial p {
    font-size: 0.85rem;
  }

  .cta-title {
    font-size: 1rem;
  }
}

.site-footer .pro-badge {
  margin-left: 0;
  margin-right: 5px;
}

/* Ensure anchored feature blocks land fully in view below fixed header */
/* .features-section,
.features-section>.features-heading,
.features-section>.feature-block,
[id^="feature-"] {
  scroll-margin-top: 10px;
} */

/* Mini tooltip */
.tooltip {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted #666;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: 125%;
  transform: translateX(-50%);
  background: #fff;
  color: #111;
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  white-space: normal;
  /* allow wrapping */
  width: 50%;
  max-width: 380px;
  /* was 320px */
  /* prevents runaway width */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 999;
}

.tooltip:hover::after,
.tooltip:focus-visible::after {
  opacity: 1;
}

/* Helper text under email field */
.helper-text {
  font-size: 0.85rem;
  color: #666;
  margin: 6px auto 0 auto;
  max-width: 320px;
  text-align: center;
  line-height: 1.35;
}

/* Step progress badge */
.step-pill {
  display: inline-block;
  background: #e1f5fe;
  color: #0077c2;
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 2px 8px;
  margin-right: 6px;
  vertical-align: middle;
}

/* ============================================
   Dark Mode Styles (Consolidated)
   ============================================ */

@media (prefers-color-scheme: dark) {
  .scroll-indicator {
    background: rgba(30, 30, 30, 0.9);
    color: var(--primary-hover);
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.05),
      0 2px 8px rgba(0, 0, 0, 0.7);
  }

  .scroll-indicator:hover,
  .scroll-indicator:focus-visible {
    background: var(--primary-color);
    color: #fff;
    box-shadow:
      0 0 0 3px rgba(74, 144, 226, 0.6),
      0 4px 14px rgba(0, 0, 0, 0.75);
  }

  .benefits-table .benefits-pro-col {
    background: rgba(255, 215, 64, 0.08);
  }

  .benefits-table .benefits-pro-col::after {
    background: #ffca28;
  }

  body {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 40%, #16213e 70%, #0f3460 100%);
    background-attachment: fixed;
    color: var(--dark-text);
  }

  .header-container {
    background-color: transparent;
  }

  .light-mode-logo {
    display: none;
  }

  .dark-mode-logo {
    display: block;
  }

  .menu {
    color: var(--dark-text);
    background-color: rgba(255, 255, 255, 0.1);
  }

  .menu:hover {
    background-color: rgba(255, 255, 255, 0.15);
  }

  .menu-icon span {
    background-color: var(--dark-text-secondary);
  }

  .menu-container {
    background-color: var(--dark-bg-secondary);
    border-color: var(--dark-border);
  }

  .menu-container a {
    color: var(--dark-text);
  }

  .menu-container a:not(:last-child) {
    border-bottom-color: var(--dark-border);
  }

  .desktop-nav a,
  .desktop-nav a:hover {
    color: var(--dark-text);
  }

  .desktop-nav a:hover {
    background-color: var(--dark-bg-secondary);
  }

  .secondary-text {
    color: var(--dark-text-secondary);
  }

  .border {
    border-color: var(--dark-bg-secondary);
  }

  .button {
    background-color: var(--dark-bg-secondary);
    color: var(--dark-text);
    border: 1px solid var(--primary-color);
  }

  .button:hover {
    background-color: var(--dark-bg-tertiary);
  }

  input,
  textarea {
    background-color: var(--dark-bg-secondary);
    color: var(--dark-text);
    border: 1px solid var(--dark-border);
  }

  input::placeholder,
  textarea::placeholder {
    color: var(--dark-text-secondary);
  }

  /* Phone input specific dark mode styling */
  #phone,
  #email,
  #verify-code,
  #mfa,
  #email-bottom {
    background-color: var(--dark-bg-secondary) !important;
    color: var(--dark-text) !important;
    border: 1px solid var(--dark-border) !important;
  }

  #phone:focus,
  #email:focus,
  #verify-code:focus,
  #mfa:focus,
  #email-bottom:focus {
    border-color: var(--primary-color) !important;
    background-color: var(--dark-bg-secondary) !important;
  }

  .intl-tel-input input[type="tel"] {
    background-color: var(--dark-bg-secondary) !important;
    color: var(--dark-text) !important;
    border: 1px solid var(--dark-border) !important;
  }

  .intl-tel-input input[type="tel"]:focus {
    border-color: var(--primary-color) !important;
    background-color: var(--dark-bg-secondary) !important;
  }

  /* Phone status indicators dark mode */
  #phone-status {
    background-color: var(--dark-bg-secondary) !important;
    color: var(--dark-text) !important;
    border: 1px solid var(--dark-border) !important;
  }

  #phone-status.success {
    background-color: rgba(40, 167, 69, 0.2) !important;
    border-color: #28a745 !important;
    color: var(--dark-text) !important;
  }

  #phone-status.error {
    background-color: rgba(220, 53, 69, 0.2) !important;
    border-color: #dc3545 !important;
    color: var(--dark-text) !important;
  }

  #phone-status.warning {
    background-color: rgba(255, 193, 7, 0.2) !important;
    border-color: #ffc107 !important;
    color: var(--dark-text) !important;
  }

  .card {
    background-color: var(--dark-bg-secondary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  .card-container {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .rounded-box {
    border-color: var(--primary-color);
  }

  .rounded-box,
  .iti__country {
    background-color: var(--dark-bg-secondary);
    color: var(--dark-text);
  }

  .iti__country {
    border: 1px solid var(--dark-border);
  }

  .iti__highlight {
    background-color: var(--primary-color) !important;
  }

  .modal-content {
    background-color: var(--dark-bg);
  }

  .chat-messages,
  .chat-input {
    background-color: var(--dark-bg);
    border-color: var(--dark-border);
    color: var(--dark-text);
  }

  .assistant-message {
    background-color: #383838;
    color: var(--dark-text);
  }

  .thinking-message {
    background-color: var(--dark-bg-secondary) !important;
    border-color: var(--dark-border) !important;
  }

  .thinking-text {
    color: var(--dark-text);
  }

  .thinking-dots span {
    background-color: var(--primary-color);
  }

  .message-time {
    color: rgba(255, 255, 255, 0.7);
  }

  .chat-input textarea {
    background-color: var(--dark-bg-secondary);
    border-color: var(--dark-border);
    color: var(--dark-text);
  }

  .chat-input textarea:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 1px 4px rgba(25, 118, 210, 0.3);
  }

  .chat-input textarea::placeholder {
    color: #777;
  }

  .error-message {
    background-color: rgba(220, 53, 69, 0.1);
    color: #ff6b6b;
    border-color: rgba(220, 53, 69, 0.3);
    border-left-color: #ff6b6b;
  }

  .system-error-message .error-content {
    background-color: #451a1a;
    border-color: #7f1d1d;
    border-left-color: #ef4444;
    color: #fca5a5;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  }

  .message-content pre {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 8px;
  }

  .pagecontainer ul li::before {
    background-color: var(--dark-text);
  }

  /* Tom Select Dark Mode */
  .tom-select-custom .ts-control {
    background-color: var(--dark-bg-secondary);
    border-color: var(--dark-border);
    color: var(--dark-text);
  }

  .tom-select-custom .ts-control input {
    color: var(--dark-text);
    background-color: transparent;
    caret-color: var(--dark-text);
  }

  .tom-select-custom .ts-control input::placeholder {
    color: var(--dark-text-secondary);
    opacity: 1;
  }

  .tom-select-custom .ts-control input::-webkit-input-placeholder {
    color: var(--dark-text-secondary);
    opacity: 1;
  }

  .tom-select-custom .ts-control input::-moz-placeholder {
    color: var(--dark-text-secondary);
    opacity: 1;
  }

  .tom-select-custom .ts-control input:-ms-input-placeholder {
    color: var(--dark-text-secondary);
    opacity: 1;
  }

  .tom-select-custom .ts-control input::-ms-input-placeholder {
    color: var(--dark-text-secondary);
    opacity: 1;
  }

  .tom-select-custom .ts-dropdown {
    background-color: var(--dark-bg-secondary);
    border-color: var(--dark-border);
  }

  .tom-select-custom .ts-dropdown .option {
    color: var(--dark-text);
  }

  .tom-select-custom .ts-dropdown .option:hover,
  .tom-select-custom .ts-dropdown .active {
    background-color: var(--dark-bg-tertiary);
    color: var(--dark-text);
  }

  .tom-select-custom .ts-dropdown .optgroup-header {
    color: var(--dark-text-secondary);
    background-color: var(--dark-bg-tertiary);
  }

  .tom-select-custom .item {
    background-color: var(--primary-dark);
    color: white;
    border-color: var(--primary-darker);
  }

  .tom-select-custom .item .remove {
    border-left-color: var(--primary-darker);
  }

  .ts-control {
    background-color: var(--dark-bg-secondary) !important;
    border-color: var(--dark-border) !important;
  }

  .ts-control,
  .ts-control input {
    color: var(--dark-text) !important;
  }

  .ts-control input {
    background-color: transparent !important;
  }

  .ts-control input::placeholder {
    color: var(--dark-text-secondary) !important;
  }

  .ts-dropdown {
    background-color: var(--dark-bg-secondary) !important;
    border-color: var(--dark-border) !important;
  }

  .ts-dropdown .option {
    color: var(--dark-text) !important;
    background-color: transparent !important;
  }

  .ts-dropdown .option:hover,
  .ts-dropdown .option.active {
    background-color: var(--dark-bg-tertiary) !important;
    color: var(--dark-text) !important;
  }

  .ts-dropdown .optgroup-header {
    color: var(--dark-text-secondary) !important;
    background-color: var(--dark-bg-tertiary) !important;
  }

  .dashboard-subscription-overlay {
    background: #2a2730;
    color: #f8f8f8;
  }

  .dashboard-welcome-overlay {
    background: #1a2332;
    color: #f8f8f8;
    border-color: #4a90e2;
  }

  .dashboard-welcome-overlay .overlay-icon {
    color: #4a90e2;
  }

  .dashboard-welcome-overlay .overlay-actions button {
    background: #4a90e2;
    color: #fff;
  }

  .dashboard-welcome-overlay .overlay-actions button:hover {
    background: var(--primary-hover);
  }

  .dashboard-welcome-overlay .overlay-dismiss {
    color: #4a90e2;
  }

  .dashboard-empty-wallet-overlay {
    background: #2d1b42;
    color: #f8f8f8;
    border-color: #7c3aed;
  }

  .dashboard-empty-wallet-overlay .overlay-icon {
    color: #7c3aed;
  }

  .dashboard-empty-wallet-overlay .overlay-actions button {
    background: #7c3aed;
    color: #fff;
  }

  .dashboard-empty-wallet-overlay .overlay-actions button:hover {
    background: #6d28d9;
  }

  .dashboard-empty-wallet-overlay .overlay-dismiss {
    color: #7c3aed;
  }

  /* Dashboard section dark mode */
  /* DARK MODE TEMPORARILY DISABLED - uncomment to re-enable  .dashboard-pane {
      background: transparent !important;
      border: none !important;
    }

    .dashboard-section {
      background-color: var(--dark-bg-secondary);
      border-color: var(--dark-border);
    }

    .dashboard-pane .dashboard-section:first-child {
      border-top: none !important;
      background-color: var(--dark-bg-secondary);
    }

    .dashboard-section h2,
    .dashboard-section h4 {
      color: var(--dark-text);
      border-bottom-color: var(--dark-border);
    }

    .subsection,
    .dashboard-pane .subsection {
      border-top-color: var(--dark-border);
    }

    .dashboard-section.danger-section {
      background-color: var(--dark-bg-tertiary);
      border-color: #6b2c2c;
    }

    .dashboard-section.danger-section h4 {
      color: #ff6b6b;
      border-bottom-color: #6b2c2c;
    }

    /* Enhanced danger section styling - dark mode override */
  .dashboard-pane .dashboard-section.danger-section {
    border-color: #6b2c2c !important;
    background-color: var(--dark-bg-tertiary) !important;
  }

  .dashboard-pane .dashboard-section.danger-section h4 {
    color: #ff6b6b !important;
    border-bottom-color: #6b2c2c !important;
  }

  /* Footer dark mode styling */
  .site-footer {
    background: var(--dark-bg-secondary);
    color: var(--dark-text);
  }

  .footer-logo,
  .footer-logo a,
  .footer-col h4 {
    color: var(--dark-text);
  }

  .footer-tagline,
  .footer-col a {
    color: var(--dark-text-secondary);
  }

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

  .footer-bottom {
    border-top-color: var(--dark-border);
  }

  .footer-disclaimer {
    color: var(--dark-text-secondary);
  }

  .valuations-footer {
    border-top-color: var(--dark-border);
  }

  footer,
  footer a {
    color: var(--dark-text-secondary);
  }

  /* CTA box dark mode styling */
  .cta-box {
    background: rgba(41, 41, 41, 0.95);
    border-color: rgba(68, 68, 68, 0.5);
    box-shadow:
      0 2px 4px rgba(0, 0, 0, 0.15),
      0 8px 24px rgba(0, 0, 0, 0.25),
      0 0 0 1px rgba(68, 68, 68, 0.3);
  }

  .cta-box:hover,
  .cta-box:focus-within {
    background: rgba(58, 58, 58, 1);
    border-color: rgba(74, 144, 226, 0.6);
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.25),
      0 12px 32px rgba(0, 0, 0, 0.35),
      0 0 0 1px rgba(74, 144, 226, 0.5);
  }

  /* CTA title and remember label dark mode colors */
  .cta-title {
    color: var(--dark-text);
  }

  .remember-label {
    color: var(--dark-text-secondary);
  }

  .verify-email-display {
    color: var(--dark-text);
  }

  .pagecontainer {
    background-color: var(--dark-bg-secondary);
    border-color: var(--dark-border);
  }

  .pagecontainer h2,
  .pagecontainer h3 {
    color: var(--dark-text);
  }

  .pagecontainer h2 {
    border-bottom-color: var(--dark-border);
  }

  /* Menu hamburger dark mode styling */
  .landing-hamburger {
    background: rgba(41, 41, 41, 0.85);
  }

  .landing-hamburger .menu-icon span {
    background: var(--dark-text);
  }

  /* FAQ card dark mode styling */
  .faq-card {
    background: var(--dark-bg-secondary);
    border: 1px solid var(--dark-border);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  }

  .faq-card details[open] {
    background: var(--dark-bg-tertiary);
    border-color: var(--dark-border);
  }

  .faq-card summary {
    color: var(--primary-color);
  }

  .faq-card details[open] summary {
    color: var(--dark-text);
  }

  .faq-card details p {
    color: var(--dark-text-secondary);
  }

  .faq-card h4 {
    color: var(--dark-text);
  }

  /* Benefits card dark mode styling */
  .benefits-card {
    background: var(--dark-bg-secondary);
    border: 1px solid var(--dark-border);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
  }

  .dashboard-section.benefits-card h4 {
    color: var(--dark-text);
  }

  /* Benefits table dark mode styling */
  .benefits-table {
    background: var(--dark-bg-secondary);
    border: 1px solid var(--dark-border);
  }

  .benefits-table th,
  .benefits-table td {
    border-bottom-color: var(--dark-border);
    color: var(--dark-text);
  }

  .benefits-table th {
    color: var(--dark-text);
    background: var(--dark-bg-tertiary);
  }

  .benefits-table thead tr {
    background: var(--dark-bg-tertiary);
  }

  .benefits-table tbody tr:hover {
    background: var(--dark-bg-tertiary);
  }

  .benefits-table .benefits-pro-col {
    background: linear-gradient(180deg, rgba(255, 215, 64, 0.15) 0%, rgba(255, 193, 7, 0.1) 100%);
  }

  .benefits-table .benefits-pro-col::after {
    background: #ffca28;
  }

  /* Hero and features dark mode styling */
  .hero-title {
    color: var(--dark-text);
  }

  .hero-title-sub {
    color: var(--dark-text);
  }

  .hero-subtitle {
    color: var(--dark-text-secondary);
  }

  .feature-text {
    color: var(--dark-text);
  }

  /* Testimonial dark mode styling */
  .testimonial p {
    color: var(--dark-text);
  }

  .testimonial-author {
    color: var(--dark-text-secondary);
  }

  .testimonial:hover p {
    color: var(--dark-text);
  }

  .testimonial:hover .testimonial-author {
    color: var(--dark-text-secondary);
  }

  .testimonial:hover a {
    color: var(--dark-text-secondary);
  }

  #testimonial-carousel:hover,
  #testimonial-carousel:focus-visible {
    color: var(--dark-text);
  }

  /* Dashboard sections dark mode styling */
  .dashboard-section {
    background-color: var(--dark-bg-secondary);
    border-color: var(--dark-border);
    color: var(--dark-text);
  }

  .dashboard-section h4 {
    color: var(--dark-text);
  }

  .dashboard-section p {
    color: var(--dark-text-secondary);
  }

  .helper-text {
    color: var(--dark-text-secondary);
  }

  .cta-box .auth-return {
    color: var(--dark-text-secondary);
  }

  /* Features section dark mode styling */
  .features-section {
    color: var(--dark-text);
  }

  .features-section h2,
  .features-section h3,
  .features-section .features-heading {
    color: var(--dark-text);
  }

  .features-section p {
    color: var(--dark-text-secondary);
  }

  /* Bottom CTA section dark mode styling */
  .bottom-cta-section {
    background: linear-gradient(135deg, var(--dark-bg-secondary) 0%, var(--dark-bg-tertiary) 100%);
  }

  .bottom-cta-heading {
    color: var(--dark-text);
  }

  .bottom-cta-subheading {
    color: var(--dark-text-secondary);
  }


  .benefits-cta-bottom .benefits-cta-note {
    color: var(--dark-text-secondary);
  }

  /* Dashboard panes dark mode styling */
  .dashboard-pane {
    background: transparent;
    border: none;
  }

  .dashboard-pane .dashboard-section {
    background-color: var(--dark-bg-secondary);
    border-color: var(--dark-border);
    color: var(--dark-text);
  }


  .dashboard-pane .dashboard-section h2,
  .dashboard-pane .dashboard-section h4 {
    color: var(--dark-text);
    border-bottom-color: var(--dark-border);
  }

  .dashboard-pane .subsection {
    border-top-color: var(--dark-border);
  }

  .dashboard-pane .dashboard-section.danger-section {
    border-color: #6b2c2c;
    background-color: var(--dark-bg-tertiary);
  }

  .dashboard-pane .dashboard-section.danger-section h4 {
    color: #ff6b6b;
    border-bottom-color: #6b2c2c;
  }

  /* Collapsible danger sections dark mode */
  .collapsible-section .collapsible-header {
    border-bottom-color: #6b2c2c;
  }

  .collapsible-section .collapsible-header:hover {
    color: #ff8a8a;
  }

  .collapsible-section .collapse-icon {
    color: #ff6b6b;
  }

  .dashboard-pane .success {
    color: #10b981;
  }

  .dashboard-pane .error {
    color: #ef4444;
  }

  .dashboard-pane .warning {
    color: #f59e0b;
  }

  /* Dashboard tabs dark mode styling */
  .dashboard-tabs {
    background: none;
    border: none;
  }

  .dashboard-tab {
    color: var(--dark-text-secondary);
    background: var(--dark-bg-secondary);
    border-color: var(--dark-border);
  }

  .dashboard-tab:hover {
    color: var(--dark-text);
    background: var(--dark-bg-tertiary);
    border-color: var(--dark-border);
  }

  .dashboard-tab.active {
    color: #ffffff;
    background: var(--primary-color);
    border-color: var(--primary-color);
  }

  .dashboard-tab.active:hover {
    background: #2563eb;
    border-color: #2563eb;
  }

  /* Valuations container dark mode styling */
  .valuations-container {
    background: var(--dark-bg-secondary);
    border-color: var(--dark-border);
    color: var(--dark-text);
  }

  /* Valuations header dark mode styling */
  .valuations-header {
    color: var(--dark-text);
  }

  .valuations-header h4 {
    color: var(--dark-text);
  }

  /* Valuations category dark mode styling */
  .valuation-category {
    color: var(--dark-text);
  }

  .category-header {
    color: var(--dark-text);
    background: var(--dark-bg-tertiary);
    border-color: var(--dark-border);
  }

  .category-header h5 {
    color: var(--dark-text);
  }

  .category-header i {
    color: var(--dark-text-secondary);
  }

  /* Valuation item dark mode styling */
  .valuation-item {
    background: var(--dark-bg-tertiary);
    border-color: var(--dark-border);
    color: var(--dark-text);
  }

  .valuation-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.2);
  }

  .valuation-item.changed {
    border-color: #ffc107;
    background-color: rgba(255, 193, 7, 0.1);
  }

  .valuation-item.saved {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
  }

  /* Valuation label dark mode styling */
  .valuation-label {
    color: var(--dark-text);
  }

  /* Pro feature overlay dark mode styling */
  .pro-feature-overlay {
    background: rgba(30, 30, 30, 0.9);
    color: var(--dark-text);
  }

  .pro-feature-overlay .pro-title {
    color: var(--primary-color);
  }

  .pro-feature-overlay .pro-subtitle {
    color: var(--dark-text-secondary);
  }

  .pro-feature-overlay .btn {
    background: var(--primary-color);
    color: white;
  }

  .pro-feature-overlay .btn:hover {
    background: var(--primary-hover);
  }

  /* Disabled state styles for dark mode */
  .valuations-container input[readonly] {
    background: var(--dark-bg-tertiary);
    color: var(--dark-text-secondary);
  }

  /* Valuations unsaved indicator dark mode */
  .valuations-unsaved {
    background-color: rgba(133, 100, 4, 0.2);
    border-color: #856404;
    color: var(--dark-text);
  }

  .valuations-unsaved.saved {
    background-color: rgba(21, 87, 36, 0.2);
    border-color: #155724;
    color: var(--dark-text);
  }
}

/* Change Email Button Styling */
.link-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 4px 8px;
  border-radius: 4px;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.link-btn:hover {
  color: var(--primary-hover);
  background-color: rgba(74, 144, 226, 0.1);
  text-decoration: none;
}

.link-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.link-btn.small {
  font-size: 14px;
  padding: 2px 6px;
}

.landing-hero-inner .hero-left::after {
  background: linear-gradient(to bottom, rgba(200, 210, 225, 0), #c8d2e1 50%, rgba(200, 210, 225, 0));
}

/* Center feature images on smaller mobile devices */
@media (max-width: 600px) {
  .feature-block {
    align-items: center !important;
  }

  .feature-image {
    align-self: stretch !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
  }

  .feature-image img {
    margin: 0 auto !important;
  }
}

@media (min-width: 1025px) {

  #submit,
  #submit-bottom {
    margin-top: 15px;
  }
}

/* === Override: remove unintended blue backdrop behind feature images === */
.features-image-wrapper,
.feature-image-item,
.features-image-wrapper::before,
.feature-image-item::before {
  /* Eliminate background fill and shadow that was creating the solid blue box */
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

/* === Override: remove unintended blue backdrop behind feature text === */
.feature-text-block,
.feature-text-block::before,
.feature-text-block::after,
.feature-text-block h3,
.feature-text-block p {
  /* Eliminate background fill and shadow that was creating the solid blue box */
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

/* === Override: let feature image scroll away after last feature === */
/* This rule is now consolidated with the one at line 4578 */
/* === FEATURES SECTION : tweak initial alignment ========================
   Allows quick control over how far the first feature text block sits
   below the top of its companion screenshot on page‑load.
   Adjust the `clamp()` values as needed (min, preferred, max). */
.features-section .features-text-container {
  padding-top: clamp(25vh, 30vh, 35vh);
}

/* === FEATURES SECTION : allow larger screenshots =======================
   Grow the active screenshot as tall as 80 vh (within its column) while
   maintaining the native aspect ratio. */
.features-image-wrapper img {
  max-height: 90vh;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .features-section .features-text-container {
    padding-top: 0;
    margin-top: clamp(-10px, -8vw, -100px);
    /* Much more aggressive negative margin on small phones, minimal on larger */
  }
}

/* Privacy Callout Styles */
.privacy-callout {
  background-color: #f0f8ff;
  padding: 15px;
  margin: 20px 0;
  border-left: 4px solid #007bff;
  border-radius: var(--border-radius);
}

.privacy-callout h4 {
  margin-top: 0;
  color: #0056b3;
}

.privacy-callout p {
  margin-bottom: 10px;
}

.privacy-callout ul {
  margin-bottom: 0;
}

.privacy-callout li {
  margin-bottom: 5px;
}

/* Dark mode support for privacy callout */
@media (prefers-color-scheme: dark) {
  .privacy-callout {
    background-color: #0f1419;
    border-left-color: #4a90e2;
  }

  .privacy-callout h4 {
    color: #6aaeff;
  }

  .privacy-callout p,
  .privacy-callout li {
    color: var(--dark-text);
  }
}