/* ============================================================
   Referral Center — Premium Dark + Gold + Tier-aware
   Mirrors wallet.css design system exactly.
   - Same radius, shadow, blur, border, glow
   - Same typography scale
   - Same tier color system (--tier-color / --tier-rgb)
   - RTL via logical properties
   - GPU-friendly micro animations
   ============================================================ */

/* #region Tokens & Base */
/* ============================================================================ */
.referral-full-page {
  --rc-bg: #020611;
  --rc-card: #0B1220;
  --rc-card-2: #0F1828;
  --rc-accent: #F5A623;
  --rc-accent-2: #FFCC4D;
  --rc-gold-1: #FFE08A;
  --rc-gold-2: #F5D060;
  --rc-gold-3: #D4AF37;
  --rc-text: #FFFFFF;
  --rc-text-2: #AEB7C2;
  --rc-text-dim: #6B7A8D;
  --rc-text-sub: #6B7A8D;
  --rc-green: #00C896;
  --rc-red: #FF4D4D;
  --rc-blue: #60A5FA;
  --rc-orange: #F97316;
  --rc-tier-color: #CD7F32;
  --rc-tier-rgb: 205, 127, 50;
  --rc-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --rc-ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --rc-skeleton: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);

  /* Map to tier-aware vars (used by hero) */
  --tier-color: var(--rc-tier-color);
  --tier-rgb: var(--rc-tier-rgb);
}

/* Keyframes */
@keyframes rcFadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes rcSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes rcShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes rcHeroGlowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 0.85; transform: scale(1.08); }
}
@keyframes rcOrbFloat {
  0%, 100% { transform: translate(0, 0); }
  33%      { transform: translate(20px, -12px); }
  66%      { transform: translate(-14px, 8px); }
}
@keyframes rcGridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}
@keyframes rcWheelPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,166,35,0.25); }
  50%      { box-shadow: 0 0 0 8px rgba(245,166,35,0); }
}
@keyframes rcDotBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
@keyframes rcBadgePop {
  0%   { transform: scale(0.5); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes rcMedalSpin {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}
@keyframes rcHistSlideIn {
  0%   { opacity: 0; transform: translateX(-12px); }
  100% { opacity: 1; transform: translateX(0); }
}
[dir="rtl"] @keyframes rcHistSlideIn {
  0%   { opacity: 0; transform: translateX(12px); }
  100% { opacity: 1; transform: translateX(0); }
}
/* #endregion */

/* #region Full-page overlay */
/* ============================================================================ */
.referral-full-page {
  position: fixed; inset: 0; z-index: 10002;
  background: var(--rc-bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: none;
  padding: 0;
  animation: rcSlideUp 0.32s var(--rc-ease);
  font-family: inherit;
  color: var(--rc-text);
}
.referral-full-page.open { display: block; }
[dir="rtl"] .referral-full-page { direction: rtl; }
[dir="ltr"] .referral-full-page { direction: ltr; }

.rc-footer-spacer { height: max(24px, env(safe-area-inset-bottom)); }
/* #endregion */

/* #region Header */
/* ============================================================================ */
.rc-header {
  display: flex; align-items: center; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 16px 14px;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: sticky; top: 0; z-index: 10;
}
.rc-back-btn {
  width: 38px; height: 38px; border-radius: 11px; border: none;
  background: rgba(255,255,255,0.05); color: var(--rc-text-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.22s var(--rc-ease-soft); flex-shrink: 0;
}
.rc-back-btn svg { width: 20px; height: 20px; }
.rc-back-btn:hover { background: rgba(245,166,35,0.12); color: var(--rc-accent); transform: scale(1.05); }
.rc-back-btn:active { transform: scale(0.92); }
[dir="rtl"] .rc-back-btn svg { transform: scaleX(-1); }

.rc-header-text { flex: 1; min-width: 0; }
.rc-header-text h2 {
  font-size: 17px; font-weight: 800; color: var(--rc-text); margin: 0;
  letter-spacing: -0.2px;
}
.rc-header-spacer { width: 38px; flex-shrink: 0; }
/* #endregion */

/* #region Brand Quote */
/* ============================================================================ */
.rc-brand-quote {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px 6px;
  animation: rcFadeIn 0.5s var(--rc-ease) 0.05s both;
}
.rc-brand-quote-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,166,35,0.25), transparent);
}
.rc-brand-quote p {
  font-size: 12px; font-weight: 700;
  background: linear-gradient(90deg, var(--rc-accent), var(--rc-gold-1));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center; white-space: nowrap;
  letter-spacing: 0.2px;
}
[dir="rtl"] .rc-brand-quote p { white-space: normal; line-height: 1.5; }
/* #endregion */

/* #region Hero Card (Premium) */
/* ============================================================================ */
.rc-hero {
  position: relative; overflow: hidden;
  margin: 12px 16px 16px;
  border-radius: 24px;
  padding: 22px 20px;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(var(--tier-rgb), 0.10), transparent 55%),
    linear-gradient(145deg, var(--rc-card-2) 0%, var(--rc-card) 55%, var(--rc-card-2) 100%);
  border: 1px solid rgba(var(--tier-rgb), 0.28);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(var(--tier-rgb), 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: rcFadeIn 0.55s var(--rc-ease) 0.1s both;
}

/* Animated background layers */
.rc-hero-bg-1 {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 20% 0%, rgba(245,166,35,0.08), transparent 40%);
}
.rc-hero-bg-2 {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 80% 100%, rgba(var(--tier-rgb), 0.08), transparent 40%);
}
.rc-hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(40px);
  animation: rcOrbFloat 14s ease-in-out infinite;
}
.rc-hero-orb-1 {
  width: 160px; height: 160px; top: -60px; inset-inline-end: -40px;
  background: radial-gradient(circle, rgba(245,166,35,0.18), transparent 70%);
}
.rc-hero-orb-2 {
  width: 120px; height: 120px; bottom: -40px; inset-inline-start: -20px;
  background: radial-gradient(circle, rgba(var(--tier-rgb), 0.14), transparent 70%);
  animation-delay: -6s;
}
.rc-hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  animation: rcGridDrift 30s linear infinite;
}

