/* ==========================================
   VIP SIGNAL ACCESS - REFERRAL LANDING PAGE
   Premium fintech - Bloomberg Terminal x DeFi
   ========================================== */

/* --- Core Container --- */
.referral-landing {
  display: none;
  position: relative;
  min-height: 100dvh;
  background: var(--bg-void);
  overflow-x: hidden;
}

.referral-landing.active {
  display: block;
}

/* Animated grid overlay */
.rl-grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,229,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 15%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 15%, transparent 60%);
}

/* Radial glow behind trader */
.rl-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,229,255,0.06) 0%, rgba(168,85,247,0.03) 30%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: rlGlowPulse 6s ease-in-out infinite;
}

@keyframes rlGlowPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* Floating particles on landing */
.rl-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.rl-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--accent-cyan);
  opacity: 0;
  animation: rlParticleFloat linear infinite;
}

@keyframes rlParticleFloat {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-10vh) translateX(50px); opacity: 0; }
}

/* --- Hero / Trader Identity --- */
.rl-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 100px var(--space-6) 48px;
  max-width: 720px;
  margin: 0 auto;
}

/* Avatar */
.rl-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-5);
}

.rl-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(0,229,255,0.4);
  box-shadow: 0 0 40px rgba(0,229,255,0.25), 0 0 80px rgba(0,229,255,0.1), 0 0 120px rgba(168,85,247,0.06);
  background: var(--bg-surface);
  transition: all 0.5s var(--ease-spring);
}

.rl-avatar-wrap:hover .rl-avatar {
  transform: scale(1.05);
  box-shadow: 0 0 60px rgba(0,229,255,0.35), 0 0 100px rgba(0,229,255,0.15), 0 0 150px rgba(168,85,247,0.1);
}

/* Verified badge */
.rl-verified-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2.5px solid var(--bg-void);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0,229,255,0.4);
  animation: rlBadgePulse 2s ease-in-out infinite;
}

@keyframes rlBadgePulse {
  0%, 100% { box-shadow: 0 0 12px rgba(0,229,255,0.4); }
  50% { box-shadow: 0 0 20px rgba(0,229,255,0.7); }
}

.rl-verified-badge svg {
  width: 14px;
  height: 14px;
}

/* Name */
.rl-name {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-shadow: 0 0 40px rgba(0,229,255,0.15);
}

.rl-name svg {
  width: 22px;
  height: 22px;
  color: var(--accent-cyan);
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(0,229,255,0.5));
}

/* Handle */
.rl-handle {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* Share Referral Link Button */
.rl-share-btn {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(0,229,255,0.2);
  background: rgba(0,229,255,0.05);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: var(--space-5);
  line-height: 1.4;
  max-height: 26px;
  overflow: hidden;
  white-space: nowrap;
}

.rl-share-btn:hover {
  background: rgba(0,229,255,0.12);
  border-color: rgba(0,229,255,0.4);
}

.rl-handle a {
  color: var(--accent-cyan);
  opacity: 0.7;
  transition: var(--transition-fast);
}

.rl-handle a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Live pulse */
.rl-live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-6);
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(0,229,160,0.06);
  border: 1px solid rgba(0,229,160,0.15);
  backdrop-filter: blur(10px);
}

.rl-live-pulse .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(0,229,160,0.6);
  animation: rlPulse 2s infinite;
}

.rl-live-pulse .label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--success);
  font-family: var(--font-mono);
}

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

/* --- Stats Row --- */
.rl-stats-row {
  display: flex;
  justify-content: center;
  gap: var(--space-10);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.rl-stat {
  text-align: center;
  min-width: 120px;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all var(--transition-spring);
}

.rl-stat:hover {
  background: rgba(0,229,255,0.04);
  border-color: rgba(0,229,255,0.12);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 20px rgba(0,229,255,0.06);
}

.rl-stat .value {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.rl-stat .value.cyan {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rl-stat .value.green {
  color: var(--success);
}

.rl-stat .label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 10px;
  font-weight: 600;
  font-family: var(--font-mono);
}

/* Divider */
.rl-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  margin: 0 auto var(--space-8);
  max-width: 500px;
  position: relative;
  z-index: 1;
}

/* --- Section Labels --- */
.rl-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: var(--space-5);
}

.rl-section-label .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(0,229,160,0.5);
  animation: rlPulse 2s infinite;
}

.rl-section-label.cyan {
  color: var(--accent-cyan);
}

/* --- History Section (Real DexScreener SOL Memecoins) --- */
.rl-history-section {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-6) var(--space-12);
}

.rl-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.rl-history-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

/* History header with legend */
.rl-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.rl-history-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-family: var(--font-mono);
}

.rl-history-legend .legend-profit {
  color: var(--success);
  font-weight: 600;
}

.rl-history-legend .legend-loss {
  color: var(--danger);
  font-weight: 600;
}

.rl-history-legend .legend-sep {
  color: var(--text-muted);
}

.rl-history-loading {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-size: 13px;
}

/* History table rows */
.rl-h-row {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 0.8fr 0.8fr 0.8fr;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background var(--transition-fast);
}

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

