/* ── MDAD AFFILIATE SYSTEM DESIGN SYSTEM & RESET ── */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

:root {
  --bg: #09090b;
  --surface: #18181b;
  --surface-card: rgba(24, 24, 27, 0.7);
  --surface-hover: #27272a;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  
  --accent: #c8f135;
  --accent-rgb: 200, 241, 53;
  --accent-hover: #b4da2a;
  --accent-glow: rgba(200, 241, 53, 0.12);
  --accent-glow-subtle: rgba(200, 241, 53, 0.04);
  
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-quick: all 0.15s ease;
  --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

html { 
  scroll-behavior: smooth; 
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* ── NEON GLOW & DARK GRID BACKGROUND ── */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 800px;
  background: radial-gradient(circle at top, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.2;
  pointer-events: none;
  z-index: -3;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.5;
}

/* ── LAYOUT WRAPPER ── */
.wrap { 
  max-width: 840px; 
  margin: 0 auto; 
  padding: 0 24px; 
  position: relative; 
}

/* ── HEADER / NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 9, 11, 0.75);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-smooth);
}

nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1040px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.nav-logo-text span { 
  color: var(--accent); 
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-quick);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: none;
  padding: 8px 18px;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-cta:hover { 
  background: var(--accent-hover); 
  transform: translateY(-1px); 
  box-shadow: 0 4px 15px rgba(200, 241, 53, 0.3);
}

/* ── HERO SECTION ── */
.hero {
  padding: 160px 0 80px;
  position: relative;
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge .status-dot {
  width: 6px; 
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 62px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero h1 .accent-text { 
  color: var(--accent); 
}

.hero-sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: none;
  padding: 16px 32px;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
  font-family: var(--font-body);
  box-shadow: 0 8px 24px rgba(200, 241, 53, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
  box-shadow: 0 12px 30px rgba(200, 241, 53, 0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  padding: 16px 32px;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
  font-family: var(--font-body);
}

.btn-ghost:hover { 
  border-color: var(--border-hover); 
  color: var(--text-primary); 
  background: rgba(255, 255, 255, 0.05);
}

/* ── STATS BAR ── */
.stats-bar {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0 80px;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow-subtle) 0%, transparent 60%);
  pointer-events: none;
}

.stat { 
  text-align: center; 
  position: relative; 
  z-index: 1;
}

.stat + .stat {
  border-left: 1px solid var(--border);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── SECTION STYLING ── */
section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: 48px;
}

/* ── PROCESS TIMELINE (HOW IT WORKS) ── */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.process-step {
  display: flex;
  gap: 24px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  transition: var(--transition-smooth);
  position: relative;
}

.process-step:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  background: var(--surface);
}

.process-badge {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-glow);
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.process-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.process-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.process-content p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.5;
}

/* ── INTERACTIVE CALCULATOR ── */
.calc-container {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-premium);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  position: relative;
}

@media (max-width: 768px) {
  .calc-container {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
}

.calc-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-slider-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition-quick);
}

.calc-slider-item:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
}

.slider-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
}

.slider-input-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calc-slider {
  flex-grow: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 100px;
  background: var(--border);
  outline: none;
  accent-color: var(--accent);
  cursor: pointer;
  transition: background 0.3s;
}

.calc-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
}

.slider-count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  min-width: 40px;
  text-align: right;
  color: var(--text-primary);
}

/* Invoice Section */
.calc-invoice {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
}

.invoice-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.invoice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-secondary);
}

.invoice-row.highlight {
  color: var(--accent);
  font-weight: 600;
}

.invoice-divider {
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

.invoice-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.invoice-total-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.invoice-total-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--accent);
}

.invoice-total-price span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 4px;
}

.invoice-subtext {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

/* ── FORM STYLING ── */
.form-container {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 50px 40px;
  box-shadow: var(--shadow-premium);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.form-container::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(200, 241, 53, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: var(--transition-quick);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-btn {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 16px;
  margin-top: 10px;
}

.form-error {
  color: #ef4444;
  font-size: 13.5px;
  text-align: left;
  margin-top: 6px;
  display: none;
}

.form-notice {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.5;
}

/* ── SUCCESS MODAL OVERLAY ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.modal-card {
  background: var(--surface);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 28px;
  width: 100%;
  max-width: 500px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(var(--accent-rgb), 0.05);
  transform: translateY(30px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-icon {
  font-size: 48px;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.modal-card h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.modal-card p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.code-box-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-modal-close {
  width: 100%;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: #060608;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
}

.footer-logo span {
  color: var(--accent);
}

.footer-content p {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ── CUSTOM CHECKBOX STYLING ── */
.checkbox-group {
  margin-bottom: 24px;
  text-align: left;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: relative;
  height: 20px;
  width: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: var(--transition-quick);
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-container:hover input ~ .checkmark {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
}

.checkbox-container input:checked ~ .checkmark {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3);
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark::after {
  display: block;
}

.checkbox-container .checkmark::after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.checkbox-label a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-quick);
  border-bottom: 1px dashed rgba(var(--accent-rgb), 0.4);
}

.checkbox-label a:hover {
  color: var(--accent-hover);
  border-bottom-style: solid;
}

/* ── TERMS PAGE STYLING ── */
.page-header {
  padding: 140px 0 40px;
  text-align: left;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.page-header-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

.terms-container {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 80px;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
}

.terms-text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

.terms-text p {
  margin-bottom: 20px;
}

.terms-text h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.terms-text h2:first-of-type {
  margin-top: 0;
}

.terms-text ul, .terms-text ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.terms-text li {
  margin-bottom: 8px;
}

.terms-text strong {
  color: var(--text-primary);
}

.terms-highlight-box {
  background: rgba(200, 241, 53, 0.03);
  border: 1px solid rgba(200, 241, 53, 0.15);
  border-radius: 16px;
  padding: 24px;
  margin: 28px 0;
  color: var(--text-secondary);
}

.terms-highlight-box strong {
  color: var(--accent);
}

.terms-footer-actions {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 30px;
}

@media (max-width: 600px) {
  .terms-container {
    padding: 24px;
  }
  .terms-text {
    font-size: 14px;
  }
}
