* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #e2e8f0;
  background: #0a0a0f;
  background-image: 
    radial-gradient(circle at 25% 25%, #1a1a2e 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, #16213e 0%, transparent 50%),
    linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  min-height: 100vh;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  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%);
  pointer-events: none;
  z-index: -1;
}

/* Simple Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: none;
  padding: 12px 20px 8px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-toggle {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(30px);
  padding: 80px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: right 0.3s ease;
  z-index: 998;
}

.nav-menu.active {
  right: 0;
}

.nav-item {
  padding: 16px 20px;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: rgba(30, 30, 50, 0.5);
}

.nav-item:hover,
.nav-item.active {
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.1);
}

.main-content {
  padding-top: 100px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00d4ff, transparent);
  opacity: 0.6;
}

.logo-container {
  text-align: center;
  margin-bottom: 30px;
}

.main-logo {
  width: 400px;
  height: 120px;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
  transition: all 0.3s ease;
  max-width: 90%;
}

.main-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.5));
}

#titleh {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 15px 0;
  background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #ff0080 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 2px;
}

#titlep {
  text-align: center;
  color: #94a3b8;
  font-size: 1.2rem;
  margin-bottom: 40px;
  font-weight: 400;
}

.form-container {
  background: rgba(30, 30, 50, 0.8);
  backdrop-filter: blur(20px);
  padding: 35px;
  border-radius: 20px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  box-shadow: 
    0 0 30px rgba(0, 212, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
}

.aura-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

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

.form-group label {
  font-weight: 700;
  color: #e2e8f0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.form-group input,
.form-group select {
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 16px;
  background: rgba(15, 15, 35, 0.8);
  color: #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.form-group input::placeholder {
  color: #64748b;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #00d4ff;
  box-shadow: 
    0 0 0 3px rgba(0, 212, 255, 0.1),
    0 0 20px rgba(0, 212, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: rgba(15, 15, 35, 0.95);
  transform: translateY(-1px);
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: #1a1a2e;
  color: #e2e8f0;
  padding: 10px;
}

.submit-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.calculate-btn {
  position: relative;
  padding: 18px 40px;
  background: linear-gradient(135deg, #7c3aed 0%, #ff0080 50%, #00d4ff 100%);
  color: white;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 8px 25px rgba(124, 58, 237, 0.3),
    0 0 30px rgba(255, 0, 128, 0.2);
  min-width: 250px;
}

.calculate-btn::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.6s;
}

.calculate-btn:hover::before {
  left: 100%;
}

.calculate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 12px 35px rgba(124, 58, 237, 0.4),
    0 0 40px rgba(255, 0, 128, 0.3);
}

.calculate-btn:active {
  transform: translateY(0);
}

.btn-text {
  position: relative;
  z-index: 2;
}

.btn-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(255, 0, 128, 0.3), rgba(0, 212, 255, 0.3));
  border-radius: 16px;
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.calculate-btn:hover .btn-glow {
  opacity: 1;
}

.result-container {
  margin-top: 30px;
  animation: slideUp 0.5s ease-out;
}

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

.result-card {
  background: rgba(30, 30, 50, 0.9);
  backdrop-filter: blur(20px);
  padding: 35px;
  border-radius: 20px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  box-shadow: 
    0 0 40px rgba(0, 212, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
}

.result-card h2 {
  margin: 0 0 25px 0;
  color: #e2e8f0;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.aura-score {
  margin: 30px 0;
  padding: 25px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(255, 0, 128, 0.2));
  border-radius: 16px;
  border: 1px solid rgba(255, 0, 128, 0.3);
  box-shadow: 
    0 0 30px rgba(255, 0, 128, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#auraScore {
  display: block;
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #ff0080 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
  margin-bottom: 10px;
}

.score-suffix {
  font-size: 1.2rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.aura-breakdown {
  margin: 25px 0;
  text-align: left;
}

.aura-breakdown h3 {
  margin: 0 0 15px 0;
  color: #e2e8f0;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(15, 15, 35, 0.6);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.breakdown-item:hover {
  background: rgba(15, 15, 35, 0.8);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.breakdown-label {
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
}

.breakdown-value {
  font-weight: 700;
  color: #00d4ff;
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.breakdown-value.positive {
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.breakdown-value.negative {
  color: #ff0080;
  text-shadow: 0 0 10px rgba(255, 0, 128, 0.3);
}

.result-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.retake-btn {
  padding: 14px 28px;
  background: linear-gradient(135deg, #ff0080 0%, #cc0066 100%);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 15px rgba(255, 0, 128, 0.3),
    0 0 20px rgba(255, 0, 128, 0.1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.retake-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(255, 0, 128, 0.4),
    0 0 30px rgba(255, 0, 128, 0.2);
}

.continue-btn {
  padding: 14px 28px;
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  color: #0a0a0f;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 15px rgba(0, 212, 255, 0.3),
    0 0 20px rgba(0, 212, 255, 0.1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(0, 212, 255, 0.4),
    0 0 30px rgba(0, 212, 255, 0.2);
}

.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 15px;
}

.nav-link {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(30, 30, 50, 0.6);
  backdrop-filter: blur(10px);
}

.nav-link:hover {
  color: #00d4ff;
  border-color: rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
  transform: translateY(-1px);
}

/* Loading state */
.calculate-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.calculate-btn.loading .btn-text::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
  .nav-menu {
    width: 100%;
    right: -100%;
  }
  
  body {
    padding: 10px;
  }
  
  .container {
    padding: 25px 20px;
    margin: 0;
    border-radius: 20px;
    min-height: calc(100vh - 20px);
  }
  
  .main-logo {
    width: 350px;
    height: 120px;
  }
  
  #titleh {
    font-size: 2rem;
    margin-bottom: 12px;
  }
  
  #titlep {
    font-size: 1rem;
    margin-bottom: 30px;
    padding: 0 10px;
  }
  
  .form-container {
    padding: 25px 20px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .form-group input,
  .form-group select {
    padding: 16px 18px;
    font-size: 16px;
    min-height: 52px;
  }
  
  .calculate-btn {
    padding: 16px 32px;
    font-size: 15px;
    min-height: 56px;
    width: 100%;
    max-width: 300px;
  }
  
  .result-card {
    padding: 25px 20px;
  }
  
  .result-card h2 {
    font-size: 1.5rem;
  }
  
  #auraScore {
    font-size: 2.8rem;
  }
  
  .score-suffix {
    font-size: 1rem;
  }
  
  .result-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .retake-btn,
  .continue-btn {
    padding: 16px 28px;
    font-size: 14px;
    min-height: 52px;
    width: 100%;
    max-width: 250px;
  }
  
  .navigation {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .nav-link {
    padding: 14px 20px;
    font-size: 13px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 10px 15px;
  }
  
  .logo {
    height: 35px;
  }
  
  .container {
    padding: 20px 15px;
  }
  
  .main-logo {
    width: 280px;
    height: 85px;
  }
  
  #titleh {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }
  
  #titlep {
    font-size: 0.9rem;
  }
  
  .form-container {
    padding: 20px 15px;
  }
  
  .form-group label {
    font-size: 13px;
  }
  
  .form-group input,
  .form-group select {
    padding: 14px 16px;
    font-size: 15px;
  }
  
  .calculate-btn {
    padding: 15px 28px;
    font-size: 14px;
    min-height: 52px;
  }
  
  #auraScore {
    font-size: 2.5rem;
  }
  
  .breakdown-item {
    padding: 10px 14px;
  }
  
  .breakdown-label {
    font-size: 13px;
  }
  
  .breakdown-value {
    font-size: 14px;
  }
}