.rl-h-row:hover {
  background: rgba(0,229,255,0.02);
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 8px;
}

/* Header row */
.rl-h-row.rl-h-header {
  padding: 0 0 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.rl-h-row.rl-h-header span {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Token cell with image */
.rl-h-token {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rl-h-token-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0,229,255,0.12);
  background: var(--bg-card);
  flex-shrink: 0;
}

.rl-h-token-fallback {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,229,255,0.1), rgba(168,85,247,0.08));
  border: 1px solid rgba(0,229,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.rl-h-token-info { min-width: 0; }

.rl-h-token-info .name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rl-h-token-info .sym {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* CA cell */
.rl-h-ca {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
  max-width: 140px;
}

.rl-h-ca:hover {
  border-color: rgba(0,229,255,0.2);
  background: rgba(0,229,255,0.04);
}

.rl-h-ca span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rl-h-ca svg {
  width: 11px;
  height: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Amount cells */
.rl-h-amt {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.rl-h-amt.sold {
  color: var(--success);
  font-weight: 600;
}

.rl-h-amt.loss {
  color: var(--danger);
  font-weight: 600;
}

/* Profit/Loss cell */
.rl-h-profit {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--success);
  text-align: right;
}

.rl-h-profit.high {
  color: #00E5A0;
  text-shadow: 0 0 12px rgba(0,229,160,0.25);
}

.rl-h-profit.extreme {
  color: var(--success);
  text-shadow: 0 0 16px rgba(0,229,160,0.35);
}

.rl-h-profit.loss {
  color: var(--danger);
  text-shadow: 0 0 12px rgba(255,51,102,0.25);
}

/* --- Gain Table --- */
.rl-gainers-section {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-6) var(--space-12);
}

.rl-gainers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.rl-gainers-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.rl-gainers-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

/* Table */
.rl-gainers-table-wrap {
  background: linear-gradient(180deg, rgba(10,10,18,0.95), rgba(6,6,10,0.98));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(0,229,255,0.08);
  transition: box-shadow 0.4s var(--ease-smooth);
}

.rl-gainers-table-wrap:hover {
  box-shadow: 0 12px 48px rgba(0,0,0,0.5), inset 0 1px 0 rgba(0,229,255,0.12), 0 0 40px rgba(0,229,255,0.04);
}

.rl-gainers-table-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.3), var(--accent-purple), rgba(0,229,255,0.3), transparent);
}

.rl-gainers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.rl-gainers-table thead th {
  padding: 14px 18px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,229,255,0.02);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.rl-gainers-table thead th:last-child {
  text-align: right;
}

.rl-gainers-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.02);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.rl-gainers-table tbody tr:hover {
  background: rgba(0,229,255,0.04);
}

.rl-gainers-table tbody tr:last-child {
  border-bottom: none;
}

.rl-gainers-table td {
  padding: 12px 18px;
  white-space: nowrap;
  vertical-align: middle;
}

.rl-gainers-table td:last-child {
  text-align: right;
}

/* Token cell */
.rl-token-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rl-token-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,229,255,0.1), rgba(168,85,247,0.08));
  border: 1px solid rgba(0,229,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0,229,255,0.1);
}

.rl-token-info {
  min-width: 0;
}

.rl-token-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.rl-token-symbol {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.rl-price {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.rl-gain {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
}

.rl-gain.extreme {
  color: var(--success);
  text-shadow: 0 0 20px rgba(0,229,160,0.3);
}

.rl-gain.high {
  color: #00E5A0;
}

.rl-gain.medium {
  color: var(--accent-cyan);
}

.rl-age {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.rl-liquidity {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

/* Loading */
.rl-loading-row td {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 14px;
}

.rl-loading-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-light);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: rlSpin 0.8s linear infinite;
  margin-right: 10px;
  vertical-align: middle;
}

@keyframes rlSpin {
  to { transform: rotate(360deg); }
}

/* --- Duration Section --- */
.rl-duration-section {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--space-6) var(--space-12);
}

.rl-duration-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.rl-duration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.rl-duration-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  cursor: pointer;
  transition: all var(--transition-spring);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rl-duration-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.rl-duration-card:hover {
  border-color: rgba(0,229,255,0.3);
  background: linear-gradient(145deg, rgba(0,229,255,0.06), rgba(0,229,255,0.02));
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,229,255,0.12), 0 0 0 1px rgba(0,229,255,0.1);
}

.rl-duration-card:hover::before {
  opacity: 1;
}

.rl-duration-card.selected {
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(168,85,247,0.08));
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0,229,255,0.2), 0 0 0 1px rgba(0,229,255,0.25);
  transform: scale(1.04) translateY(-4px);
}

.rl-duration-card.selected::before {
  opacity: 1;
}

.rl-duration-card .days {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.rl-duration-card .gain-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 2px;
}

.rl-duration-card .gain-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.rl-duration-card .min-amt {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.rl-duration-card .min-value {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.rl-rec-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  background: var(--gradient-primary);
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,229,255,0.3);
}

