* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Courier New', monospace;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  color: #00ffff;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%);
  z-index: -1;
  animation: pulse 4s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* MOBILE-FIRST NAVBAR */
.navbar {
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.1) 0%, rgba(255, 0, 255, 0.1) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 0;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 255, 255, 0.2);
  position: relative;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.5em;
  font-weight: bold;
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
  animation: glow 2s ease-in-out infinite alternate;
  flex-shrink: 0;
}


.brand-logo {
  height: 32px !important;  /* Force the height */
  width: auto !important;   /* Force maintain aspect ratio */
  max-height: 32px !important;
  max-width: 120px !important;
  filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
  transition: all 0.3s ease;
  animation: logoGlow 3s ease-in-out infinite alternate;
}

.brand-logo:hover {
  filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.8)) 
          drop-shadow(0 0 25px rgba(255, 0, 255, 0.4));
  transform: scale(1.05);
}

@keyframes logoGlow {
  0% { 
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
  }
  50% { 
    filter: drop-shadow(0 0 12px rgba(0, 255, 255, 0.8)) 
            drop-shadow(0 0 20px rgba(255, 0, 255, 0.3));
  }
  100% { 
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
  }
}

/* Responsive logo sizing */
@media (max-width: 768px) {
  .brand-logo {
    height: 28px !important;
    max-width: 100px !important;
  }
}

@media (max-width: 320px) {
  .brand-logo {
    height: 24px !important;
    max-width: 80px !important;
  }
}

/* Mobile Navigation */
.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: #00ffff;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9em;
  white-space: nowrap;
}

.nav-links a:hover {
  border: 1px solid #00ffff;
  background: rgba(0, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.nav-links .active-link,
.nav-links a.active-link { 
  border: 1px solid #ff00ff;
  background: rgba(255, 0, 255, 0.13);
  color: #ff00ff;
  box-shadow: 0 0 15px #ff00ff88;
  font-weight: bold;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 255, 255, 0.3);
  min-width: 160px;
  top: 35px;
  right: 0;
  z-index: 1000;
  border-radius: 5px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  border: none;
  border-bottom: 1px solid rgba(0, 255, 255, 0.1);
  font-size: 0.85em;
}

.dropdown-content a:hover {
  background: rgba(0, 255, 255, 0.2);
}

.navbar-username, 
.nav-links .navbar-username,
.nav-links span.navbar-username {
  color: #ffd700;
  font-weight: bold;
  margin: 0 5px;
  text-shadow: 0 0 8px #fffa;
  letter-spacing: .5px;
  font-size: 0.9em;
}

/* RESPONSIVE MAIN CONTENT */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 15px;
}

h1 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
  background: linear-gradient(45deg, #00ffff, #adc2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
  line-height: 1.2;
}

h2 {
  color: #ff00ff;
  text-shadow: 0 0 10px #ff00ff;
  margin: 25px 0 15px 0;
  font-size: 1.3em;
}

/* MOBILE-OPTIMIZED FORMS */
form {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 8px 32px rgba(0, 255, 255, 0.1);
  width: 100%;
}

label {
  display: block;
  margin-bottom: 6px;
  color: #00ffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  font-size: 0.9em;
}

input[type="text"], 
input[type="password"], 
input[type="email"], 
select, 
textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 5px;
  color: #00ffff;
  font-family: 'Courier New', monospace;
  font-size: 16px; /* Prevents zoom on iOS */
  transition: all 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input[type="text"]:focus, 
input[type="password"]:focus, 
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #00ffff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.7);
}

input[type="text"]::placeholder, 
input[type="password"]::placeholder, 
input[type="email"]::placeholder {
  color: rgba(0, 255, 255, 0.5);
}

/* MOBILE-FRIENDLY BUTTONS */
button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(45deg, #00ffff, #ff00ff);
  border: none;
  border-radius: 5px;
  color: #000;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  touch-action: manipulation; /* Improves tap performance */
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

button:hover::before,
button:active::before {
  left: 100%;
}

button:hover,
button:active {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 255, 255, 0.4);
}

/* RESPONSIVE CARDS AND LISTS */
ul {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 0, 255, 0.3);
  border-radius: 10px;
  padding: 15px;
  list-style: none;
}

