/* ====== Reset & Variables ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-primary: #4F46E5;
  --c-primary-hover: #4338CA;
  --c-primary-light: #EEF2FF;
  --c-text: #1E293B;
  --c-text-secondary: #64748B;
  --c-text-muted: #94A3B8;
  --c-bg: #FFFFFF;
  --c-bg-alt: #F8FAFC;
  --c-bg-card: #FFFFFF;
  --c-border: #E2E8F0;
  --c-success: #10B981;
  --c-warning: #F59E0B;
  --c-danger: #EF4444;
  --c-wechat: #07C160;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07),0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08),0 4px 6px -4px rgba(0,0,0,.04);
  --max-w: 1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans SC",sans-serif;
  color: var(--c-text); background: var(--c-bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-hover); }

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--radius); border: 1px solid transparent;
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all .15s;
  white-space: nowrap; line-height: 1.5; font-family: inherit;
}
.btn-primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn-primary:hover { background: var(--c-primary-hover); border-color: var(--c-primary-hover); }
.btn-outline { background: transparent; color: var(--c-text); border-color: var(--c-border); }
.btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-light); }
.btn-ghost { background: transparent; color: var(--c-text-secondary); border-color: transparent; }
.btn-ghost:hover { color: var(--c-text); background: var(--c-bg-alt); }
.btn-wechat { background: var(--c-wechat); color: #fff; border-color: var(--c-wechat); }
.btn-wechat:hover { opacity: .9; }
.btn-danger { background: var(--c-danger); color: #fff; border-color: var(--c-danger); }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-lg { padding: 12px 28px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ====== Nav ====== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border); transition: box-shadow .2s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 52px; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--c-text); font-weight: 700; font-size: 18px; }
.brand-icon {
  width: 34px; height: 34px; background: linear-gradient(135deg, var(--c-primary), #7C3AED);
  color: #fff; border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.nav-links { display: flex; gap: 8px; }
.nav-links a {
  padding: 6px 12px; border-radius: var(--radius); font-size: 14px;
  color: var(--c-text-secondary); transition: all .15s;
}
.nav-links a:hover { color: var(--c-primary); background: var(--c-primary-light); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--c-text); border-radius: 1px; }

/* User dropdown */
.user-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; right: 0; margin-top: 6px;
  background: var(--c-bg-card); border: 1px solid var(--c-border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 180px; display: none; z-index: 200;
}
.user-dropdown.active .dropdown-menu { display: block; }
.dropdown-item { display: block; width: 100%; padding: 10px 16px; text-align: left; background: none; border: none; font-size: 14px; color: var(--c-text); cursor: pointer; }
.dropdown-item:hover { background: var(--c-bg-alt); }
.user-info-item { border-bottom: 1px solid var(--c-border); cursor: default; }
.user-balance-display { display: flex; justify-content: space-between; align-items: center; }
.balance-label { font-size: 12px; color: var(--c-text-muted); }
.balance-value { font-weight: 700; color: var(--c-primary); font-size: 16px; }

