/* ==========================================================================
   OKX Global Affiliate Promotional Portal - Design System
   Color Palette: Deep Space Dark (#0B0D12), Card (#131722), Accent (#00D2A0 / #2E70FF)
   ========================================================================== */

:root {
  --bg-primary: #080a0f;
  --bg-secondary: #0f131d;
  --bg-card: #151a26;
  --bg-card-hover: #1c2233;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 210, 160, 0.4);
  --text-primary: #ffffff;
  --text-secondary: #9aa4bf;
  --text-muted: #64708d;
  --okx-green: #00D2A0;
  --okx-green-glow: rgba(0, 210, 160, 0.25);
  --okx-blue: #2E70FF;
  --okx-gold: #FFB800;
  --okx-red: #F6465D;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --container-max: 1200px;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 35px rgba(0, 210, 160, 0.2);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background: radial-gradient(circle at 50% -20%, rgba(46, 112, 255, 0.12) 0%, rgba(8, 10, 15, 0) 50%),
              radial-gradient(circle at 85% 25%, rgba(0, 210, 160, 0.08) 0%, rgba(8, 10, 15, 0) 40%),
              var(--bg-primary);
}

/* Typography Helpers */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Notice Bar (Compliance & Official Partner Banner) */
.compliance-bar {
  background: linear-gradient(90deg, #10141e 0%, #161c2b 50%, #10141e 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

.compliance-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.compliance-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 210, 160, 0.12);
  color: var(--okx-green);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 12px;
}

.compliance-link {
  color: var(--okx-green);
  text-decoration: underline;
  cursor: pointer;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 10, 15, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-badge {
  font-size: 10px;
  background: linear-gradient(135deg, #00D2A0, #2E70FF);
  color: #000;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

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

.nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--okx-green);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.invite-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
}

.invite-pill .code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--okx-green);
  letter-spacing: 0.5px;
}

.btn-mini-copy {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
  transition: color var(--transition-fast);
}

.btn-mini-copy:hover {
  color: var(--text-primary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #00D2A0 0%, #00B388 100%);
  color: #080A0F;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 18px rgba(0, 210, 160, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 210, 160, 0.5);
  color: #000;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 70px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 112, 255, 0.1);
  border: 1px solid rgba(46, 112, 255, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

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

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

.hero-badge-text {
  font-size: 13px;
  font-weight: 600;
  color: #8bb2ff;
}

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

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #85b0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-accent {
  background: linear-gradient(135deg, #00D2A0 0%, #3bf0be 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Invite Code Action Box */
.invite-box-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.invite-box-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--okx-green), var(--okx-blue));
}

.invite-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.invite-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.invite-benefit-tag {
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 210, 160, 0.15);
  color: var(--okx-green);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.invite-box-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #0b0e16;
  border: 1px dashed rgba(0, 210, 160, 0.4);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.code-display {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(0, 210, 160, 0.3);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1c2333;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  background: var(--okx-green);
  color: #000;
  border-color: var(--okx-green);
}

.btn-copy.copied {
  background: var(--okx-green);
  color: #000;
  border-color: var(--okx-green);
}

.hero-cta-group {
  display: flex;
  gap: 14px;
}

.hero-cta-group .btn-primary {
  flex: 1.2;
  font-size: 16px;
  padding: 14px 28px;
}

.hero-cta-group .btn-secondary {
  flex: 1;
  font-size: 15px;
  padding: 14px 24px;
}

/* Trust Bar / Guarantee Points */
.trust-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 10px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.trust-item svg {
  color: var(--okx-green);
  flex-shrink: 0;
}

/* Hero Right Column: QR Code & Visual Card */
.hero-visual {
  display: flex;
  justify-content: center;
}

.qr-master-card {
  background: linear-gradient(160deg, #171c29 0%, #10141f 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  text-align: center;
  width: 100%;
  max-width: 380px;
  position: relative;
}

.qr-master-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 210, 160, 0.4), transparent, rgba(46, 112, 255, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.qr-header-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.qr-header-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.qr-image-wrapper {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  margin: 0 auto 20px;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.qr-image-wrapper img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.qr-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 210, 160, 0.12);
  border: 1px solid rgba(0, 210, 160, 0.25);
  color: var(--okx-green);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.qr-footnote {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
}

/* Section Common Styles */
.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

.section-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--okx-green);
  background: rgba(0, 210, 160, 0.1);
  border: 1px solid rgba(0, 210, 160, 0.2);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Live Market Ticker Strip */
.market-strip-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 0;
  overflow: hidden;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.market-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.market-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.coin-meta {
  display: flex;
  flex-direction: column;
}

.coin-symbol {
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.coin-pair {
  font-size: 11px;
  color: var(--text-muted);
}

.coin-price-wrap {
  text-align: right;
}

.coin-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
}

.coin-change {
  font-size: 12px;
  font-weight: 600;
}

.change-up {
  color: var(--okx-green);
}

.change-down {
  color: var(--okx-red);
}

/* Exclusive Benefits Cards */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.benefit-card:hover {
  transform: translateY(-6px);
  border-color: var(--okx-green);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(0, 210, 160, 0.15);
}

.benefit-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(0, 210, 160, 0.1);
  border: 1px solid rgba(0, 210, 160, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--okx-green);
}

