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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #F0F8FF;
  color: #1A2A3A;
  line-height: 1.6;
  min-height: 100vh;
}

nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(74, 163, 224, 0.15);
  box-shadow: 0 2px 20px rgba(74, 163, 224, 0.08);
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1E88E5;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-brand span {
  color: #4AA3E0;
  font-weight: 300;
}

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

.nav-links a {
  text-decoration: none;
  color: #4A6A8A;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.nav-links a:hover {
  background: rgba(74, 163, 224, 0.1);
  color: #1E88E5;
}

.nav-links a.active {
  background: #4AA3E0;
  color: white;
}

.nav-links a.btn-nav {
  background: #1E88E5;
  color: white;
}

.nav-links a.btn-nav:hover {
  background: #1976D2;
  transform: translateY(-1px);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero {
  text-align: center;
  padding: 7rem 2rem 5rem;
  background: linear-gradient(135deg, #E3F2FD 0%, #B3D9F2 40%, #7EC2F0 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30, 136, 229, 0.08) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  border-radius: 50%;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #1A2A3A;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  position: relative;
}

.hero h1 span {
  background: linear-gradient(135deg, #1E88E5, #4AA3E0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: #4A6A8A;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  position: relative;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #1E88E5;
  color: white;
  box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
}

.btn-primary:hover {
  background: #1976D2;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
}

.btn-secondary {
  background: white;
  color: #1E88E5;
  border: 2px solid rgba(30, 136, 229, 0.2);
}

.btn-secondary:hover {
  border-color: #1E88E5;
  transform: translateY(-2px);
}

.btn-success {
  background: #43A047;
  color: white;
  box-shadow: 0 4px 15px rgba(67, 160, 71, 0.3);
}

.btn-success:hover {
  background: #388E3C;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.1rem 2.8rem;
  font-size: 1.1rem;
}

.features {
  padding: 5rem 2rem;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  color: #1A2A3A;
  margin-bottom: 3rem;
}

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

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(74, 163, 224, 0.1);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(74, 163, 224, 0.12);
  border-color: rgba(74, 163, 224, 0.25);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #E3F2FD, #B3D9F2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  color: #1A2A3A;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: #6A8AAA;
  font-size: 0.95rem;
}

/* Subscription Page */
.pricing-page {
  padding: 4rem 2rem;
  text-align: center;
}

.pricing-page h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #1A2A3A;
}

.pricing-page > p {
  color: #6A8AAA;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  background: white;
  border-radius: 24px;
  padding: 3rem;
  border: 2px solid rgba(74, 163, 224, 0.15);
  box-shadow: 0 8px 40px rgba(74, 163, 224, 0.08);
  position: relative;
}

.pricing-card.featured {
  border-color: #4AA3E0;
  box-shadow: 0 8px 40px rgba(74, 163, 224, 0.18);
}

.pricing-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1E88E5, #4AA3E0);
  color: white;
  padding: 0.4rem 1.5rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card .price {
  font-size: 3.5rem;
  font-weight: 800;
  color: #1A2A3A;
  margin: 1rem 0 0.5rem;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: #6A8AAA;
}

.pricing-card .description {
  color: #6A8AAA;
  margin-bottom: 2rem;
}

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

.pricing-features li {
  padding: 0.6rem 0;
  color: #4A6A8A;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
}

.pricing-features li::before {
  content: '✓';
  color: #43A047;
  font-weight: 700;
  font-size: 1.1rem;
}

.trial-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(74, 163, 224, 0.1);
}

.trial-section p {
  color: #6A8AAA;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.trial-section .btn {
  width: 100%;
  justify-content: center;
}