.rc-hero > * { position: relative; z-index: 1; }

.rc-hero-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
}
.rc-hero-league { display: flex; align-items: center; gap: 10px; }
.rc-hero-league-icon {
  width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid; box-shadow: 0 4px 14px rgba(var(--tier-rgb), 0.30);
}
.rc-hero-league-icon svg { width: 22px; height: 22px; }
.rc-hero-league-info { min-width: 0; }
.rc-hero-league-label {
  font-size: 10px; font-weight: 600; color: var(--rc-text-sub);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.rc-hero-league-name {
  font-size: 15px; font-weight: 800; letter-spacing: -0.2px;
}
.rc-hero-illustration { flex-shrink: 0; opacity: 0.95; }
.rc-hero-illustration svg { display: block; }

.rc-hero-earned { margin-bottom: 18px; }
.rc-hero-earned-label {
  font-size: 11px; font-weight: 600; color: var(--rc-text-sub);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}
.rc-hero-earned-row {
  display: flex; align-items: center; gap: 10px;
}
.rc-hero-token-logo {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; box-shadow: 0 4px 14px rgba(245,166,35,0.30);
  border: 1.5px solid rgba(245,166,35,0.45);
}
.rc-hero-token-logo img { width: 100%; height: 100%; object-fit: cover; }
.rc-hero-earned-value {
  font-size: 30px; font-weight: 800; color: var(--rc-accent);
  font-variant-numeric: tabular-nums; letter-spacing: -0.5px;
  line-height: 1;
}
.rc-hero-earned-ticker {
  font-size: 14px; font-weight: 700; color: var(--rc-text-2);
  align-self: flex-end; padding-bottom: 3px;
}

/* Hero Stats Row */
.rc-hero-stats {
  display: flex; align-items: stretch; gap: 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 12px 6px;
  margin-bottom: 16px;
}
.rc-hero-stat {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 3px; padding: 0 6px;
}
.rc-hero-stat-icon { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.rc-hero-stat-icon svg { width: 16px; height: 16px; }
.rc-hero-stat-icon.rc-color-green { color: var(--rc-green); }
.rc-hero-stat-icon.rc-color-gold { color: var(--rc-accent); }
.rc-hero-stat-value {
  font-size: 16px; font-weight: 800; color: var(--rc-text);
  font-variant-numeric: tabular-nums; letter-spacing: -0.3px;
}
.rc-hero-stat-label {
  font-size: 10px; color: var(--rc-text-sub); font-weight: 600;
  text-align: center; line-height: 1.2;
}
.rc-hero-stat-divider {
  width: 1px; background: rgba(255,255,255,0.05); margin: 4px 0;
}

/* League Progress */
.rc-hero-progress { margin-bottom: 16px; }
.rc-hero-progress-info {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.rc-hero-progress-text { font-size: 11px; color: var(--rc-text-2); font-weight: 600; }
.rc-hero-progress-next {
  display: flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 700; color: var(--tier-color);
}
.rc-hero-progress-next svg { width: 12px; height: 12px; }
[dir="rtl"] .rc-hero-progress-next svg { transform: scaleX(-1); }
.rc-hero-progress-bar {
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}
.rc-hero-progress-fill {
  height: 100%; border-radius: 3px;
  transition: width 1.0s var(--rc-ease);
  box-shadow: 0 0 10px rgba(var(--tier-rgb), 0.5);
}

/* Hero Actions */
.rc-hero-actions { display: flex; gap: 10px; }
.rc-hero-btn {
  flex: 1; height: 44px; border-radius: 13px; border: none;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: all 0.22s var(--rc-ease-soft);
  letter-spacing: -0.1px;
}
.rc-hero-btn svg { width: 16px; height: 16px; }
.rc-hero-btn-primary {
  background: linear-gradient(135deg, var(--rc-accent), var(--rc-accent-2));
  color: #020611;
  box-shadow: 0 4px 14px rgba(245,166,35,0.30), inset 0 1px 0 rgba(255,255,255,0.25);
}
.rc-hero-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(245,166,35,0.40), inset 0 1px 0 rgba(255,255,255,0.3);
}
.rc-hero-btn-primary:active { transform: scale(0.97); }
.rc-hero-btn-secondary {
  background: rgba(245,166,35,0.10); color: var(--rc-accent);
  border: 1px solid rgba(245,166,35,0.22);
}
.rc-hero-btn-secondary:hover {
  background: rgba(245,166,35,0.18);
  border-color: rgba(245,166,35,0.4);
}
.rc-hero-btn-secondary:active { transform: scale(0.97); }
/* #endregion */

/* #region Sections */
/* ============================================================================ */
.rc-section { margin: 0 16px 16px; }

.rc-section-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; padding: 0 2px;
}
.rc-section-header h3 {
  font-size: 14px; font-weight: 700; color: var(--rc-text); margin: 0;
  display: flex; align-items: center; gap: 6px; letter-spacing: -0.2px;
}
.rc-section-header svg { width: 16px; height: 16px; color: var(--rc-accent); }
/* #endregion */

/* #region Link Card — Premium with QR Panel */
/* ============================================================================ */
.rc-link-card {
  display: flex; align-items: stretch; gap: 12px;
  background: var(--rc-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px; padding: 14px;
  animation: rcFadeIn 0.5s var(--rc-ease) 0.15s both;
  transition: border-color 0.22s ease;
}
.rc-link-card:hover { border-color: rgba(245,166,35,0.18); }
.rc-link-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.rc-link-icon-wrap { position: relative; flex-shrink: 0; }
.rc-link-icon-glow {
  position: absolute; inset: -4px; border-radius: 14px;
  background: radial-gradient(circle, rgba(245,166,35,0.20), transparent 70%);
  filter: blur(8px);
}
.rc-link-icon {
  position: relative; z-index: 1;
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(245,166,35,0.15), rgba(245,166,35,0.05));
  border: 1px solid rgba(245,166,35,0.22);
  display: flex; align-items: center; justify-content: center;
  color: var(--rc-accent);
}
.rc-link-icon svg { width: 20px; height: 20px; }
.rc-link-info { flex: 1; min-width: 0; }
.rc-link-label {
  font-size: 10px; color: var(--rc-text-sub); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px;
}
.rc-link-input {
  width: 100%; border: none; background: transparent;
  color: var(--rc-text-2); font-size: 12px; font-family: inherit;
  outline: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-bottom: 6px;
}
.rc-link-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; color: var(--rc-text-sub); font-weight: 600;
}
.rc-link-meta-item {
  display: inline-flex; align-items: center; gap: 4px;
}
.rc-link-meta-item svg { width: 11px; height: 11px; }
.rc-link-meta-active { color: var(--rc-accent); }
.rc-link-meta-divider { width: 1px; height: 10px; background: rgba(255,255,255,0.08); }
.rc-link-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.rc-link-action-btn {
  width: 38px; height: 38px; border-radius: 11px; border: none;
  background: rgba(245,166,35,0.10); color: var(--rc-accent);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.22s var(--rc-ease-soft);
}
.rc-link-action-btn svg { width: 16px; height: 16px; }
.rc-link-action-btn:hover {
  background: rgba(245,166,35,0.20); transform: scale(1.05);
}
.rc-link-action-btn:active { transform: scale(0.92); }
.rc-link-action-success {
  background: rgba(0,200,150,0.15) !important;
  color: var(--rc-green) !important;
}
.rc-link-action-qr { background: rgba(255,255,255,0.04); color: var(--rc-text-2); }
.rc-link-action-qr:hover {
  background: rgba(245,166,35,0.10); color: var(--rc-accent);
}

