/* Hero Section */
.hero-container {
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title span {
  background: var(--grad-cyan-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* Dual Wallet Cards */
.wallet-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
}

.wallet-card-investment {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-color: rgba(16, 185, 129, 0.25);
}

.wallet-card-payment {
  background: linear-gradient(145deg, rgba(0, 242, 254, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-color: rgba(0, 242, 254, 0.25);
}

.wallet-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.wallet-title {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wallet-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-amount-lg {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 6px;
}

.wallet-currency {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
}

.wallet-subtext {
  font-size: 13px;
  color: var(--text-dim);
}

/* Stat Box */
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-val {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
}

.stat-diff {
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}

.stat-diff.positive { color: var(--accent-emerald); }
.stat-diff.gold { color: var(--accent-gold); }

/* Vesting Tracker Progress */
.vesting-box {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 12px 0;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--grad-cyan-blue);
  transition: width 0.8s ease-in-out;
}

.progress-fill-emerald {
  background: var(--grad-emerald);
}

.progress-fill-gold {
  background: var(--grad-gold);
}

/* Level Multiplier Badges */
.badge-level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.badge-l1-14 {
  background: rgba(79, 172, 254, 0.15);
  color: #4facfe;
  border: 1px solid rgba(79, 172, 254, 0.3);
}

.badge-l15-18 {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-l19-20 {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Calculator Range Sliders */
.calc-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.05);
}

.slider-group {
  margin-bottom: 24px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.slider-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.slider-val-badge {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.custom-range {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-cyan);
  transition: 0.15s ease-in-out;
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Summary Grid in Calculator */
.calc-results-panel {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
}

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.calc-row:last-child {
  border-bottom: none;
}

.calc-row-title {
  color: var(--text-muted);
}

.calc-row-val {
  font-weight: 700;
  color: var(--text-main);
}

.calc-highlight-row {
  background: rgba(0, 242, 254, 0.05);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 12px 0;
  border: 1px solid rgba(0, 242, 254, 0.2);
}

/* Custom Table Styles */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.c4x-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.c4x-table th {
  padding: 14px 16px;
  color: var(--text-muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-glass);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.c4x-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.c4x-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Modal Windows */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 520px;
  padding: 32px;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition-smooth);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}

.modal-header {
  margin-bottom: 24px;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.toast-msg {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-success { border-left: 4px solid var(--accent-emerald); }
.toast-error { border-left: 4px solid var(--accent-rose); }
.toast-info { border-left: 4px solid var(--accent-cyan); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Network Downline Tree */
.tree-node {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-fast);
}

.tree-node:hover {
  border-color: rgba(0, 242, 254, 0.3);
  background: var(--bg-card-hover);
}

.tree-node-sub {
  margin-left: 36px;
  border-left: 2px dashed rgba(255, 255, 255, 0.15);
  padding-left: 16px;
}

/* Plan Buy Cards */
.plan-tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
}

.plan-tier-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}

.plan-tier-card.featured {
  border-color: rgba(0, 242, 254, 0.5);
  background: linear-gradient(180deg, rgba(0, 242, 254, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.plan-price-lg {
  font-size: 38px;
  font-weight: 800;
  margin: 16px 0 6px;
}

.plan-token-amount {
  color: var(--accent-cyan);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}