.trial-taken {
  background: #E8F5E9;
  border-radius: 12px;
  padding: 1rem;
  color: #2E7D32;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Trading Page */
.trading-page {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.trading-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.trading-header h1 {
  font-size: 1.8rem;
  color: #1A2A3A;
}

.trial-badge {
  background: #E8F5E9;
  color: #2E7D32;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trial-badge.expired {
  background: #FFEBEE;
  color: #C62828;
}

.trade-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.trade-panel {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(74, 163, 224, 0.1);
}

.trade-panel h3 {
  font-size: 1.1rem;
  color: #1A2A3A;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trade-form label {
  display: block;
  font-size: 0.85rem;
  color: #6A8AAA;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.trade-form input,
.trade-form select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(74, 163, 224, 0.2);
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  background: #F8FCFF;
  transition: border-color 0.2s;
  color: #1A2A3A;
}

.trade-form input:focus,
.trade-form select:focus {
  outline: none;
  border-color: #4AA3E0;
  box-shadow: 0 0 0 3px rgba(74, 163, 224, 0.1);
}

.trade-form .btn {
  width: 100%;
  justify-content: center;
}

.trade-history {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(74, 163, 224, 0.1);
}

.trade-history h3 {
  font-size: 1.1rem;
  color: #1A2A3A;
  margin-bottom: 1rem;
}

.trade-history table {
  width: 100%;
  border-collapse: collapse;
}

.trade-history th,
.trade-history td {
  padding: 0.8rem 1rem;
  text-align: left;
  font-size: 0.9rem;
}

.trade-history th {
  color: #6A8AAA;
  font-weight: 600;
  border-bottom: 2px solid rgba(74, 163, 224, 0.1);
}

.trade-history td {
  color: #4A6A8A;
  border-bottom: 1px solid rgba(74, 163, 224, 0.05);
}

.trade-history .empty-state {
  text-align: center;
  padding: 3rem;
  color: #9AB0C8;
  font-style: italic;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  pointer-events: all;
}

.modal-overlay.closable {
  cursor: pointer;
}

.modal {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: modalIn 0.3s ease-out;
  pointer-events: all;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #1A2A3A;
}

.modal p {
  color: #6A8AAA;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.modal .instructions {
  background: #E3F2FD;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #1A5A8A;
  line-height: 1.6;
}

.modal .instructions strong {
  color: #1E88E5;
}

.modal .form-group {
  margin-bottom: 1.2rem;
}

.modal .form-group label {
  display: block;
  font-size: 0.85rem;
  color: #6A8AAA;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.modal .form-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid rgba(74, 163, 224, 0.2);
  border-radius: 10px;
  font-size: 1rem;
  text-align: center;
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
  transition: border-color 0.2s;
  color: #1A2A3A;
}

.modal .form-group input:focus {
  outline: none;
  border-color: #4AA3E0;
  box-shadow: 0 0 0 3px rgba(74, 163, 224, 0.1);
}

.modal .btn {
  width: 100%;
  justify-content: center;
}

.modal .success-state {
  text-align: center;
  padding: 1rem 0;
}

.modal .success-state .checkmark {
  width: 64px;
  height: 64px;
  background: #E8F5E9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: #43A047;
}

.modal .success-state h3 {
  color: #2E7D32;
  margin-bottom: 0.5rem;
}

.modal .success-state p {
  color: #6A8AAA;
}

/* Affiliate Section */
#affiliateSection {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(74, 163, 224, 0.1);
  display: none;
}

#affiliateSection h3 {
  font-size: 1.1rem;
  color: #1A2A3A;
  margin-bottom: 0.3rem;
}

#affiliateSection input:focus {
  outline: none;
  border-color: #4AA3E0;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: #9AB0C8;
  font-size: 0.85rem;
  border-top: 1px solid rgba(74, 163, 224, 0.08);
  margin-top: 3rem;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #1A2A3A;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  animation: slideUp 0.3s ease-out;
}

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

/* Responsive */
@media (max-width: 768px) {
  nav {
    padding: 0.8rem 1rem;
    flex-wrap: wrap;
  }

  .nav-links {
    gap: 0.2rem;
  }

  .nav-links a {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

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

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

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

  .pricing-card {
    padding: 2rem;
  }

  .trading-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal {
    padding: 1.5rem;
  }

  .trading-page {
    padding: 1rem;
  }
}