/* QR Panel — collapsible */
.rc-qr-panel {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s var(--rc-ease), margin-top 0.35s ease;
  margin-top: 0;
}
.rc-qr-panel.open { max-height: 320px; margin-top: 10px; }
.rc-qr-card {
  background: var(--rc-card);
  border: 1px solid rgba(245,166,35,0.18);
  border-radius: 16px; padding: 14px;
  animation: rcFadeIn 0.4s var(--rc-ease) both;
}
.rc-qr-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.rc-qr-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--rc-text);
}
.rc-qr-title svg { width: 14px; height: 14px; color: var(--rc-accent); }
.rc-qr-close {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  background: rgba(255,255,255,0.05); color: var(--rc-text-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.22s ease;
  transform: rotate(90deg);
}
.rc-qr-close svg { width: 14px; height: 14px; }
.rc-qr-close:hover { background: rgba(245,166,35,0.10); color: var(--rc-accent); }
.rc-qr-image {
  display: flex; align-items: center; justify-content: center;
  padding: 12px; background: rgba(255,255,255,0.02);
  border-radius: 12px; margin-bottom: 10px; min-height: 160px;
}
.rc-qr-image img {
  width: 160px; height: 160px; border-radius: 8px;
  background: #0B1220; padding: 8px;
}
.rc-qr-desc {
  text-align: center; font-size: 11px; color: var(--rc-text-sub);
  font-weight: 500;
}
/* #endregion */

/* #region Stats Grid */
/* ============================================================================ */
.rc-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.rc-stat-card {
  background: var(--rc-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px; padding: 14px;
  display: flex; flex-direction: column; gap: 6px; align-items: center;
  animation: rcFadeIn 0.5s var(--rc-ease) both;
  transition: transform 0.22s var(--rc-ease-soft), border-color 0.22s ease;
}
.rc-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245,166,35,0.18);
}
.rc-stat-card:nth-child(1) { animation-delay: 0.2s; }
.rc-stat-card:nth-child(2) { animation-delay: 0.25s; }
.rc-stat-card:nth-child(3) { animation-delay: 0.3s; }
.rc-stat-card:nth-child(4) { animation-delay: 0.35s; }
.rc-stat-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.rc-stat-icon svg { width: 17px; height: 17px; }
.rc-stat-icon-blue   { background: rgba(96,165,250,0.10); color: var(--rc-blue); }
.rc-stat-icon-green  { background: rgba(0,200,150,0.10);  color: var(--rc-green); }
.rc-stat-icon-gold   { background: rgba(245,166,35,0.10); color: var(--rc-accent); }
.rc-stat-icon-orange { background: rgba(249,115,22,0.10); color: var(--rc-orange); }
.rc-stat-value {
  font-size: 22px; font-weight: 800; color: var(--rc-text);
  font-variant-numeric: tabular-nums; letter-spacing: -0.4px;
}
.rc-stat-label {
  font-size: 10px; color: var(--rc-text-sub); font-weight: 600;
  text-align: center; line-height: 1.2;
}
/* #endregion */