/* ====== Hero ====== */
.hero {
  position: relative; padding: 100px 24px 56px; overflow: hidden;
  background: linear-gradient(180deg, #F0F4FF 0%, #FFFFFF 100%);
}
.hero-bg {
  position: absolute; top: -180px; right: -180px; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79,70,229,.08) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-content {
  max-width: 800px; margin: 0 auto; text-align: center;
}
.hero-text { display: flex; flex-direction: column; align-items: center; }
.hero-desc { max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-buttons { justify-content: center; }
.hero-stats { justify-content: center; }
.hero-badge {
  display: inline-block; padding: 4px 14px; background: var(--c-primary-light);
  color: var(--c-primary); border-radius: 100px; font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.hero-title { font-size: 40px; font-weight: 800; line-height: 1.15; margin-bottom: 20px; letter-spacing: -.5px; }
.text-gradient { background: linear-gradient(135deg, var(--c-primary), #7C3AED); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 17px; color: var(--c-text-secondary); line-height: 1.7; margin-bottom: 24px; max-width: 480px; }
.hero-buttons { display: flex; gap: 12px; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 40px; }
.stat strong { display: block; font-size: 28px; font-weight: 700; color: var(--c-primary); }
.stat span { font-size: 13px; color: var(--c-text-muted); }

/* Hero mockup */
.hero-visual { position: relative; }
.hero-mockup {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border); overflow: hidden;
}
.mockup-bar {
  height: 36px; background: var(--c-bg-alt); display: flex; align-items: center;
  gap: 6px; padding: 0 14px; border-bottom: 1px solid var(--c-border);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-border); }
.mockup-content { display: flex; height: 280px; }
.mockup-sidebar { width: 140px; background: var(--c-bg-alt); padding: 16px 12px; border-right: 1px solid var(--c-border); }
.mockup-sidebar-item { padding: 8px 12px; border-radius: var(--radius); font-size: 13px; color: var(--c-text-muted); margin-bottom: 4px; }
.mockup-sidebar-item.active { background: var(--c-primary-light); color: var(--c-primary); font-weight: 600; }
.mockup-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mockup-card { padding: 16px; border: 1px solid var(--c-border); border-radius: var(--radius); }
.mockup-card-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.mockup-progress { height: 6px; background: var(--c-bg-alt); border-radius: 3px; margin-bottom: 10px; overflow: hidden; }
.mockup-progress-bar { height: 100%; background: var(--c-primary); border-radius: 3px; }
.mockup-stats-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--c-text-muted); }
.mockup-score { color: var(--c-success); font-weight: 600; }

/* ====== Sections ====== */
.section { padding: 56px 24px; }
.section-alt { background: var(--c-bg-alt); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 36px; }
.section-header h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; letter-spacing: -.3px; }
.section-header p { color: var(--c-text-secondary); font-size: 16px; max-width: 560px; margin: 0 auto; }
.section-tag { display: inline-block; padding: 4px 14px; background: var(--c-primary-light); color: var(--c-primary); border-radius: 100px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }

/* ====== Features ====== */
.features-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.feature-card {
  padding: 20px; background: var(--c-bg-card); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); transition: all .2s;
}
.feature-card:hover { border-color: var(--c-primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon { width: 40px; height: 40px; background: var(--c-primary-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; color: var(--c-primary);
}
.feature-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--c-text-secondary); line-height: 1.65; }

/* ====== Versions ====== */
.versions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 64px; }
.version-card {
  padding: 24px; background: var(--c-bg-card); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); position: relative; display: flex; flex-direction: column;
}
.version-card-featured { border-color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary); }
.version-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--c-primary); color: #fff; padding: 4px 16px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.version-header { margin-bottom: 24px; }
.version-header h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.version-price strong { font-size: 36px; font-weight: 800; color: var(--c-primary); }
.version-price span { color: var(--c-text-muted); font-size: 14px; }
.version-features { list-style: none; margin-bottom: 24px; flex: 1; }
.version-features li { padding: 8px 0 8px 24px; position: relative; font-size: 14px; color: var(--c-text-secondary); border-bottom: 1px solid var(--c-bg-alt); }
.version-features li::before { content: ""; position: absolute; left: 0; top: 14px; width: 6px; height: 6px; background: var(--c-success); border-radius: 50%; }

/* Timeline */
.version-timeline { max-width: 680px; margin: 0 auto; }
.version-timeline h3 { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 24px; }
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 12px; top: 8px; bottom: 8px; width: 2px; background: var(--c-border); }
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-dot {
  position: absolute; left: -22px; top: 6px; width: 10px; height: 10px;
  background: var(--c-primary); border-radius: 50%; border: 2px solid var(--c-bg);
}
.timeline-content { padding-left: 8px; }
.timeline-version { font-weight: 700; font-size: 15px; margin-right: 10px; }
.timeline-date { font-size: 13px; color: var(--c-text-muted); }
.timeline-content p { font-size: 14px; color: var(--c-text-secondary); margin-top: 6px; line-height: 1.6; }

