/* Base Styles */
:root {
  --cursor-blue: #D72638;
  --cursor-indigo: #FFD700;
  --cursor-purple: #FFD700;
  --cursor-gray-50: #F9FAFB;
  --cursor-gray-100: #F3F4F6;
  --cursor-gray-200: #E5E7EB;
  --cursor-gray-300: #D1D5DB;
  --cursor-gray-400: #9CA3AF;
  --cursor-gray-500: #6B7280;
  --cursor-gray-600: #4B5563;
  --cursor-gray-700: #374151;
  --cursor-gray-800: #1F2937;
  --cursor-gray-900: #111827;
  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --radius: 0.5rem;
  --radius-sm: 0.25rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Only dark mode colors */
:root {
  --background: #121212;
  --foreground: #FFD700;
  --card: #121212;
  --card-foreground: #F9FAFB;
  --popover: #1F2937;
  --popover-foreground: #F9FAFB;
  --primary: #FFD700;
  --primary-foreground: #121212;
  --secondary: #D72638;
  --secondary-foreground: #FFFFFF;
  --muted: #FFD700;
  --muted-foreground: #C0A080;
  --accent: #374151;
  --accent-foreground: #F9FAFB;
  --destructive: #7F1D1D;
  --destructive-foreground: #F9FAFB;
  --border: #FFD700;
  --input: #374151;
  --ring: #0070F3;
  --cursor-blue: #FFD700; /* Gold instead of blue */
  --cursor-indigo: #D72638; /* Red instead of indigo */
  --cursor-purple: #FFD700; /* Gold instead of purple */
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1880px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  background: linear-gradient(90deg, #FFD700, #FFD700); /* Gold to Orange */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-fade-in {
  animation: fade-in 0.4s ease-out;
}

.animate-fade-up {
  animation: fade-up 0.5s ease-out;
}

.animate-pulse-slow {
  animation: pulse-slow 3s infinite;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-delay-0 {
  animation-delay: 0ms;
}

.animate-delay-100 {
  animation-delay: 100ms;
}

.animate-delay-200 {
  animation-delay: 200ms;
}

.animate-delay-300 {
  animation-delay: 300ms;
}

.animate-delay-400 {
  animation-delay: 400ms;
}

.animate-delay-500 {
  animation-delay: 500ms;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.5rem 1.25rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: 2px solid var(--border);
  font-weight: bold;
}

.btn-primary:hover {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--secondary);
  opacity: 0.9;
}

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

.btn-outline:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.5rem 1.25rem;
  transition: background 0.2s ease, opacity 0.2s ease, color 0.2s ease;
  cursor: pointer;
  border: none;
  background: linear-gradient(to right, var(--cursor-blue), var(--cursor-purple));
  color: var(--primary-foreground);
  font-weight: bold;
}

.btn-gradient:hover {
  opacity: 0.9;
}

/* 🎰 Dark Mode Buttons */
.dark .btn-primary {
  background-color: var(--primary); /* Gold */
  color: var(--primary-foreground); /* Black */
}

.dark .btn-outline {
  background-color: transparent;
  color: var(--secondary); /* Red */
  border: 2px solid var(--secondary);
}

.dark .btn-primary:hover, .dark .btn-outline:hover {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

/* Layout */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1;
  padding-top: 70px; /* Navbar height */
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: var(--background);
  border-bottom: 2px solid var(--border);
  transition: all 0.3s ease;
}

.dark .navbar {
  background-color: var(--background);
  border-bottom: 2px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--foreground);
}

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

.theme-toggle {
  display: none; /* Hide theme toggle */
}

.sun-icon {
  display: none;
}

.moon-icon {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links, .nav-actions {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
}

/* Logo Styling */
.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  text-decoration: none;
  gap: 0.5rem; /* Adds spacing between the logo and text */
}

.logo img {
  width: 40px; /* Adjust size as needed */
  height: auto;
  transition: opacity 0.3s ease-in-out;
  border-radius: 5px;
}

/* Ensures dark mode switches the logo */
.dark #jack-logo {
  content: url('pictures/MainLogo_Square.JPG');
}

/* Logo Styling - always use dark mode logo */
.logo img {
  width: 40px;
  height: auto;
  transition: opacity 0.3s ease-in-out;
  border-radius: 5px;
  content: url('pictures/MainLogo_Square.JPG');
}

/* Hero Section */
.hero {
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle, #007a33 30%, #003d1b 100%);
  text-align: center;
  color: var(--foreground);
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5);
  min-height: 900px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 300px;
  align-items: center;     /* ← center children horizontally */
}

