/* ============================================
   BRAND COLORS (DO NOT CHANGE)
   ============================================ */
:root {
  --color-gold:   #FFC700;
  --color-pink:   #FF32C9;
  --color-purple: #A336FF;
  --color-blue:   #006BFF;
  --color-teal:   #00D6FF;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: transparent; /* Transparent - don't color browser chrome */
  overscroll-behavior: none !important; /* Prevent overscroll bounce */
  overscroll-behavior-y: none !important; /* Prevent vertical overscroll */
  -webkit-overscroll-behavior: none !important; /* Prevent overscroll on Safari */
  -webkit-overscroll-behavior-y: none !important; /* Prevent vertical overscroll on Safari */
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: transparent; /* Transparent - don't color browser chrome */
  overscroll-behavior: none !important; /* Prevent overscroll bounce */
  overscroll-behavior-y: none !important; /* Prevent vertical overscroll */
  -webkit-overscroll-behavior: none !important; /* Prevent overscroll on Safari */
  -webkit-overscroll-behavior-y: none !important; /* Prevent vertical overscroll on Safari */
}

/* ============================================
   SMOOTH SCROLLING (NO SNAP - SEAMLESS)
   ============================================ */
.scroll-wrapper {
  overflow-y: scroll;
  height: 100vh;
  width: 100%;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  margin: 0;
  padding: 0;
  position: relative;
  background: #FFFFFF;
  overscroll-behavior: none !important; /* Prevent overscroll bounce */
  overscroll-behavior-y: none !important; /* Prevent vertical overscroll */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  -webkit-overscroll-behavior: none !important; /* Prevent overscroll on Safari */
  -webkit-overscroll-behavior-y: none !important; /* Prevent vertical overscroll on Safari */
  /* Ensure no subpixel rendering issues */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body:not(.dark-mode) .scroll-wrapper {
  background: #FFFFFF !important;
}

body.dark-mode .scroll-wrapper {
  background: #000000 !important;
}

.scroll-wrapper::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* ============================================
   SECTIONS - SOLID COLORS WITH LIVE TRANSITIONS (NO SEAMS)
   ============================================ */
.section {
  height: 100vh;
  width: 100%;
  min-height: 100vh;
  max-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  flex-shrink: 0; /* Prevent sections from shrinking */
  background-attachment: scroll; /* Background scrolls with content */
  background-size: 100% 100%; /* Ensure background covers entire section */
  background-repeat: no-repeat;
}

/* Remove any potential seams */
.section::before,
.section::after {
  display: none;
}

/* Glass Overlay - Light mode */
body:not(.dark-mode) .glass-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  z-index: 1;
}

/* Glass Overlay - Dark mode (transparent to show pure black) */
body.dark-mode .glass-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 1;
}

/* All sections - White background in light mode only */
body:not(.dark-mode) .section-1,
body:not(.dark-mode) .section-2,
body:not(.dark-mode) .section-3,
body:not(.dark-mode) .section-4,
body:not(.dark-mode) .section-5 {
  background: #FFFFFF !important;
}

/* Dark mode - Black background */
body.dark-mode .section-1,
body.dark-mode .section-2,
body.dark-mode .section-3,
body.dark-mode .section-4,
body.dark-mode .section-5 {
  background: #000000 !important;
}

/* ============================================
   FIXED LOGO
   ============================================ */

/* Fixed Logo (Top-Left) - ALWAYS VISIBLE */
.fixed-logo {
  position: fixed;
  top: 2rem;
  left: 2rem;
  z-index: 1000;
  width: 80px;
  height: 80px;
  opacity: 1 !important;
  visibility: visible !important;
  transition: none;
}

#soarx-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  visibility: visible;
  transition: none;
}

/* ============================================
   FIXED SOARX TEXT
   ============================================ */

/* Fixed "SoarX" Text (Top-Center) - Always visible */
.fixed-soarx-text {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  text-align: center;
  opacity: 1 !important;
  visibility: visible !important;
  transition: none;
}

.soarx-header {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin: 0;
  transition: none;
  position: relative;
  z-index: 1;
}

/* Light mode - SoarX text is black */
body:not(.dark-mode) .soarx-header {
  color: #000 !important;
}

/* Dark mode - SoarX text is white */
body.dark-mode .soarx-header {
  color: #fff !important;
}