.benefit-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.benefit-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.benefit-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--okx-green);
  background: rgba(0, 210, 160, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* Interactive Calculator & Comparison Section */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

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

.calc-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.calc-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.slider-wrapper {
  margin-bottom: 30px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

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

.slider-val {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--okx-green);
}

.range-input {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #252b3d;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--okx-green);
  box-shadow: 0 0 12px var(--okx-green);
  cursor: pointer;
  transition: transform 0.1s;
}

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

.calc-results-box {
  background: #0e121b;
  border: 1px solid rgba(0, 210, 160, 0.25);
  border-radius: var(--radius-md);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.result-item-title {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.result-item-val {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
}

.result-item-val.highlight {
  color: var(--okx-green);
}

/* Comparison Table */
.comparison-table-wrap {
  overflow-x: auto;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comp-table th, .comp-table td {
  padding: 16px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.comp-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comp-table th.highlight-col {
  color: var(--okx-green);
  background: rgba(0, 210, 160, 0.06);
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
}

.comp-table td.highlight-col {
  background: rgba(0, 210, 160, 0.04);
  font-weight: 700;
  color: #ffffff;
}

/* 4-Step Registration Guide */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  position: relative;
  transition: transform var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
  line-height: 1;
  margin-bottom: 14px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-badge {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--okx-green);
  background: rgba(0, 210, 160, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* OKX Ecosystem / Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 112, 255, 0.4);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(46, 112, 255, 0.12);
  color: var(--okx-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Security & PoR Section */
.security-banner {
  background: linear-gradient(135deg, #121826 0%, #0d121c 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.security-content h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
}

.security-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.security-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.metric-item .val {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: var(--okx-green);
}

.metric-item .lbl {
  font-size: 12px;
  color: var(--text-muted);
}

/* Download Center */
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.download-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 30px;
}

.d-tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.d-tab-btn.active, .d-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.d-tab-btn.active {
  background: var(--okx-green);
  color: #000;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.d-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.d-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.d-step-item {
  display: flex;
  gap: 14px;
  font-size: 14px;
  color: var(--text-secondary);
}

.d-step-item strong {
  color: #fff;
}

.d-step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(46, 112, 255, 0.2);
  color: var(--okx-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* FAQ Accordion */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
  color: var(--text-muted);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--okx-green);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
}

.faq-answer-inner {
  padding-bottom: 22px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* CTA Footer Strip */
.final-cta-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #0e131d 100%);
  text-align: center;
}

.final-cta-box {
  background: linear-gradient(135deg, rgba(0, 210, 160, 0.1) 0%, rgba(46, 112, 255, 0.1) 100%);
  border: 1px solid rgba(0, 210, 160, 0.3);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  max-width: 880px;
  margin: 0 auto;
}

.final-cta-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.final-cta-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Footer & Compliance Disclaimers */
.site-footer {
  background: #05070a;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 110px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--okx-green);
}

.footer-disclaimer-box {
  background: #0a0d14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.footer-disclaimer-box h4 {
  color: #ff9800;
  font-size: 13px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

/* Sticky Bottom Bar on Mobile */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(10, 13, 20, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 20px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
}

.mobile-sticky-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-code-wrap {
  display: flex;
  flex-direction: column;
}

.mobile-code-lbl {
  font-size: 10px;
  color: var(--text-muted);
}

.mobile-code-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--okx-green);
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #00D2A0;
  color: #000;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 210, 160, 0.4);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
}

.modal-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.modal-body h4 {
  color: #fff;
  font-size: 15px;
  margin: 16px 0 8px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    order: -1;
  }
  .qr-master-card {
    max-width: 340px;
  }
  .calc-grid {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }
  .security-banner {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .mobile-menu-active .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .hero-title {
    font-size: 34px;
  }
  .code-display {
    font-size: 24px;
  }
  .hero-cta-group {
    flex-direction: column;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .security-metrics {
    grid-template-columns: 1fr;
  }
  .d-content-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .mobile-sticky-bar {
    display: block;
  }
  body {
    padding-bottom: 70px;
  }
}