.dark .hero {
  background: radial-gradient(circle, #007a33 30%, #003d1b 100%);
  color: var(--foreground);
}

.hero-content {
  max-width: 1024px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  color: var(--foreground);
  animation: fade-slide-up 0.8s ease-out;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 4rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

.code-preview {
  position: relative;
  background-color: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  margin: 0 auto;
  max-width: 48rem;
}

.code-header {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: var(--secondary);
  border-bottom: 1px solid var(--border);
}

.window-controls {
  display: flex;
  gap: 0.375rem;
}

.control {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.control.red {
  background-color: #ef4444;
}

.control.yellow {
  background-color: #f59e0b;
}

.control.green {
  background-color: #10b981;
}

.file-name {
  margin-left: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.code-block {
  padding: 1.5rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--foreground);
  background-color: var(--card);
  text-align: left;
}

.feature-badges {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;  /* baseline of all badges sits at container bottom */
  gap: 4.5rem;              /* horizontal spacing */
  pointer-events: none;
}

/* restore the white‐circle look */
.feature-badge {
  width: 150px;
  height: 150px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 3px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.3);
  pointer-events: auto;
  transition: transform 0.3s ease;
  /* start all badges flush to bottom */
  transform: translateY(0);
}

/* recreate your original bottom‐offset “parabola” */
@media (min-width: 1280px) {
  .feature-badge:nth-child(1) { transform: translateY(-250px); }
  .feature-badge:nth-child(2) { transform: translateY(-100px); }
  .feature-badge:nth-child(3) { transform: translateY(-30px);  }
  .feature-badge:nth-child(4) { transform: translateY(-30px);  }
  .feature-badge:nth-child(5) { transform: translateY(-100px); }
  .feature-badge:nth-child(6) { transform: translateY(-250px); }
}

@media (max-width: 1279px) {
  .feature-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    row-gap: 2rem;
    column-gap: 4rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    bottom: 2rem;
    /* override the bottom if you need it lower: */
    /* bottom: -300px;   <-- see note below */
  }

  .feature-badge {
    /* no more Y-offsets */
    transform: none;
    justify-self: center;
    align-self: center;
  }

  .hero {
    /* original 300px + the 2rem grid-gap */
    padding-bottom: calc(300px + 2rem);
  }

  .code-preview {
    /* give yourself at least the same extra gap */
    margin-bottom: 4rem;
  }
}



/* Features Section */
.features {
  padding: 5rem 0;
  background-color: var(--secondary);
}

.dark .features {
  background-color: var(--card);
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
}

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

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

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

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.feature-card:hover {
  background-color: var(--card);
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}


.feature-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #D72638; /* Rich Red */
  margin-right: 0.75rem;
  flex-shrink: 0;
  display: inline-flex;
}


.dark .feature-icon {
  color: #FFD700; 
}


.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  display: inline-block;
  vertical-align: middle;
}

.feature-description {
  color: var(--muted-foreground);
}

.ev-green {
  color: #008000; /* Standard green */
  font-weight: bold;
}

/* CTA Section */
.cta {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 112, 243, 0.05) 0%, transparent 70%);
}

.cta-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-actions {
    flex-direction: row;
  }
}

/* Footer */
.footer {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

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

.footer-brand {
  max-width: 20rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground);
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-tagline {
  color: var(--muted-foreground);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  justify-self: end;
}

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

.footer-link-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-left: 0;
  margin-left: 0;
  list-style: none;
}

.footer-link-list a {
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.footer-link-list a:hover {
  color: var(--foreground);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--foreground);
}

/* Pricing Page Styles */
.pricing-plans {
  padding: 5rem 0;
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  color: var(--foreground);
  text-align: center;
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  background-color: var(--secondary);
  border-radius: var(--radius-full);
  padding: 0.25rem;
  margin: 0 auto 4rem;
}

.billing-option {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: #252525;
  cursor: pointer;
  border: none;
  background-color: transparent;
  transition: all 0.2s ease;
  position: relative;
}

.billing-option.active {
  color: var(--foreground);
  background-color: var(--background);
  box-shadow: var(--shadow-sm);
}

/* Light Mode - Use Red for Better Visibility */
.discount-badge {
  display: inline-block;
  margin-left: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #D72638; /* Rich Red */
}