li {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 5px;
  padding: 12px;
  margin-bottom: 12px;
  color: #fff;
  transition: all 0.3s ease;
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

li:hover {
  border-color: #00ffff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  transform: translateX(5px);
}

li::before {
  content: '▶';
  color: #ff00ff;
  margin-right: 8px;
  font-size: 12px;
}

/* MOBILE-OPTIMIZED FEATURE GRID */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 30px 0;
}

.feature-card {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 10px;
  padding: 20px;
  text-align: left;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: #00ffff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  transform: translateY(-3px);
}

.feature-card h3 {
  color: #00ffff;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.feature-card p {
  color: #fff;
  line-height: 1.5;
  font-size: 0.95em;
}

/* MOBILE CTA SECTIONS */
.cta-section {
  margin: 40px 0;
  padding: 25px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  border: 1px solid rgba(255, 0, 255, 0.3);
  text-align: center;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
}

.cta-primary, .cta-secondary {
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  display: inline-block;
  width: 100%;
  max-width: 250px;
  text-align: center;
  touch-action: manipulation;
}

.cta-primary {
  background: linear-gradient(45deg, #00ffff, #ff00ff);
  color: #000;
}

.cta-secondary {
  background: transparent;
  color: #00ffff;
  border: 2px solid #00ffff;
}

.cta-primary:hover, 
.cta-primary:active,
.cta-secondary:hover,
.cta-secondary:active {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 255, 255, 0.4);
}

/* MOBILE PRICING CARDS */
.pricing-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.card {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 255, 255, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #00ffff;
  box-shadow: 0 6px 25px rgba(0, 255, 255, 0.2);
}

.card h2 {
  color: #00ffff;
  margin-bottom: 10px;
  font-size: 1.3em;
}

.card p {
  margin: 8px 0;
  font-weight: 600;
  font-size: 0.95em;
}

/* MOBILE HERO SECTION */
.hero {
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 10px;
}

.hero-subtitle {
  font-size: 1.1em;
  color: #adc2ff;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-description {
  text-align: center;
  font-size: 1em;
  color: #adc2ff;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* MOBILE BENEFITS */
.benefits {
  margin: 40px 0;
}

.benefits-list {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 10px;
  padding: 20px;
  list-style: none;
}

.benefits-list li {
  background: none;
  border: none;
  padding: 8px 0;
  margin: 0;
  color: #fff;
  font-size: 1em;
  transition: none;
}

.benefits-list li:hover {
  transform: none;
  box-shadow: none;
  border: none;
}

.benefits-list li::before {
  content: '✓';
  color: #00ffff;
  margin-right: 10px;
  font-weight: bold;
}

/* MOBILE FOOTER */
footer {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(0, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.3);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 15px;
}

.footer-left {
  color: #00ffff;
  font-weight: bold;
}

.footer-links {
  color: #adc2ff;
}

.footer-links a {
  color: #00ffff;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0 10px;
}

.footer-links a:hover {
  color: #ff00ff;
}

.footer-right {
  color: #adc2ff;
  font-size: 0.85em;
}

.brand {
  font-size: 1.5em;
  font-weight: bold;
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
  animation: glow 2s ease-in-out infinite alternate;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
  transition: all 0.3s ease;
  animation: logoGlow 3s ease-in-out infinite alternate;
}

.brand-logo:hover {
  filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.8)) 
          drop-shadow(0 0 25px rgba(255, 0, 255, 0.4));
  transform: scale(1.05);
}

@keyframes logoGlow {
  0% { 
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
  }
  50% { 
    filter: drop-shadow(0 0 12px rgba(0, 255, 255, 0.8)) 
            drop-shadow(0 0 20px rgba(255, 0, 255, 0.3));
  }
  100% { 
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
  }
}

/* Responsive logo sizing */
@media (max-width: 768px) {
  .brand-logo {
    height: 28px;
  }
  
  .brand {
    font-size: 1.3em;
  }
}

@media (max-width: 320px) {
  .brand-logo {
    height: 24px;
  }
  
  .brand {
    font-size: 1.2em;
    gap: 8px;
  }
}

/* Optional: Logo-only version for mobile (if you want text to disappear on very small screens) */
@media (max-width: 480px) {
  .brand-text {
    display: none; /* Hide text on very small screens, logo only */
  }
  
  .brand-logo {
    height: 30px;
  }
}

/* Hero section logo (if you want a larger logo on homepage) */
.hero-logo {
  height: 80px;
  width: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.8));
  animation: heroLogoFloat 4s ease-in-out infinite;
}