/* ====== Tutorials ====== */
.tutorials-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 64px; }
.step-card {
  padding: 20px; background: var(--c-bg-card); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); position: relative;
}
.step-number {
  font-size: 40px; font-weight: 800; color: var(--c-primary-light);
  position: absolute; top: 16px; right: 20px; line-height: 1;
}
.step-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.step-card > p { font-size: 14px; color: var(--c-text-secondary); margin-bottom: 16px; line-height: 1.6; }
.step-detail { padding: 14px; background: var(--c-bg-alt); border-radius: var(--radius); }
.step-detail h4 { font-size: 13px; font-weight: 600; color: var(--c-text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.step-detail ul { list-style: none; }
.step-detail li { font-size: 13px; color: var(--c-text-secondary); padding: 3px 0; padding-left: 16px; position: relative; }
.step-detail li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; background: var(--c-text-muted); border-radius: 50%; }

/* FAQ */
.tutorials-faq { max-width: 680px; margin: 0 auto; }
.tutorials-faq h3 { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 24px; }
.faq-item {
  border: 1px solid var(--c-border); border-radius: var(--radius);
  margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px; font-size: 15px; font-weight: 500; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--c-text-muted); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 20px 16px; font-size: 14px; color: var(--c-text-secondary); line-height: 1.7; }

/* ====== Download ====== */
.download-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 600px; margin: 0 auto; }
.download-card {
  padding: 36px 28px; background: var(--c-bg-card); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); text-align: center;
}
.download-icon { color: var(--c-primary); margin-bottom: 16px; }
.download-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.download-ver { display: block; font-size: 13px; color: var(--c-text-muted); margin-bottom: 20px; }
.download-hint { display: block; font-size: 12px; color: var(--c-text-muted); margin-top: 10px; }

/* ====== Footer ====== */
.footer { background: var(--c-bg-alt); border-top: 1px solid var(--c-border); padding: 56px 24px 32px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; text-align: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; }
.footer-links { display: flex; gap: 64px; justify-content: center; }
.footer-col { text-align: center; }
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--c-text-secondary); padding: 4px 0; }
.footer-col a:hover { color: var(--c-primary); }
.footer-bottom { max-width: var(--max-w); margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--c-border); text-align: center; }
.footer-bottom p { font-size: 13px; color: var(--c-text-muted); }

/* ====== Auth Modal ====== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  z-index: 500; display: none; align-items: center; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--c-bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 420px; max-width: 92vw; max-height: 90vh; overflow-y: auto; position: relative;
}
.auth-modal { padding: 0; }
.modal-close {
  position: absolute; top: 12px; right: 16px; background: none; border: none;
  font-size: 24px; color: var(--c-text-muted); cursor: pointer; z-index: 10; line-height: 1;
}
.modal-close:hover { color: var(--c-text); }

.auth-container { padding: 24px; }

.auth-tabs { display: flex; border-bottom: 2px solid var(--c-border); margin-bottom: 28px; }
.auth-tab {
  flex: 1; padding: 12px; text-align: center; background: none; border: none;
  font-size: 16px; font-weight: 600; color: var(--c-text-muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px; font-family: inherit;
  transition: all .15s;
}
.auth-tab.active { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.auth-tab:hover { color: var(--c-text); }

.auth-form { }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-group input, .form-group select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--c-border); border-radius: var(--radius);
  font-size: 14px; font-family: inherit; transition: border-color .15s; outline: none;
}
.form-group input:focus, .form-group select:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.input-row { display: flex; gap: 10px; }
.input-row input { flex: 1; }
.input-row .btn { flex-shrink: 0; white-space: nowrap; }

.auth-divider {
  display: flex; align-items: center; margin: 20px 0; color: var(--c-text-muted); font-size: 13px;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--c-border); }
.auth-divider span { padding: 0 14px; }

.wechat-qr { text-align: center; padding: 16px 0; }
.qr-placeholder { padding: 24px; background: var(--c-bg-alt); border-radius: var(--radius); }
.qr-placeholder p { font-size: 14px; color: var(--c-text-secondary); margin-bottom: 16px; }
.qr-code { width: 160px; height: 160px; background: #fff; margin: 0 auto; border: 1px solid var(--c-border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.qr-code canvas { width: 150px; height: 150px; }
.qr-hint { font-size: 12px !important; color: var(--c-text-muted) !important; margin-top: 12px !important; margin-bottom: 0 !important; }

.auth-terms { font-size: 12px; color: var(--c-text-muted); text-align: center; margin-top: 14px; }

/* ====== Toast ====== */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--c-text); color: #fff; padding: 12px 24px; border-radius: var(--radius);
  font-size: 14px; z-index: 1000; opacity: 0; transition: all .3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--c-danger); }