/* #region Lucky Wheel Card (Premium special) */
/* ============================================================================ */
.rc-wheel-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(245,166,35,0.10), transparent 50%),
    linear-gradient(135deg, rgba(245,166,35,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(245,166,35,0.18);
  border-radius: 18px; padding: 16px;
  cursor: pointer; transition: all 0.25s var(--rc-ease-soft);
  animation: rcFadeIn 0.5s var(--rc-ease) 0.3s both;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 0 30px rgba(245,166,35,0.04);
}
.rc-wheel-glow {
  position: absolute; top: -50%; inset-inline-end: -20%;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.15), transparent 60%);
  pointer-events: none;
}
.rc-wheel-card:hover {
  border-color: rgba(245,166,35,0.35); transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.30), 0 0 40px rgba(245,166,35,0.08);
}
.rc-wheel-card:active { transform: scale(0.98); }
.rc-wheel-card > * { position: relative; z-index: 1; }

.rc-wheel-left { flex-shrink: 0; }
.rc-wheel-icon-spin {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(245,166,35,0.18), rgba(245,166,35,0.08));
  border: 1.5px solid rgba(245,166,35,0.30);
  display: flex; align-items: center; justify-content: center;
  color: var(--rc-accent);
  animation: rcWheelPulse 3s ease-in-out infinite;
}
.rc-wheel-icon-spin svg { width: 28px; height: 28px; }

.rc-wheel-info { flex: 1; min-width: 0; }
.rc-wheel-title {
  font-size: 16px; font-weight: 800; color: var(--rc-text);
  letter-spacing: -0.2px; margin-bottom: 4px;
}
.rc-wheel-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--rc-text-sub); font-weight: 600;
  margin-bottom: 8px;
}
.rc-wheel-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rc-text-sub); flex-shrink: 0; }
.rc-wheel-dot-active {
  background: var(--rc-green);
  box-shadow: 0 0 8px rgba(0,200,150,0.6);
  animation: rcDotBlink 2s ease-in-out infinite;
}
.rc-wheel-dot-claimed { background: var(--rc-text-sub); }
.rc-wheel-chips {
  display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px;
}
.rc-wheel-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 600;
  padding: 3px 8px; border-radius: 7px;
  background: rgba(255,255,255,0.04);
  color: var(--rc-text-sub);
  border: 1px solid rgba(255,255,255,0.05);
}
.rc-wheel-chip svg { width: 11px; height: 11px; }
.rc-chip-active {
  background: rgba(0,200,150,0.10);
  color: var(--rc-green);
  border-color: rgba(0,200,150,0.20);
}
.rc-chip-premium {
  background: rgba(245,166,35,0.10);
  color: var(--rc-accent);
  border-color: rgba(245,166,35,0.22);
}
.rc-wheel-last-prize {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; color: var(--rc-text-sub); font-weight: 600;
}
.rc-wheel-last-prize svg { width: 12px; height: 12px; color: var(--rc-accent); }
.rc-wheel-last-prize strong { color: var(--rc-accent); font-weight: 700; }

.rc-wheel-right {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.rc-wheel-spins {
  text-align: center;
}
.rc-wheel-spins-num {
  display: block; font-size: 22px; font-weight: 800;
  color: var(--rc-accent); font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px; line-height: 1;
}
.rc-wheel-spins small {
  display: block; font-size: 9px; color: var(--rc-text-sub);
  font-weight: 600; margin-top: 2px;
}
.rc-wheel-enter-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 14px; border-radius: 10px; border: none;
  background: linear-gradient(135deg, var(--rc-accent), var(--rc-accent-2));
  color: #020611; font-size: 11px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: all 0.22s var(--rc-ease-soft);
  box-shadow: 0 3px 10px rgba(245,166,35,0.25);
}
.rc-wheel-enter-btn svg { width: 12px; height: 12px; }
[dir="rtl"] .rc-wheel-enter-btn svg { transform: scaleX(-1); }
.rc-wheel-enter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(245,166,35,0.35);
}
.rc-wheel-enter-btn:active { transform: scale(0.96); }
.rc-wheel-enter-disabled {
  background: rgba(255,255,255,0.06);
  color: var(--rc-text-sub);
  box-shadow: none; cursor: not-allowed;
}
.rc-wheel-enter-disabled:hover { transform: none; box-shadow: none; }

/* Wheel Disabled State */
.rc-wheel-card-disabled {
  opacity: 0.85;
  cursor: not-allowed !important;
}
.rc-wheel-card-disabled:hover { transform: none !important; border-color: rgba(245,166,35,0.18) !important; }
.rc-wheel-card-disabled .rc-wheel-icon-spin { animation: none; opacity: 0.6; }
.rc-wheel-dot-premium { background: var(--rc-accent); box-shadow: 0 0 8px rgba(245,166,35,0.5); }

/* Countdown */
.rc-wheel-countdown {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; color: var(--rc-text-sub); font-weight: 600;
  margin-top: 6px;
  padding: 4px 8px; border-radius: 7px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}