/* Duration validation */
.rl-dur-validation {
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(135deg, rgba(255,51,102,0.08), rgba(255,176,32,0.04));
  border: 1px solid rgba(255,51,102,0.25);
  border-radius: var(--radius-lg);
  display: none;
  align-items: center;
  gap: var(--space-3);
  box-shadow: 0 4px 24px rgba(255,51,102,0.1);
  animation: valAppear 0.35s var(--ease-spring);
}

.rl-dur-validation.visible {
  display: flex;
}

.rl-dur-validation svg {
  width: 18px;
  height: 18px;
  color: var(--danger);
  flex-shrink: 0;
}

.rl-dur-validation p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* --- CTA Section --- */
.rl-cta-section {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--space-6) var(--space-10);
  text-align: center;
}

.rl-cta-primary {
  width: 100%;
  padding: 20px 32px;
  border-radius: var(--radius-lg);
  border: none;
  background: var(--gradient-primary);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition-spring);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: var(--space-4);
  box-shadow: 0 4px 24px rgba(0,229,255,0.4), 0 0 0 1px rgba(0,229,255,0.2), 0 0 60px rgba(0,229,255,0.1);
  text-transform: uppercase;
  white-space: nowrap;
}

.rl-cta-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
}

.rl-cta-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 32px rgba(0,229,255,0.55), 0 0 0 1px rgba(0,229,255,0.3), 0 0 80px rgba(0,229,255,0.2);
}

.rl-cta-primary:hover::after {
  animation: shimmerSweep 0.6s ease;
}

.rl-cta-primary:active {
  transform: translateY(-1px) scale(1.01);
}

.rl-cta-primary svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.2));
}

.rl-cta-secondary {
  width: 100%;
  padding: 16px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.03);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-spring);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  backdrop-filter: blur(20px);
  letter-spacing: 0.02em;
}

.rl-cta-secondary:hover {
  border-color: var(--border-glow);
  background: rgba(0,229,255,0.06);
  color: var(--text-primary);
  box-shadow: 0 0 20px rgba(0,229,255,0.08);
  transform: translateY(-2px);
}

/* --- Trust Bar --- */
.rl-trust-bar {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--space-6) var(--space-10);
  display: flex;
  justify-content: center;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.rl-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.rl-trust-item:hover {
  color: var(--text-secondary);
}

.rl-trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--success);
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(0,229,160,0.3));
}

/* --- Footer Note --- */
.rl-footer-note {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 var(--space-6) var(--space-10);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
  opacity: 0.6;
}

/* --- Scrollbar --- */
.rl-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.rl-table-scroll::-webkit-scrollbar {
  height: 4px;
}

.rl-table-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.rl-table-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}

/* --- Animations --- */
@keyframes rlFadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

.rl-animate-in {
  animation: rlFadeInUp 0.7s var(--ease-spring) both;
}

.rl-delay-1 { animation-delay: 0.1s; }
.rl-delay-2 { animation-delay: 0.2s; }
.rl-delay-3 { animation-delay: 0.3s; }
.rl-delay-4 { animation-delay: 0.4s; }
.rl-delay-5 { animation-delay: 0.5s; }

/* Scanline effect overlay */
.rl-scanlines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,229,255,0.003) 2px,
    rgba(0,229,255,0.003) 4px
  );
}

/* --- RESPONSIVE --- */
@media (max-width: 767px) {
  .rl-hero {
    padding: 80px var(--space-4) 36px;
  }

  .rl-name {
    font-size: 26px;
  }

  .rl-avatar {
    width: 80px;
    height: 80px;
  }

  .rl-stats-row {
    gap: var(--space-4);
  }

  .rl-stat {
    min-width: 90px;
    padding: var(--space-3) var(--space-4);
  }

  .rl-stat .value {
    font-size: 24px;
  }

  .rl-history-section {
    padding: 0 var(--space-4) var(--space-8);
  }

  .rl-h-row {
    grid-template-columns: 1.4fr 1fr 0.7fr 0.7fr;
    gap: 8px;
  }

  .rl-h-row.rl-h-header span:nth-child(2),
  .rl-h-row .rl-h-ca {
    display: none;
  }

  .rl-duration-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .rl-cta-section,
  .rl-duration-section {
    padding: 0 var(--space-4) var(--space-8);
  }

  .rl-cta-primary,
  .rl-cta-secondary {
    font-size: 13px;
    padding: 16px 20px;
  }

  .rl-trust-bar {
    gap: var(--space-6);
  }
}

@media (max-width: 479px) {
  .rl-avatar {
    width: 72px;
    height: 72px;
  }

  .rl-name {
    font-size: 22px;
    flex-direction: column;
    gap: 6px;
  }

  .rl-stats-row {
    gap: var(--space-3);
  }

  .rl-stat {
    min-width: 75px;
    padding: var(--space-2) var(--space-3);
  }

  .rl-stat .value {
    font-size: 20px;
  }

  .rl-duration-grid {
    gap: 8px;
  }

  .rl-duration-card {
    padding: var(--space-3);
  }

  .rl-duration-card .days {
    font-size: 13px;
  }

  .rl-duration-card .gain-value {
    font-size: 12px;
  }

  .rl-cta-primary {
    font-size: 12px;
    letter-spacing: 0.02em;
  }
}