/* Dark Mode - Keep Gold */
.dark .discount-badge {
  color: #FFD700; /* Gold */
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

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

/* Light Mode - Adjusted Border */
.pricing-card {
  background-color: var(--card);
  border-radius: var(--radius);
  border: 2px solid #C0A080; /* Muted gold for contrast */
  overflow: visible;
  transition: all 0.3s ease;
  position: relative;
}

/* Dark Mode - Keep Gold Border */
.dark .pricing-card {
  border: 2px solid #FFD700; /* Gold border in dark mode */
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--cursor-blue);
}

.pricing-card.popular {
  border-color: var(--cursor-blue);
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .pricing-card.popular {
    transform: scale(1);
  }
}

.popular-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--cursor-blue);
  color: rgb(63, 63, 63);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  z-index: 200;
}

.pricing-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.pricing-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.pricing-description {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.pricing-amount {
  margin-bottom: 1.5rem;
}

.pricing-currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
}

.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1;
}

.pricing-period {
  color: var(--muted-foreground);
  margin-left: 0.5rem;
}

.pricing-cta {
  width: 100%;
}

.pricing-features {
  padding: 1.5rem;
}

.features-title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
}

.feature-text {
  color: var(--muted-foreground);
}

/* FAQ Section */
.faq {
  padding: 5rem 0;
}

.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  cursor: pointer;
}

.faq-question h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.faq-toggle {
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
}

.icon-minus {
  display: none;
}

.faq-item.open .icon-plus {
  display: none;
}

.faq-item.open .icon-minus {
  display: block;
}

.faq-answer {
  padding: 0 1.25rem;
  height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.open .faq-answer {
  padding: 0 1.25rem 1.25rem;
  height: auto;
}

.faq-answer p {
  color: var(--muted-foreground);
}

/* Media Queries */
@media (min-width: 640px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .page-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .page-title {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .enterprise-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
}

/* Auth Modal Styles */
.auth-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.auth-modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.auth-modal {
  background: var(--card);
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.auth-modal-backdrop.show .auth-modal {
  transform: scale(1) translateY(0);
}

.auth-modal-content {
  padding: 32px;
}

.auth-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.auth-modal-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

.auth-modal-close {
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal-close:hover {
  background: rgba(255,215,0,0.12);
  color: var(--primary-foreground);
}

.auth-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--foreground);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 14px;
}

.auth-social-btn:hover {
  background: rgba(255,215,0,0.08);
  color: var(--primary-foreground);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.auth-divider {
  position: relative;
  margin: 24px 0;
  text-align: center;
}

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

.auth-divider-text {
  background: var(--card);
  padding: 0 16px;
  color: var(--muted-foreground);
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-input {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--foreground);
  font-size: 14px;
  transition: all 0.2s ease;
}

.auth-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 6px rgba(255,215,0,0.12);
}

.auth-input::placeholder {
  color: var(--text-muted);
}

/* Override Chrome's autofill blue — inset box-shadow is the only reliable way */
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #2a2a2a inset !important;
  -webkit-text-fill-color: #F9FAFB !important;
  caret-color: #F9FAFB;
  border-color: var(--border);
}

.auth-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.auth-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  border: none;
}

.auth-btn-primary {
  background: var(--primary);
  color: black;
  border: 1px solid var(--border);
}

.auth-btn-primary:hover {
  background: rgba(255,215,0,0.08);
  color: var(--primary-foreground);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.auth-btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.auth-btn-secondary:hover {
  background: rgba(255,215,0,0.08);
  color: var(--primary-foreground);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);

/* Button highlight used for existing bold yellow buttons only */
.btn-yellow:hover,
.btn-yellow:focus {
  background: rgba(255,215,0,0.08) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12) !important;
  text-decoration: none;
}

/* Gradient buttons: preserve gradient on hover, use white text so it's readable on gold */
.btn-gradient.btn-yellow:hover,
.btn-gradient.btn-yellow:focus {
  background: linear-gradient(to right, var(--cursor-blue), var(--cursor-purple)) !important;
  color: #000000 !important;
  opacity: 0.82 !important;
}

/* True Count dynamic border styling */
.truecount-dynamic {
  border: 2px solid rgba(255,255,255,0.04);
  transition: border-color 280ms ease, box-shadow 280ms ease, transform 120ms ease;
}
.truecount-dynamic--green {
  box-shadow: 0 8px 24px rgba(0,128,0,0.12);
}
.truecount-dynamic--red {
  box-shadow: 0 8px 24px rgba(215,38,56,0.12);
}
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.auth-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.8;
  background: var(--card);
  color: var(--foreground);
  z-index: 1100 !important;
}

/* Make sure Bootstrap modal backdrop doesn't interfere */
.modal-backdrop.show {
  opacity: 0.5;
}