.rc-wheel-countdown svg { width: 11px; height: 11px; color: var(--rc-accent); }
.rc-wheel-countdown-time {
  font-variant-numeric: tabular-nums;
  color: var(--rc-accent);
  font-weight: 700;
  letter-spacing: 0.5px;
}
/* #endregion */

/* #region Leaderboard */
/* ============================================================================ */
.rc-leaderboard-preview {
  display: flex; flex-direction: column; gap: 8px;
}
.rc-lb-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--rc-card);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 14px; padding: 12px;
  animation: rcFadeIn 0.5s var(--rc-ease) both;
  transition: transform 0.22s var(--rc-ease-soft), border-color 0.22s ease;
}
.rc-lb-item:hover { transform: translateY(-1px); }
.rc-lb-rank-1 {
  border-color: rgba(255,215,0,0.20);
  background: linear-gradient(135deg, rgba(255,215,0,0.05), rgba(11,18,32,1));
  box-shadow: 0 0 20px rgba(255,215,0,0.05);
}
.rc-lb-rank-2 { border-color: rgba(192,192,192,0.15); }
.rc-lb-rank-3 { border-color: rgba(205,127,50,0.15); }
.rc-lb-rank-badge {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  background: rgba(var(--rank-color, 255,255,255), 0.15);
  color: var(--rank-color, #fff);
  border: 1px solid rgba(var(--rank-color, 255,255,255), 0.25);
}
.rc-lb-rank-badge svg { width: 16px; height: 16px; }
.rc-lb-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: rgba(245,166,35,0.10);
  border: 1px solid rgba(245,166,35,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: var(--rc-accent);
}
.rc-lb-info { flex: 1; min-width: 0; }
.rc-lb-name {
  font-size: 14px; font-weight: 700; color: var(--rc-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  letter-spacing: -0.1px;
}
.rc-lb-invites { font-size: 11px; color: var(--rc-text-sub); font-weight: 600; }
.rc-lb-crown { color: #FFD700; animation: rcBadgePop 0.6s var(--rc-ease) 0.4s both; }
.rc-lb-crown svg { width: 20px; height: 20px; }

/* Podium — top 3 special layout */
.rc-lb-podium {
  display: grid; grid-template-columns: 1fr 1.15fr 1fr;
  gap: 8px; align-items: end; margin-bottom: 12px;
}
.rc-lb-podium-slot {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 14px 6px 14px;
  background: var(--rc-card);
  border: 1px solid rgba(var(--rank-color, 255,255,255), 0.20);
  border-radius: 14px;
  animation: rcFadeIn 0.5s var(--rc-ease) both;
  transition: transform 0.22s var(--rc-ease-soft);
}
.rc-lb-podium-slot:hover { transform: translateY(-2px); }
.rc-lb-podium-1 {
  padding-top: 18px;
  background: linear-gradient(180deg, rgba(var(--rank-color, 255,215,0), 0.12), var(--rc-card));
  box-shadow: 0 0 24px rgba(var(--rank-color, 255,215,0), 0.10);
}
.rc-lb-podium-2 { animation-delay: 0.05s; }
.rc-lb-podium-3 { animation-delay: 0.1s; }
.rc-lb-podium-empty { background: transparent; border: 1px dashed rgba(255,255,255,0.04); }
.rc-lb-podium-me {
  border-color: rgba(var(--rank-color, 245,166,35), 0.50) !important;
  box-shadow: 0 0 18px rgba(var(--rank-color, 245,166,35), 0.20);
}
.rc-lb-podium-crown {
  position: absolute; top: -12px;
  color: var(--rank-color, #FFD700);
  filter: drop-shadow(0 2px 8px rgba(255,215,0,0.4));
  animation: rcBadgePop 0.6s var(--rc-ease) 0.4s both;
}
.rc-lb-podium-crown svg { width: 22px; height: 22px; }
.rc-lb-podium-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(var(--rank-color, 255,255,255), 0.10);
  border: 2px solid var(--rank-color, #fff);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: var(--rc-text);
  margin-bottom: 6px;
}
.rc-lb-podium-1 .rc-lb-podium-avatar { width: 50px; height: 50px; font-size: 18px; }
.rc-lb-podium-name {
  font-size: 11px; font-weight: 700; color: var(--rc-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%; margin-bottom: 4px;
}
.rc-lb-podium-count {
  font-size: 18px; font-weight: 800;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.rc-lb-podium-1 .rc-lb-podium-count { font-size: 22px; }
.rc-lb-podium-label {
  font-size: 9px; color: var(--rc-text-sub); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.4px; margin-top: 2px;
}
.rc-lb-podium-rank {
  position: absolute; bottom: -10px;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #020611;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* List — ranks 4-10 */
.rc-lb-list { display: flex; flex-direction: column; gap: 6px; }
.rc-lb-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--rc-card);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px; padding: 10px 12px;
  animation: rcFadeIn 0.4s var(--rc-ease) both;
  transition: transform 0.22s var(--rc-ease-soft), border-color 0.22s ease;
}
.rc-lb-row:hover { transform: translateY(-1px); border-color: rgba(245,166,35,0.15); }
.rc-lb-row-me {
  border-color: rgba(245,166,35,0.35);
  background: linear-gradient(90deg, rgba(245,166,35,0.06), rgba(11,18,32,1));
}
.rc-lb-row-rank {
  width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: var(--rc-text-sub);
  background: rgba(255,255,255,0.04);
}
.rc-lb-row-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: rgba(245,166,35,0.10); border: 1px solid rgba(245,166,35,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--rc-accent);
}
.rc-lb-row-info { flex: 1; min-width: 0; }
.rc-lb-row-name {
  font-size: 13px; font-weight: 700; color: var(--rc-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rc-lb-row-sub { font-size: 10px; color: var(--rc-text-sub); font-weight: 500; }
.rc-lb-row-badge {
  font-size: 13px; font-weight: 800; color: var(--rc-accent);
  font-variant-numeric: tabular-nums;
}

/* Your Rank footer */
.rc-lb-your-rank {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; padding: 12px;
  background: linear-gradient(135deg, rgba(245,166,35,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(245,166,35,0.15);
  border-radius: 12px;
  animation: rcFadeIn 0.5s var(--rc-ease) both;
}
.rc-lb-your-rank > svg { width: 20px; height: 20px; color: var(--rc-accent); flex-shrink: 0; }
.rc-lb-your-rank-info { flex: 1; min-width: 0; }
.rc-lb-your-rank-label { font-size: 10px; color: var(--rc-text-sub); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.rc-lb-your-rank-value { font-size: 13px; color: var(--rc-text); font-weight: 700; margin-top: 2px; }
.rc-lb-share-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 9px; border: none;
  background: rgba(245,166,35,0.12); color: var(--rc-accent);
  font-size: 11px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: all 0.22s var(--rc-ease-soft);
}
.rc-lb-share-btn svg { width: 12px; height: 12px; }
.rc-lb-share-btn:hover { background: rgba(245,166,35,0.20); transform: scale(1.03); }
/* #endregion */

/* #region Missions */
/* ============================================================================ */
.rc-missions-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.rc-mission-card {
  position: relative; overflow: hidden;
  background: var(--rc-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px; padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
  animation: rcFadeIn 0.5s var(--rc-ease) both;
  transition: transform 0.22s var(--rc-ease-soft), border-color 0.22s ease;
}
.rc-mission-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245,166,35,0.18);
}
.rc-mission-done {
  border-color: rgba(0,200,150,0.20);
  background: linear-gradient(135deg, rgba(0,200,150,0.04), rgba(11,18,32,1));
}
.rc-mission-top { position: relative; display: flex; align-items: center; justify-content: space-between; }
.rc-mission-icon {
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.06);
}
.rc-mission-icon svg { width: 19px; height: 19px; }
.rc-mission-icon-locked {
  background: rgba(255,255,255,0.04);
  color: var(--rc-text-sub);
}
.rc-mission-icon-done {
  background: rgba(0,200,150,0.12);
  color: var(--rc-green);
  border-color: rgba(0,200,150,0.25);
}
.rc-mission-lock {
  color: var(--rc-text-sub); opacity: 0.6;
  display: flex; align-items: center;
}
.rc-mission-lock svg { width: 14px; height: 14px; }
.rc-mission-title {
  font-size: 13px; font-weight: 700; color: var(--rc-text);
  letter-spacing: -0.1px;
}
.rc-mission-desc {
  font-size: 10px; color: var(--rc-text-sub); font-weight: 500;
  line-height: 1.4;
}
.rc-mission-progress { margin-top: auto; }
.rc-mission-progress-bar {
  height: 5px; border-radius: 3px;
  background: rgba(255,255,255,0.05); overflow: hidden;
  margin-bottom: 5px;
}
.rc-mission-progress-fill {
  height: 100%; border-radius: 3px;
  transition: width 1.0s var(--rc-ease);
}
.rc-mission-progress-text {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; font-weight: 600;
}
.rc-mission-progress-text > span:first-child { color: var(--rc-text-sub); }
.rc-mission-reward {
  display: inline-flex; align-items: center; gap: 3px;
  color: var(--rc-accent);
}
.rc-mission-reward svg { width: 11px; height: 11px; }
/* #endregion */

/* #region Achievements */
/* ============================================================================ */
.rc-achievements-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.rc-ach-card {
  position: relative; overflow: hidden;
  background: var(--rc-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 18px; padding: 16px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
  animation: rcFadeIn 0.5s var(--rc-ease) both;
  transition: transform 0.22s var(--rc-ease-soft), border-color 0.22s ease;
}
.rc-ach-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--ach-rgb), 0.30);
}
.rc-ach-unlocked {
  border-color: rgba(var(--ach-rgb), 0.35);
  background:
    radial-gradient(80% 80% at 50% 0%, rgba(var(--ach-rgb), 0.10), transparent 60%),
    var(--rc-card);
  box-shadow: 0 0 24px rgba(var(--ach-rgb), 0.08);
}
.rc-ach-locked { opacity: 0.75; }
.rc-ach-medal-wrap {
  position: relative;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
}
.rc-ach-medal-glow {
  position: absolute; inset: -6px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--ach-rgb), 0.25), transparent 70%);
  filter: blur(8px);
  animation: rcHeroGlowPulse 3s ease-in-out infinite;
}
.rc-ach-locked .rc-ach-medal-glow { display: none; }
.rc-ach-medal {
  position: relative; z-index: 1;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--ach-rgb), 0.12);
  border: 1.5px solid rgba(var(--ach-rgb), 0.35);
  color: var(--ach-color);
}
.rc-ach-unlocked .rc-ach-medal {
  background: linear-gradient(135deg, rgba(var(--ach-rgb), 0.25), rgba(var(--ach-rgb), 0.10));
  box-shadow: 0 0 16px rgba(var(--ach-rgb), 0.30);
}
.rc-ach-locked .rc-ach-medal {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
  color: var(--rc-text-sub);
}
.rc-ach-medal svg { width: 24px; height: 24px; }
.rc-ach-lock {
  position: absolute; bottom: -2px; inset-inline-end: -2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--rc-card);
  border: 1.5px solid rgba(255,255,255,0.10);
  display: flex; align-items: center; justify-content: center;
  color: var(--rc-text-sub); z-index: 2;
}
.rc-ach-lock svg { width: 11px; height: 11px; }
.rc-ach-title {
  font-size: 13px; font-weight: 700; color: var(--rc-text);
  letter-spacing: -0.1px;
}
.rc-ach-desc {
  font-size: 10px; color: var(--rc-text-sub); font-weight: 500;
  line-height: 1.4;
}
.rc-ach-status {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 7px;
  margin-top: 2px;
}
.rc-ach-status svg { width: 11px; height: 11px; }
.rc-ach-unlocked-text {
  background: rgba(var(--ach-rgb), 0.12);
  color: var(--ach-color);
}
.rc-ach-locked-text {
  background: rgba(255,255,255,0.04);
  color: var(--rc-text-sub);
}
/* #endregion */

