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

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #2d1b69 100%);
  color: white;
  min-height: 100vh;
  line-height: 1.6;
}

.trading-portal {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #2d1b69 100%);
  color: white;
}

.header {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 255, 135, 0.2);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: #00ff87;
}

.auth-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.login-btn, .register-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.login-btn {
  background: rgba(0, 255, 135, 0.1);
  color: #00ff87;
  border: 1px solid #00ff87;
}

.register-btn {
  background: #00ff87;
  color: black;
}

.login-btn:hover, .register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 135, 0.3);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-email {
  color: #00ff87;
  font-weight: 500;
}

.user-status {
  font-size: 0.8rem;
  opacity: 0.8;
}

.logout-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.guest-content {
  text-align: center;
}

.hero-section {
  padding: 2rem 0;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #00ff87, #60efff, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 3rem 0;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #00ff87;
}

.hero-stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 135, 0.2);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  text-align: center;
}

.benefit-card:hover {
  transform: translateY(-8px);
  border-color: #00ff87;
  box-shadow: 0 20px 40px rgba(0, 255, 135, 0.2);
}

.benefit-icon {
  color: #00ff87;
  margin-bottom: 1.5rem;
}

.benefit-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #00ff87;
}

.benefit-card p {
  opacity: 0.8;
  line-height: 1.6;
}

.pricing-card {
  max-width: 450px;
  margin: 4rem auto;
  background: rgba(0, 255, 135, 0.1);
  border: 2px solid #00ff87;
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00ff87, #60efff, #00ff87);
}

.pricing-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pricing-icon {
  color: #ffd700;
}

.price {
  font-size: 3.5rem;
  font-weight: bold;
  color: #00ff87;
  margin: 1.5rem 0;
  text-align: center;
}

.price span {
  font-size: 1.2rem;
  opacity: 0.7;
}

.pricing-features {
  text-align: left;
  margin: 2rem 0;
  list-style: none;
}

.pricing-features li {
  margin: 0.75rem 0;
  opacity: 0.9;
  font-size: 1.05rem;
}

.pricing-note {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 1rem;
  text-align: center;
}

.subscribe-btn {
  background: linear-gradient(45deg, #00ff87, #00cc6a);
  color: black;
  border: none;
  padding: 1.2rem 2.5rem;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  transition: all 0.3s ease;
  gap: 0.5rem;
}

.subscribe-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 255, 135, 0.4);
}

.btn-icon {
  margin-left: 0.5rem;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.modal-content {
  background: #1a1a1a;
  border: 1px solid rgba(0, 255, 135, 0.3);
  border-radius: 16px;
  padding: 2.5rem;
  min-width: 450px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-title {
  color: #00ff87;
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.5rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.login-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 1rem;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.login-input:focus {
  outline: none;
  border-color: #00ff87;
  box-shadow: 0 0 0 3px rgba(0, 255, 135, 0.1);
}

.login-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.password-input {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: #00ff87;
}

.login-submit {
  background: linear-gradient(45deg, #00ff87, #00cc6a);
  color: black;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 255, 135, 0.3);
}

.login-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.modal-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer p {
  margin-bottom: 1rem;
  opacity: 0.8;
}

.link-btn {
  background: transparent;
  border: none;
  color: #00ff87;
  text-decoration: underline;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.link-btn:hover {
  color: #60efff;
}

@media (max-width: 768px) {
  .header-content {
    padding: 0 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    min-width: 90vw;
    margin: 1rem;
    padding: 2rem;
  }
}