.nav-xp {
  background: linear-gradient(135deg, #5b5ef4, #7209b7);
  color: white; font-weight: 800; font-size: 0.8rem;
  padding: 0.3rem 0.8rem; border-radius: 50px;
}

/* ===== HERO ===== */
.rc-hero {
  padding: 3.5rem 4rem 2.5rem; text-align: center;
  background:
    radial-gradient(ellipse 55% 50% at 15% 20%, rgba(91,94,244,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 45% 55% at 85% 35%, rgba(236,72,153,0.08) 0%, transparent 70%),
    linear-gradient(145deg, #eef0ff 0%, #f5e8ff 35%, #fce7ff 55%, #fff0e8 100%);
  position: relative; overflow: hidden;
}
.rc-hero::before {
  content: ''; position: absolute; top: -80px; right: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 70%);
  pointer-events: none; animation: rcOrb 10s ease-in-out infinite alternate;
}
@keyframes rcOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -15px) scale(1.15); }
}
.rc-hero h1 {
  font-size: 2.2rem; font-weight: 900; margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #5b5ef4, #7c3aed, #ec4899);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  position: relative; z-index: 1;
}
.rc-hero p { color: #64748b; font-size: 1.05rem; max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }

/* ===== LAYOUT ===== */
.rc-container { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem; }
.rc-section { background: #fafaff; }
.rc-section:nth-child(even) { background: white; }
.rc-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(1.8);
  border-radius: 20px; padding: 1.75rem;
  box-shadow: 0 8px 32px rgba(91,94,244,0.08);
  border: 1px solid rgba(91,94,244,0.08);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative; overflow: hidden;
}
.rc-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #5b5ef4, #7c3aed, #ec4899);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(91,94,244,0.12); }
.rc-card:hover::after { transform: scaleX(1); }
.rc-card-title {
  font-size: 1.2rem; font-weight: 900; margin-bottom: 1rem;
  background: linear-gradient(135deg, #5b5ef4, #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ===== PENDING BANNER ===== */
.rc-pending-banner {
  max-width: 900px; margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-bottom: 2px solid #fde68a;
}
.rc-pending-icon { font-size: 2rem; }
.rc-pending-info { flex: 1; }
.rc-pending-title { font-weight: 900; font-size: 0.95rem; color: #78350f; }
.rc-pending-sub { font-size: 0.78rem; color: #92400e; font-weight: 600; }

/* ===== OVERVIEW GRID ===== */
.rc-overview-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 1.25rem; }

/* Score Ring */
.rc-score-card { text-align: center; padding: 2rem; }
.rc-score-ring {
  position: relative; width: 140px; height: 140px; margin: 0 auto 0.75rem;
  filter: drop-shadow(0 4px 16px rgba(91,94,244,0.2));
}
.rc-score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rc-ring-bg { fill: none; stroke: #eeeeff; stroke-width: 10; }
.rc-ring-fill {
  fill: none; stroke: #5b5ef4; stroke-width: 10;
  stroke-linecap: round; stroke-dasharray: 364.4;
  stroke-dashoffset: 364.4;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rc-ring-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center;
}
.rc-ring-pct {
  font-size: 2rem; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, #5b5ef4, #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.rc-ring-grade { font-size: 0.82rem; font-weight: 800; color: #64748b; }
.rc-score-label { font-weight: 800; font-size: 0.92rem; color: #334155; }
.rc-score-tests { font-size: 0.75rem; color: #94a3b8; font-weight: 700; }

/* Mini stats */
.rc-mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.rc-mini-stat {
  background: #fafbff; border-radius: 16px; padding: 1rem;
  text-align: center; border: 1px solid rgba(91,94,244,0.06);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rc-mini-stat:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(91,94,244,0.1); }
.rc-mini-icon { font-size: 1.3rem; margin-bottom: 0.2rem; }
.rc-mini-val {
  font-size: 1.3rem; font-weight: 900;
  background: linear-gradient(135deg, #5b5ef4, #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.rc-mini-lbl { font-size: 0.68rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== SECTION BARS ===== */
.rc-sections-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.rc-section-bar { padding: 0.5rem 0; }
.rc-sb-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.35rem;
}
.rc-sb-name { font-weight: 800; font-size: 0.88rem; color: #334155; }
.rc-sb-pct {
  font-weight: 900; font-size: 0.88rem;
  background: linear-gradient(90deg, #5b5ef4, #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.rc-sb-track { height: 8px; background: #eeeeff; border-radius: 50px; overflow: hidden; }
.rc-sb-fill {
  height: 100%; border-radius: 50px;
  background: linear-gradient(90deg, #5b5ef4, #7c3aed, #ec4899);
  background-size: 200% 100%;
  transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: rcBarShimmer 3s ease infinite;
}
@keyframes rcBarShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== TREND CHART ===== */
.rc-trend-chart { min-height: 160px; position: relative; }
.rc-trend-empty { text-align: center; padding: 2rem; color: #94a3b8; font-weight: 700; font-size: 0.88rem; }
.rc-trend-bars {
  display: flex; align-items: flex-end; gap: 0.5rem;
  height: 150px; padding: 0 0.5rem;
}
.rc-trend-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.rc-trend-bar {
  width: 100%; min-width: 28px; max-width: 48px; border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #5b5ef4, #7c3aed);
  transition: height 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.rc-trend-bar.low { background: linear-gradient(180deg, #f87171, #ef4444); }
.rc-trend-bar.mid { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.rc-trend-bar.high { background: linear-gradient(180deg, #34d399, #059669); }
.rc-trend-bar-pct {
  font-size: 0.65rem; font-weight: 900; color: white;
  position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
}
.rc-trend-bar-date { font-size: 0.6rem; font-weight: 700; color: #94a3b8; }
.rc-trend-bar-type { font-size: 0.55rem; font-weight: 800; color: #c4b5fd; text-transform: uppercase; }

/* ===== SKILLS LIST ===== */
.rc-sw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.rc-skill-list { display: flex; flex-direction: column; gap: 0.5rem; }
.rc-skill-empty { text-align: center; padding: 1.5rem; color: #94a3b8; font-weight: 700; font-size: 0.85rem; }
.rc-skill-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0.85rem; border-radius: 12px;
  background: #fafbff; border: 1px solid rgba(91,94,244,0.06);
  transition: all 0.3s ease;
}
.rc-skill-item:hover { transform: translateX(4px); box-shadow: 0 4px 12px rgba(91,94,244,0.08); }
.rc-skill-name { font-weight: 800; font-size: 0.85rem; color: #334155; }
.rc-skill-pct {
  font-weight: 900; font-size: 0.82rem; padding: 0.2rem 0.6rem;
  border-radius: 50px; min-width: 45px; text-align: center;
}
.rc-skill-pct.good { background: #ecfdf5; color: #059669; }
.rc-skill-pct.bad { background: #fef2f2; color: #dc2626; }

/* Strength card accent */
.rc-strengths-card { border-left: 4px solid #34d399; }
.rc-weak-card { border-left: 4px solid #f87171; }

/* ===== PAST TEST LIST ===== */
.rc-past-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; flex-wrap: wrap; gap: 0.5rem; }
.rc-share-btn { font-size: 0.82rem !important; padding: 0.4rem 1rem !important; }
.rc-past-list { display: flex; flex-direction: column; gap: 0.6rem; }
.rc-past-empty { text-align: center; padding: 2rem; color: #94a3b8; font-weight: 700; }
.rc-past-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.85rem 1rem; border-radius: 14px;
  background: #fafbff; border: 1px solid rgba(91,94,244,0.06);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rc-past-item:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(91,94,244,0.1); border-color: rgba(91,94,244,0.15); }
.rc-past-icon { font-size: 1.5rem; }
.rc-past-info { flex: 1; }
.rc-past-type { font-weight: 900; font-size: 0.88rem; color: #334155; }
.rc-past-date { font-size: 0.72rem; color: #94a3b8; font-weight: 600; }
.rc-past-score {
  font-weight: 900; font-size: 1.1rem; padding: 0.35rem 0.85rem;
  border-radius: 50px; text-align: center;
}
.rc-past-score.high { background: linear-gradient(135deg, rgba(6,214,160,0.15), rgba(16,185,129,0.1)); color: #059669; }
.rc-past-score.mid { background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(245,158,11,0.1)); color: #b45309; }
.rc-past-score.low { background: linear-gradient(135deg, rgba(248,113,113,0.15), rgba(239,68,68,0.1)); color: #dc2626; }
.rc-past-grade {
  font-weight: 900; font-size: 0.85rem; width: 36px; height: 36px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #5b5ef4, #7c3aed); color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .rc-hero { padding: 2rem 1.5rem 1.5rem; }
  .rc-hero h1 { font-size: 1.6rem; }
  .rc-container { padding: 1.5rem 1rem; }
  .rc-overview-grid { grid-template-columns: 1fr; }
  .rc-sw-grid { grid-template-columns: 1fr; }
  .rc-pending-banner { flex-direction: column; text-align: center; }
  .rc-mini-stats { grid-template-columns: repeat(2, 1fr); }
  .rc-trend-bars { gap: 0.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