/* #region History */
/* ============================================================================ */
.rc-history-list {
  display: flex; flex-direction: column; gap: 8px;
}
.rc-hist-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--rc-card);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 14px; padding: 12px;
  animation: rcFadeIn 0.4s var(--rc-ease) both;
  transition: transform 0.22s var(--rc-ease-soft), border-color 0.22s ease;
}
.rc-hist-item:hover {
  transform: translateY(-1px);
  border-color: rgba(245,166,35,0.15);
}
.rc-hist-state-rewarded { border-inline-start: 3px solid var(--rc-green); padding-inline-start: 11px; }
.rc-hist-state-pending  { border-inline-start: 3px solid var(--rc-orange); padding-inline-start: 11px; }
.rc-hist-state-notjoined{ border-inline-start: 3px solid var(--rc-text-sub); padding-inline-start: 11px; }

.rc-hist-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: rgba(96,165,250,0.10);
  border: 1px solid rgba(96,165,250,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: var(--rc-blue);
}
.rc-hist-state-rewarded .rc-hist-avatar {
  background: rgba(0,200,150,0.10);
  border-color: rgba(0,200,150,0.20);
  color: var(--rc-green);
}
.rc-hist-state-pending .rc-hist-avatar {
  background: rgba(249,115,22,0.10);
  border-color: rgba(249,115,22,0.20);
  color: var(--rc-orange);
}
.rc-hist-info { flex: 1; min-width: 0; }
.rc-hist-name-row {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 3px;
}
.rc-hist-name {
  font-size: 13px; font-weight: 700; color: var(--rc-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  letter-spacing: -0.1px; flex-shrink: 1; min-width: 0;
}
.rc-hist-username {
  font-size: 11px; color: var(--rc-accent); font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
  background: rgba(245,166,35,0.08);
  padding: 1px 6px; border-radius: 5px;
}
.rc-hist-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.rc-hist-date {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; color: var(--rc-text-sub); font-weight: 500;
}
.rc-hist-date svg { width: 10px; height: 10px; }
.rc-hist-source {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; color: var(--rc-text-sub); font-weight: 600;
  padding: 2px 6px; border-radius: 5px;
  background: rgba(255,255,255,0.04);
}
.rc-hist-source svg { width: 10px; height: 10px; }
.rc-hist-badges {
  display: flex; flex-direction: column; gap: 5px; align-items: flex-end;
  flex-shrink: 0;
}
.rc-hist-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 7px;
  white-space: nowrap;
}
.rc-hist-badge svg { width: 10px; height: 10px; }
.rc-hist-badge-joined    { background: rgba(0,200,150,0.10); color: var(--rc-green); }
.rc-hist-badge-notjoined { background: rgba(107,122,141,0.10); color: var(--rc-text-sub); }
.rc-hist-badge-pending   { background: rgba(249,115,22,0.10); color: var(--rc-orange); }
.rc-hist-badge-rewarded  { background: rgba(0,200,150,0.12); color: var(--rc-green); }
.rc-hist-reward {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 800; color: var(--rc-accent);
  font-variant-numeric: tabular-nums;
}
.rc-hist-reward span { font-size: 9px; color: var(--rc-text-2); font-weight: 600; }
.rc-hist-reward-logo { width: 14px; height: 14px; border-radius: 50%; object-fit: cover; }
.rc-hist-reward-pending {
  color: var(--rc-text-sub);
  opacity: 0.6;
}