@keyframes heroLogoFloat {
  0%, 100% { 
    transform: translateY(0px);
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.8));
  }
  50% { 
    transform: translateY(-10px);
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 1)) 
            drop-shadow(0 0 30px rgba(255, 0, 255, 0.5));
  }
}

/* Footer logo */
.footer-logo {
  height: 20px;
  width: auto;
  vertical-align: middle;
  margin-right: 8px;
  filter: drop-shadow(0 0 3px rgba(0, 255, 255, 0.5));
}

/* Loading state for logo */
.brand-logo[src=""],
.brand-logo:not([src]) {
  display: none;
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .brand-logo,
  .hero-logo,
  .footer-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* MOBILE UTILITIES */
.already-logged-in {
  padding: 20px;
  border: 1.5px solid #ff00ff;
  background: rgba(0, 255, 255, 0.07);
  border-radius: 10px;
  margin: 30px 0;
  text-align: center;
  color: #ff00ff;
  font-size: 1em;
  box-shadow: 0 2px 30px #ff00ff22;
}

.already-logged-in a {
  color: #00ffff;
  text-decoration: underline;
  margin: 0 5px;
  font-weight: bold;
}

.already-logged-in a:hover {
  color: #ff00ff;
}

.export-button {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(45deg, #00ffff, #ff00ff);
  color: #000;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  touch-action: manipulation;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.export-button:hover,
.export-button:active {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00ffff, transparent);
  margin: 30px 0;
  box-shadow: 0 0 10px #00ffff;
}

/* MOBILE SCROLLBAR */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #00ffff, #ff00ff);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #ff00ff, #00ffff);
}

.stat-card {
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-bottom: 15px;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 255, 255, 0.2);
  border-color: rgba(0, 255, 255, 0.6);
}

.stat-number {
  font-size: 1.8em !important;
  margin-bottom: 10px;
}

/* RESPONSIVE BREAKPOINTS */

/* Small phones */
@media (max-width: 320px) {
  .navbar {
    padding: 8px 10px;
  }
  
  .brand {
    font-size: 1.3em;
  }
  
  .nav-links {
    gap: 8px;
  }
  
  .nav-links a {
    padding: 4px 8px;
    font-size: 0.8em;
  }
  
  main {
    padding: 15px 10px;
  }
  
  h1 {
    font-size: 1.8em;
  }
  
  form {
    padding: 15px;
  }
  
  input[type="text"], 
  input[type="password"], 
  input[type="email"] {
    padding: 10px;
    font-size: 16px;
  }
  
  button {
    padding: 12px;
    font-size: 14px;
  }
}

/* Tablets and larger phones */
@media (min-width: 768px) {
  .navbar {
    padding: 15px 30px;
  }
  
  .brand {
    font-size: 2em;
  }
  
  .nav-links {
    gap: 25px;
  }
  
  .nav-links a {
    font-size: 1em;
    padding: 8px 16px;
  }
  
  main {
    padding: 40px 20px;
  }
  
  h1 {
    font-size: 3em;
    margin-bottom: 40px;
  }
  
  form {
    padding: 30px;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
  }
  
  .pricing-cards {
    flex-direction: row;
  }
  
  .card {
    flex: 1;
  }
  
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }
  
  .cta-primary, .cta-secondary {
    width: auto;
    min-width: 200px;
  }
  
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  
  .export-button {
    width: auto;
    display: inline-block;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero {
    max-width: 1000px;
  }
  
  .navbar {
    margin-bottom: 40px;
  }
  
  .benefits {
    margin: 60px 0;
  }
  
  .cta-section {
    margin: 60px 0;
    padding: 40px;
  }
  
  footer {
    margin-top: 60px;
    padding: 30px 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body::before {
    background-size: 100% 100%;
  }
}

/* Landscape orientation fixes */
@media (orientation: landscape) and (max-height: 500px) {
  .navbar {
    padding: 5px 15px;
  }
  
  .brand {
    font-size: 1.2em;
  }
  
  main {
    padding: 15px;
  }
  
  h1 {
    font-size: 2em;
    margin-bottom: 20px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  /* Already using dark theme, but can add specific adjustments here */
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .navbar,
  form,
  .feature-card,
  ul,
  .card {
    border-width: 2px;
  }
  
  button,
  .cta-primary,
  .cta-secondary {
    border: 2px solid #00ffff;
  }
}
