/* ==========================================================================
   QuantumSwing Pro Commercial Web Platform Stylesheet
   Luxury Obsidian & Emerald Green Aesthetics with Modern Responsive Layout
   Single Entry • Anti Martingale • Swing Intraday • Anti MC
   ========================================================================== */

:root {
  --bg-dark: #070B09;
  --bg-surface: #0E1612;
  --bg-card: rgba(16, 28, 22, 0.78);
  --bg-card-hover: rgba(22, 38, 30, 0.90);
  --border-green: rgba(16, 185, 129, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --green-primary: #10B981;
  --green-hover: #34D399;
  --green-dark: #059669;
  --green-deep: #047857;
  --green-gradient: linear-gradient(135deg, #10B981 0%, #059669 50%, #047857 100%);
  --green-gradient-glow: linear-gradient(135deg, #6EE7B7 0%, #10B981 50%, #047857 100%);
  --text-primary: #F0FDF4;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-green: #34D399;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --radius: 12px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.6);
  --glow-green: 0 0 25px rgba(16, 185, 129, 0.28);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(5, 150, 105, 0.07) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
header.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 9, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #FFF;
}

.brand-logo .logo-icon {
  background: var(--green-gradient);
  color: #070B09;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: var(--glow-green);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
}

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--green-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
}

.btn-green, .btn-gold {
  background: var(--green-gradient);
  color: #070B09;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-green:hover, .btn-gold:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.48);
}

.btn-outline {
  background: transparent;
  color: var(--green-primary);
  border: 1px solid var(--border-green);
}

.btn-outline:hover {
  background: rgba(16, 185, 129, 0.12);
  color: #FFF;
  border-color: var(--green-primary);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: 6px;
}

.btn-block {
  width: 100%;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-green, .badge-gold {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green-primary);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Cards & Glassmorphism */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.glass-card:hover {
  border-color: var(--border-green);
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-badge {
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 auto 35px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

/* Stats Ribbon */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 40px 0 80px;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-primary);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Feature Grid */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 80px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--green-gradient);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Pricing Section */
.pricing-card {
  max-width: 520px;
  margin: 0 auto 80px;
  background: linear-gradient(180deg, rgba(16, 28, 22, 0.92) 0%, rgba(11, 19, 15, 0.96) 100%);
  border: 2px solid var(--border-green);
  box-shadow: var(--glow-green);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 900;
  color: #FFF;
  margin: 20px 0;
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

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

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.pricing-features li.active {
  color: var(--text-primary);
}

.pricing-features li svg {
  color: var(--green-primary);
  flex-shrink: 0;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(7, 11, 9, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: #FFF;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

/* Member Area Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin: 30px 0 60px;
}

@media(min-width: 768px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.license-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(14, 22, 18, 0.92) 100%);
  border: 1px solid var(--border-green);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.license-key-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #070B09;
  border: 1px dashed var(--border-green);
  padding: 14px 18px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-primary);
  letter-spacing: 1px;
}

.slot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}

.slot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* Toast Notification */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #FFF;
  background: var(--bg-surface);
  border: 1px solid var(--border-green);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

#toast.toast-success {
  border-left: 4px solid var(--success);
}

#toast.toast-danger {
  border-left: 4px solid var(--danger);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Live Floating Social Proof Purchase Toast */
.social-proof-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: rgba(14, 22, 18, 0.96);
  border: 1px solid var(--border-green);
  border-left: 4px solid var(--green-primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(16, 185, 129, 0.22);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 380px;
  z-index: 998;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  pointer-events: none;
}

.social-proof-toast.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sp-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.sp-content {
  flex: 1;
  font-size: 0.82rem;
  line-height: 1.4;
}

.sp-title {
  font-weight: 700;
  color: #FFF;
}

.sp-subtitle {
  color: var(--green-primary);
  font-size: 0.78rem;
}

.sp-time {
  color: var(--text-muted);
  font-size: 0.72rem;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sp-close {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.25rem;
  padding: 0 4px;
  line-height: 1;
  border: none;
  background: none;
  transition: color 0.2s ease;
}

.sp-close:hover {
  color: #FFF;
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-green);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9), var(--glow-green);
  animation: modalIn 0.25s ease-out;
}

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

/* Mobile & Tablet Responsive Engine */
@media (max-width: 768px) {
  .nav-menu li:not(:last-child):not(:nth-last-child(2)) {
    display: none;
  }
  .nav-menu {
    gap: 8px;
  }
  .brand-logo {
    font-size: 1.15rem;
    gap: 8px;
  }
  .brand-logo .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  .btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  .hero {
    padding: 40px 0 30px;
  }
  .hero-title {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
  }
  .hero-subtitle {
    font-size: 0.95rem !important;
    margin-bottom: 24px !important;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .stats-ribbon {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin: 25px 0 45px !important;
  }
  .stat-item {
    padding: 16px 10px !important;
  }
  .stat-value {
    font-size: 1.5rem !important;
  }
  .stat-label {
    font-size: 0.72rem !important;
  }
}