.rc-load-more-wrap { text-align: center; padding: 14px 0 4px; }
.rc-load-more-btn {
  padding: 10px 28px; border-radius: 12px;
  background: rgba(245,166,35,0.10);
  border: 1px solid rgba(245,166,35,0.22);
  color: var(--rc-accent); font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: all 0.22s var(--rc-ease-soft);
}
.rc-load-more-btn:hover:not(:disabled) {
  background: rgba(245,166,35,0.18);
  transform: translateY(-1px);
}
.rc-load-more-btn:active:not(:disabled) { transform: scale(0.96); }
.rc-load-more-btn:disabled { opacity: 0.6; cursor: not-allowed; }
/* #endregion */

/* #region Empty State */
/* ============================================================================ */
.rc-empty-state {
  text-align: center; padding: 32px 20px;
  background: var(--rc-card);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 18px;
  animation: rcFadeIn 0.5s var(--rc-ease) both;
}
.rc-empty-illustration {
  position: relative;
  width: 80px; height: 80px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
}
.rc-empty-orb {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.18), transparent 70%);
  filter: blur(8px);
  animation: rcHeroGlowPulse 3s ease-in-out infinite;
}
.rc-empty-orb-2 {
  inset: 10px;
  background: radial-gradient(circle, rgba(245,166,35,0.25), transparent 70%);
  animation-delay: -1.5s;
}
.rc-empty-icon {
  position: relative; z-index: 1;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  color: var(--rc-accent);
}
.rc-empty-icon svg { width: 40px; height: 40px; }
.rc-empty-state h4 {
  font-size: 15px; font-weight: 700; color: var(--rc-text);
  margin: 0 0 6px; letter-spacing: -0.2px;
}
.rc-empty-state p {
  font-size: 12px; color: var(--rc-text-sub); margin: 0 0 14px;
  line-height: 1.5; max-width: 280px; margin-inline: auto;
}
.rc-empty-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 11px; border: none;
  background: linear-gradient(135deg, var(--rc-accent), var(--rc-accent-2));
  color: #020611; font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: all 0.22s var(--rc-ease-soft);
  box-shadow: 0 3px 12px rgba(245,166,35,0.25);
}
.rc-empty-cta svg { width: 14px; height: 14px; }
.rc-empty-cta:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(245,166,35,0.35); }
.rc-empty-cta:active { transform: scale(0.96); }
/* #endregion */