/* ============================================
   SECTION CONTENT
   ============================================ */

.section-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.coming-soon-large {
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin: 0;
}

/* Light mode - Coming Soon text is black */
body:not(.dark-mode) .coming-soon-large {
  color: #000 !important;
}

/* Dark mode - Coming Soon text is white */
body.dark-mode .coming-soon-large {
  color: #fff !important;
}

/* ============================================
   SECTION TEXT STYLES
   ============================================ */

.section-headline {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: 1px;
}

.section-text {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

/* Light mode - section text is black */
body:not(.dark-mode) .section-headline,
body:not(.dark-mode) .section-text {
  color: #000 !important;
}

/* Dark mode - section text is white */
body.dark-mode .section-headline,
body.dark-mode .section-text {
  color: #fff !important;
}

/* ============================================
   FIXED THEME TOGGLE
   ============================================ */

/* Fixed Theme Toggle (Bottom-Left) */
.fixed-theme-toggle {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1000;
}

.theme-toggle-btn {
  background: none;
  border: none;
  border-radius: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
  padding: 0;
  z-index: 1001;
  position: relative;
  pointer-events: auto;
  box-shadow: none;
  outline: none;
}

.theme-toggle-btn:hover {
  opacity: 0.7;
}

.theme-toggle-btn .sun-icon,
.theme-toggle-btn .moon-icon {
  width: 24px;
  height: 24px;
  transition: opacity 0.3s ease;
  position: absolute;
}

.theme-toggle-btn .moon-icon {
  display: none;
}

/* Light mode - sun icon is black */
body:not(.dark-mode) .theme-toggle-btn .sun-icon {
  display: block;
  stroke: #000 !important;
}

body:not(.dark-mode) .theme-toggle-btn .moon-icon {
  display: none;
}

/* Dark mode - moon icon is white */
body.dark-mode .theme-toggle-btn .sun-icon {
  display: none;
}

body.dark-mode .theme-toggle-btn .moon-icon {
  display: block;
  stroke: #fff !important;
}

/* ============================================
   FIXED ARROW
   ============================================ */

/* Fixed Arrow (Bottom-Center) */
.fixed-arrow {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.scroll-arrow-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  position: relative;
  width: 24px;
  height: 24px;
  box-shadow: none;
  outline: none;
}

.scroll-arrow-btn svg {
  animation: bounce 2s infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.scroll-arrow-btn:hover {
  opacity: 0.7;
}

/* Arrow direction */
.arrow-icon {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.arrow-icon.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Light mode - arrow is black */
body:not(.dark-mode) .scroll-arrow-btn svg {
  stroke: #000 !important;
}

/* Dark mode - arrow is white */
body.dark-mode .scroll-arrow-btn svg {
  stroke: #fff !important;
}

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

/* ============================================
   FIXED COPYRIGHT
   ============================================ */

/* Fixed Copyright (Bottom-Left) - Only visible at bottom */
.fixed-copyright {
  position: fixed;
  bottom: 0.75rem;
  left: 2.5rem;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fixed-copyright.visible {
  opacity: 1;
  visibility: visible;
}

.copyright-text {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.3px;
  margin: 0;
  line-height: 1.4;
  opacity: 0.8;
}

/* Light mode - copyright text is black */
body:not(.dark-mode) .copyright-text {
  color: #000 !important;
}

/* Dark mode - copyright text is white */
body.dark-mode .copyright-text {
  color: #fff !important;
}

/* ============================================
   COUNTDOWN TIMER
   ============================================ */

.countdown-container {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.countdown-title {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 3rem;
  line-height: 1.2;
}

/* Light mode - countdown title is black */
body:not(.dark-mode) .countdown-title {
  color: #000 !important;
}

/* Dark mode - countdown title is white */
body.dark-mode .countdown-title {
  color: #fff !important;
}

.countdown-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.countdown-number {
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.9;
}

.countdown-separator {
  font-size: 3rem;
  font-weight: 300;
  opacity: 0.7;
  line-height: 1;
}

/* Light mode - countdown text is black */
body:not(.dark-mode) .countdown-number,
body:not(.dark-mode) .countdown-label,
body:not(.dark-mode) .countdown-separator {
  color: #000 !important;
}

/* Dark mode - countdown text is white */
body.dark-mode .countdown-number,
body.dark-mode .countdown-label,
body.dark-mode .countdown-separator {
  color: #fff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .fixed-logo {
    width: 60px;
    height: 60px;
    top: 1rem;
    left: 1rem;
  }
  
  .fixed-soarx-text {
    top: 1rem;
  }
  
  .soarx-header {
    font-size: 1.75rem;
  }
  
  .coming-soon-large {
    font-size: 2.25rem;
    letter-spacing: 1px;
  }
  
  .section-headline {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .section-text {
    font-size: 0.95rem;
    padding: 0 1.5rem;
  }
  
  .countdown-title {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
  }
  
  .countdown-display {
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: center;
  }
  
  .countdown-item {
    min-width: 55px;
  }
  
  .countdown-number {
    font-size: 1.75rem;
  }
  
  .countdown-separator {
    font-size: 1.5rem;
    align-self: flex-start;
    margin-top: 0.25rem;
  }
  
  .countdown-label {
    font-size: 0.65rem;
  }
}

/* ============================================
   COUNTDOWN FORM
   ============================================ */

.countdown-form {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.form-input,
.form-submit,
.form-copy {
  width: 100%;
  box-sizing: border-box;
}

.form-input {
  padding: 1rem;
  font-size: 1rem;
  font-weight: 300;
  border: none;
  border-radius: 8px;
  background: transparent;
  border: 2px solid;
  outline: none;
  transition: none; /* Remove transition to prevent flash */
}

/* Default: Use system preference to prevent flash */
@media (prefers-color-scheme: dark) {
  .form-input {
    color: #000;
    border-color: rgba(0, 0, 0, 0.5);
    background: transparent;
  }
  
  .form-input::placeholder {
    color: rgba(0, 0, 0, 0.7);
  }
  
  .form-input:focus {
    border-color: #000;
    background: transparent;
}
}

@media (prefers-color-scheme: light) {
  .form-input {
    color: #000;
    border-color: rgba(0, 0, 0, 0.5);
    background: transparent;
  }
  
  .form-input::placeholder {
    color: rgba(0, 0, 0, 0.7);
  }
  
  .form-input:focus {
    border-color: #000;
    background: transparent;
  }
}

/* Light mode - input boxes with black text and black border */
body:not(.dark-mode) .form-input {
  color: #000 !important;
  border-color: rgba(0, 0, 0, 0.5) !important;
  background: transparent !important;
}

body:not(.dark-mode) .form-input::placeholder {
  color: rgba(0, 0, 0, 0.7) !important;
}

body:not(.dark-mode) .form-input:focus {
  border-color: #000 !important;
  background: transparent !important;
}

/* Dark mode - input boxes with white text and white border */
body.dark-mode .form-input {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  background: transparent !important;
}

body.dark-mode .form-input::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.dark-mode .form-input:focus {
  border-color: #fff !important;
  background: transparent !important;
}

/* Override autofill background to keep it transparent */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px transparent inset !important;
  box-shadow: 0 0 0 30px transparent inset !important;
  -webkit-text-fill-color: inherit !important;
  background-color: transparent !important;
  background: transparent !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Light mode autofill - black text */
body:not(.dark-mode) .form-input:-webkit-autofill,
body:not(.dark-mode) .form-input:-webkit-autofill:hover,
body:not(.dark-mode) .form-input:-webkit-autofill:focus,
body:not(.dark-mode) .form-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px transparent inset !important;
  box-shadow: 0 0 0 30px transparent inset !important;
  -webkit-text-fill-color: #000 !important;
  background-color: transparent !important;
  background: transparent !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Dark mode autofill - white text */
body.dark-mode .form-input:-webkit-autofill,
body.dark-mode .form-input:-webkit-autofill:hover,
body.dark-mode .form-input:-webkit-autofill:focus,
body.dark-mode .form-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px transparent inset !important;
  box-shadow: 0 0 0 30px transparent inset !important;
  -webkit-text-fill-color: #fff !important;
  background-color: transparent !important;
  background: transparent !important;
  transition: background-color 5000s ease-in-out 0s;
}

.form-buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-top: 0;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
  width: 100%;
}

.form-submit,
.form-copy {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 400;
  border: 2px solid;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: none; /* Remove transition to prevent flash */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  box-sizing: border-box;
}

.button-text {
  transition: opacity 0.3s ease;
}

.checkmark {
  position: absolute;
  display: none;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Default: Use system preference to prevent flash */
@media (prefers-color-scheme: dark) {
  .form-submit,
  .form-copy {
  color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

  .form-submit:hover,
  .form-copy:hover {
  background: rgba(255, 255, 255, 0.2);
  }
}

@media (prefers-color-scheme: light) {
  .form-submit,
  .form-copy {
  color: #000;
    border-color: rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.1);
}

  .form-submit:hover,
  .form-copy:hover {
  background: rgba(0, 0, 0, 0.2);
  }
}

/* Light mode - buttons with black text */
body:not(.dark-mode) .form-submit,
body:not(.dark-mode) .form-copy {
  color: #000 !important;
  border-color: rgba(0, 0, 0, 0.5) !important;
  background: rgba(0, 0, 0, 0.1) !important;
}

body:not(.dark-mode) .form-submit:hover,
body:not(.dark-mode) .form-copy:hover {
  background: rgba(0, 0, 0, 0.2) !important;
}

/* Dark mode - buttons with white text */
body.dark-mode .form-submit,
body.dark-mode .form-copy {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .form-submit:hover,
body.dark-mode .form-copy:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

/* Success state - green background with checkmark */
.form-submit.success,
.form-copy.success {
  background: #22c55e !important;
  color: #fff !important;
}

.form-submit.success,
.form-copy.success {
  background: #22c55e !important;
  border-color: #22c55e !important;
  color: #fff !important;
  animation: none !important; /* Stop any error animations */
}

body.dark-mode .form-submit.success .checkmark,
body.dark-mode .form-copy.success .checkmark,
body:not(.dark-mode) .form-submit.success .checkmark,
body:not(.dark-mode) .form-copy.success .checkmark {
  stroke: #fff;
}

@media (max-width: 768px) {
  .countdown-container {
    padding: 1rem;
  }
  
  .countdown-form {
    max-width: 90%;
    margin-top: 2rem;
    gap: 0.75rem;
  }
  
  .form-input {
    padding: 0.875rem;
    font-size: 0.9rem;
  }
  
  .form-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .form-submit,
  .form-copy {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .fixed-theme-toggle {
    bottom: 1rem;
    left: 1rem;
  }
  
  .theme-toggle-btn {
    width: 44px;
    height: 44px;
  }
  
  .fixed-arrow {
    bottom: 1rem;
  }
  
  .scroll-arrow-btn {
    width: 20px;
    height: 20px;
  }
  
  .fixed-copyright {
    bottom: 0.5rem;
    left: 1.25rem;
  }
  
  .copyright-text {
    font-size: 0.6rem;
    opacity: 0.75;
  }
  
  .section-content {
    padding: 1.5rem;
  }
  
  .section {
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
  
  html {
    height: -webkit-fill-available;
  }
}

/* Error state - blinking red border */
.form-input.error {
  animation: blink-red 0.5s ease-in-out 3;
  border-color: #ff0000 !important;
}

@keyframes blink-red {
  0%, 100% {
    border-color: #ff0000;
    opacity: 1;
  }
  50% {
    border-color: #ff0000;
    opacity: 0.3;
  }
}

/* Button error state - blinking red border */
.form-submit.error,
.form-copy.error {
  animation: blink-red-button 0.5s ease-in-out 3;
  border-color: #ff0000 !important;
}

/* Success state overrides error state */
.form-submit.success.error,
.form-copy.success.error {
  animation: none !important;
  border-color: #22c55e !important;
  background: #22c55e !important;
}

@keyframes blink-red-button {
  0%, 100% {
    border-color: #ff0000;
    opacity: 1;
  }
  50% {
    border-color: #ff0000;
    opacity: 0.3;
  }
}

/* ============================================
   EMAIL MODAL
   ============================================ */

.email-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.email-modal {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

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

/* Dark mode - modal background */
body.dark-mode .email-modal {
  background: rgba(0, 0, 0, 0.95);
}

.email-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .email-modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.email-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 400;
  color: #000;
}

body.dark-mode .email-modal-header h3 {
  color: #fff;
}

.email-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  line-height: 1;
}

.email-modal-close:hover {
  color: #000;
}

body.dark-mode .email-modal-close {
  color: #999;
}

body.dark-mode .email-modal-close:hover {
  color: #fff;
}

.email-modal-content {
  padding: 1.5rem;
}

.email-modal-instructions {
  margin-bottom: 1rem;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

body.dark-mode .email-modal-instructions {
  color: #ccc;
}

.email-modal-textarea {
  width: 100%;
  min-height: 200px;
  padding: 1rem;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  resize: vertical;
  background: rgba(255, 255, 255, 0.8);
  color: #000;
  margin-bottom: 1.5rem;
}

body.dark-mode .email-modal-textarea {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
}

.email-modal-textarea:focus {
  outline: none;
  border-color: #00D6FF;
}

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

.email-modal-copy-btn,
.email-modal-mailto-btn {
  flex: 1;
  min-width: 150px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 400;
  border: 2px solid;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  display: inline-block;
}

.email-modal-copy-btn {
  background: transparent;
  color: #000;
  border-color: #000;
}

.email-modal-copy-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

body.dark-mode .email-modal-copy-btn {
  color: #fff;
  border-color: #fff;
}

body.dark-mode .email-modal-copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.email-modal-mailto-btn {
  background: #00D6FF;
  color: #000;
  border-color: #00D6FF;
}

.email-modal-mailto-btn:hover {
  background: #00b8d9;
  border-color: #00b8d9;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .email-modal-overlay {
    padding: 1rem;
  }
  
  .email-modal {
    max-height: 95vh;
  }
  
  .email-modal-actions {
    flex-direction: column;
  }
  
  .email-modal-copy-btn,
  .email-modal-mailto-btn {
    width: 100%;
  }
}

/* ============================================
   EMAIL PREVIEW MODAL
   ============================================ */

.email-preview-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

.email-preview-modal {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

body.dark-mode .email-preview-modal {
  background: rgba(0, 0, 0, 0.95);
}

.email-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .email-preview-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.email-preview-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 400;
  color: #000;
}

body.dark-mode .email-preview-header h3 {
  color: #fff;
}

.email-preview-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  line-height: 1;
}

.email-preview-close:hover {
  color: #000;
}

body.dark-mode .email-preview-close {
  color: #999;
}

body.dark-mode .email-preview-close:hover {
  color: #fff;
}

.email-preview-content {
  padding: 1.5rem;
}

.email-preview-field {
  margin-bottom: 1rem;
  color: #000;
  font-size: 0.95rem;
  line-height: 1.6;
}

body.dark-mode .email-preview-field {
  color: #fff;
}

.email-preview-field strong {
  font-weight: 600;
  margin-right: 0.5rem;
}

.email-preview-body {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.email-preview-body strong {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #000;
}

body.dark-mode .email-preview-body strong {
  color: #fff;
}

.email-preview-text {
  background: rgba(0, 0, 0, 0.05);
  padding: 1rem;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, monospace;
  font-size: 0.9rem;
  line-height: 1.8;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: #000;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .email-preview-text {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.email-preview-note {
  margin-top: 1rem;
  color: #666;
  font-size: 0.85rem;
  font-style: italic;
}

body.dark-mode .email-preview-note {
  color: #999;
}

.email-preview-actions {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  justify-content: flex-end;
}

body.dark-mode .email-preview-actions {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.email-preview-cancel,
.email-preview-open {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 400;
  border: 2px solid;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
}

.email-preview-cancel {
  background: transparent;
  color: #666;
  border-color: #666;
}

.email-preview-cancel:hover {
  background: rgba(0, 0, 0, 0.05);
}

body.dark-mode .email-preview-cancel {
  color: #999;
  border-color: #999;
}

body.dark-mode .email-preview-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
}

.email-preview-open {
  background: #00D6FF;
  color: #000;
  border-color: #00D6FF;
}

.email-preview-open:hover {
  background: #00b8d9;
  border-color: #00b8d9;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .email-preview-modal-overlay {
    padding: 1rem;
  }
  
  .email-preview-modal {
    max-height: 95vh;
  }
  
  .email-preview-actions {
    flex-direction: column;
  }
  
  .email-preview-cancel,
  .email-preview-open {
    width: 100%;
  }
}