.toast.success { background: var(--c-success); }

/* ====== Responsive ====== */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: 32px; }
  .hero-stats { gap: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .versions-grid { grid-template-columns: 1fr; }
  .tutorials-steps { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--c-bg); border-bottom: 1px solid var(--c-border); padding: 12px 24px; gap: 4px; }
  .nav-toggle { display: flex; }
  .footer-inner { flex-direction: column; align-items: center; }
  .footer-links { gap: 32px; }
}
@media (max-width: 640px) {
  .hero { padding: 100px 16px 48px; }
  .hero-title { font-size: 28px; }
  .hero-buttons { flex-direction: column; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .section { padding: 48px 16px; }
  .section-header h2 { font-size: 24px; }
  .auth-container { padding: 24px; }
}


/* ====== Referral Banner ====== */
.referral-banner {
  padding: 64px 24px;
  background: linear-gradient(135deg, #312E81 0%, #4F46E5 40%, #7C3AED 100%);
  position: relative;
  overflow: hidden;
}
.referral-banner::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.referral-banner::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.referral-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Banner Header */
.referral-banner-header {
  text-align: center;
  margin-bottom: 48px;
}
.referral-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  background: rgba(255,255,255,.15);
  color: #FDE68A;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}
.referral-banner-header h2 {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -.3px;
}
.referral-banner-header h2 .text-gradient {
  background: linear-gradient(135deg, #FDE68A, #FCD34D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.referral-banner-header p {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  max-width: 480px;
  margin: 0 auto;
}

/* Flow Layout */
/* Flow Layout */
.referral-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 860px;
  margin: 0 auto 40px auto;

/* Flow Cards */
.flow-card {
  flex: 0 1 340px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform .2s, border-color .2s;
}
.flow-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.3);
}
.flow-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.flow-card-role {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
  background: rgba(255,255,255,.15);
  color: #E0E7FF;
}
.invited-role {
  background: rgba(253,230,138,.2);
  color: #FDE68A;
}
.flow-card-value {
  margin-bottom: 14px;
}
.flow-num {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.flow-unit {
  display: block;
  font-size: 15px;
  color: rgba(255,255,255,.7);
  margin-top: 4px;
  font-weight: 500;
}
.flow-card-desc {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  margin-bottom: 14px;
}
.flow-card-example {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  font-size: 13px;
  color: rgba(255,255,255,.8);
}

/* Connector */
.flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  flex-shrink: 0;
}
.flow-connector-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  border: 2px solid rgba(255,255,255,.5);
}
.flow-connector-line {
  width: 2px;
  flex: 1;
  min-height: 60px;
  background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.1), rgba(255,255,255,.5));
}

/* CTA */
.referral-banner-cta {
  text-align: center;
  margin-bottom: 18px;
}
.referral-banner-cta .btn {
  padding: 14px 40px;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(79,70,229,.4);
}

/* Footnote */
.referral-banner-footnote {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}

/* ====== Responsive: Referral Banner ====== */
@media (max-width: 900px) {
  .referral-flow {
    flex-direction: column;
    gap: 0;
  }
  .flow-connector {
    flex-direction: row;
    padding: 16px 0;
  }
  .flow-connector-line {
    width: 60px;
    height: 2px;
    min-height: unset;
    background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.5), rgba(255,255,255,.1));
  }
  .referral-banner-header h2 {
    font-size: 26px;
  }
  .flow-card {
    flex: 0 1 auto;
    width: 100%;
    max-width: 340px;
  }
}
@media (max-width: 640px) {
  .referral-banner {
    padding: 48px 16px;
  }
  .referral-banner-header h2 {
    font-size: 22px;
  }
  .flow-num {
    font-size: 40px;
  }
}


/* ====== Antivirus Notice ====== */
.antivirus-notice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-lg);
  max-width: 720px;
  margin: 0 auto;
}
.antivirus-notice-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1.4;
}
.antivirus-notice-body strong {
  display: block;
  font-size: 15px;
  color: #92400E;
  margin-bottom: 6px;
}
.antivirus-notice-body p {
  font-size: 14px;
  color: #A16207;
  line-height: 1.7;
  margin: 0;
}