/* #region Skeleton */
/* ============================================================================ */
.rc-skeleton { padding: 16px; }
.rc-skel-card {
  background: var(--rc-card);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px; padding: 16px; margin-bottom: 12px;
}
.rc-skel-card.h-tall { height: 120px; padding: 0; }
.rc-skel-hero { height: 200px; margin-bottom: 12px; }
.rc-skel-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px;
}
.rc-skel-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.rc-skel-circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--rc-skeleton); background-size: 200% 100%;
  animation: rcShimmer 1.5s ease-in-out infinite;
}
.rc-skel-line {
  height: 12px; border-radius: 6px; margin-bottom: 8px;
  background: var(--rc-skeleton); background-size: 200% 100%;
  animation: rcShimmer 1.5s ease-in-out infinite;
}
.rc-skel-line.h-sm { height: 10px; }
.rc-skel-line.h-lg { height: 18px; }
.rc-skel-line.h-xl { height: 26px; }
.rc-skel-line.w-30 { width: 30%; }
.rc-skel-line.w-40 { width: 40%; }
.rc-skel-line.w-50 { width: 50%; }
.rc-skel-line.w-60 { width: 60%; }
.rc-skel-line.w-70 { width: 70%; }
.rc-skel-line.w-80 { width: 80%; }
/* #endregion */

/* #region Responsive */
/* ============================================================================ */
@media (max-width: 360px) {
  .rc-hero { padding: 18px 16px; }
  .rc-hero-earned-value { font-size: 24px; }
  .rc-hero-token-logo { width: 32px; height: 32px; }
  .rc-hero-illustration svg { width: 76px; height: 76px; }
  .rc-hero-stats { padding: 10px 4px; }
  .rc-hero-stat-value { font-size: 14px; }
  .rc-hero-stat-label { font-size: 9px; }
  .rc-stats-grid { gap: 8px; }
  .rc-stat-card { padding: 12px; }
  .rc-stat-value { font-size: 18px; }
  .rc-missions-grid, .rc-achievements-grid { gap: 8px; }
  .rc-section { margin: 0 12px 12px; }
  .rc-hero-actions { flex-direction: column; }
  .rc-wheel-right { display: none; }
  .rc-wheel-card { padding: 14px; }
  /* Podium adjustments */
  .rc-lb-podium { gap: 6px; }
  .rc-lb-podium-1 .rc-lb-podium-avatar { width: 42px; height: 42px; font-size: 16px; }
  .rc-lb-podium-avatar { width: 36px; height: 36px; font-size: 14px; }
  .rc-lb-podium-1 .rc-lb-podium-count { font-size: 18px; }
  .rc-lb-podium-count { font-size: 15px; }
  .rc-lb-podium-name { font-size: 10px; }
  /* Link actions stacked horizontally on small screens */
  .rc-link-actions { flex-direction: row; }
  .rc-link-action-btn { width: 34px; height: 34px; }
  /* History meta wraps better */
  .rc-hist-meta { gap: 6px; }
  .rc-hist-username { font-size: 10px; padding: 1px 4px; }
  .rc-qr-image img { width: 140px; height: 140px; }
}

@media (max-width: 320px) {
  .rc-hero-illustration { display: none; }
  .rc-hero-stats { flex-wrap: wrap; }
  .rc-hero-stat { min-width: 45%; }
  .rc-hero-stat-divider:nth-of-type(4) { display: none; }
  /* Podium stacks on very small screens */
  .rc-lb-podium { grid-template-columns: 1fr 1fr; }
  .rc-lb-podium-3 { display: none; }
  .rc-lb-podium-1 { grid-column: 1 / -1; order: -1; }
  .rc-lb-podium-2 { grid-column: 1 / -1; }
}

/* Larger screens — center content */
@media (min-width: 600px) {
  .referral-full-page > * { max-width: 560px; margin-inline: auto; }
  .rc-header { max-width: 560px; }
}
/* #endregion */
