/* Coding profiles section */

#stats-panel-section {
  padding: clamp(3rem, 5vw, 5rem) clamp(1.2rem, 5vw, 2.5rem);
  width: min(1450px, 100%);
  max-width: 1450px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  scroll-margin-top: 90px;
}

/* Heading Row */
.coding-profiles-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: clamp(1.5rem, 2.5vw, 2.2rem);
  flex-wrap: wrap;
}

.coding-profiles-heading-row.reveal {
  padding-top: 1.5rem;
}

.heading-left {
  display: flex;
  flex-direction: column;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--code-font, monospace);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-warm, #38bdf8);
  font-weight: 700;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  width: fit-content;
  backdrop-filter: blur(8px);
}

.section-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-warm, #38bdf8);
  box-shadow: 0 0 8px var(--accent-warm, #38bdf8);
  animation: kicker-dot-pulse 2s infinite ease-in-out;
}

@keyframes kicker-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.section-title {
  font-family: var(--hero-title);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-family: var(--body-font);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 0;
  letter-spacing: 0.2px;
}

.heading-right {
  display: flex;
  align-items: center;
  padding-bottom: 4px;
}

.view-all-profiles-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 99px;
  background: rgba(180, 130, 255, 0.08);
  border: 1px solid rgba(180, 130, 255, 0.25);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent, #b482ff);
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.view-all-profiles-link:hover {
  background: rgba(180, 130, 255, 0.2);
  border-color: rgba(180, 130, 255, 0.55);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(180, 130, 255, 0.28);
}

body[data-theme="dawn"] .section-kicker {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.2);
  color: #4f46e5;
}

body[data-theme="dawn"] .section-kicker::before {
  background-color: #4f46e5;
  box-shadow: 0 0 8px rgba(79, 70, 229, 0.4);
}

body[data-theme="dawn"] .view-all-profiles-link {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.2);
  color: #4f46e5;
}

body[data-theme="dawn"] .view-all-profiles-link:hover {
  background: rgba(79, 70, 229, 0.15);
  border-color: rgba(79, 70, 229, 0.4);
  color: #1e1b4b;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.2);
}

/* 5-Cards Grid */
.coding-profiles-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(20px, 2vw, 28px);
  width: 90%;
  max-width: 1320px;
  margin-inline: auto;
  margin-top: 0;
}

@media (max-width: 1240px) {
  .coding-profiles-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    width: 94%;
    gap: 20px;
  }
}

@media (max-width: 820px) {
  .coding-profiles-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .coding-profiles-cards-grid {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 16px;
  }
}

/* Individual Profile Card */
.coding-profile-card {
  background: rgba(13, 16, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.coding-profile-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 24px rgba(180, 130, 255, 0.12);
}

/* Card Top Highlight Line (pseudo element) */
.coding-profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.coding-profile-card:hover::before {
  opacity: 1;
}

/* LeetCode Custom Aura */
.coding-profile-card[data-platform="leetcode"]::before {
  background: linear-gradient(90deg, #ffa116, #fbbf24);
}
.coding-profile-card[data-platform="leetcode"]:hover {
  border-color: rgba(255, 161, 22, 0.55);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 161, 22, 0.16);
  background: radial-gradient(circle at 50% 0%, rgba(255, 161, 22, 0.08) 0%, rgba(13, 16, 32, 0.82) 70%);
}
.coding-profile-card[data-platform="leetcode"]:hover .profile-card-action-btn {
  background: rgba(255, 161, 22, 0.15);
  border-color: rgba(255, 161, 22, 0.45);
  color: #fff;
}

/* GeeksforGeeks Custom Aura */
.coding-profile-card[data-platform="geeksforgeeks"]::before {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}
.coding-profile-card[data-platform="geeksforgeeks"]:hover {
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55), 0 0 24px rgba(34, 197, 94, 0.16);
  background: radial-gradient(circle at 50% 0%, rgba(34, 197, 94, 0.08) 0%, rgba(13, 16, 32, 0.82) 70%);
}
.coding-profile-card[data-platform="geeksforgeeks"]:hover .profile-card-action-btn {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.45);
  color: #fff;
}

/* Codeforces Custom Aura */
.coding-profile-card[data-platform="codeforces"]::before {
  background: linear-gradient(90deg, #38bdf8, #2563eb);
}
.coding-profile-card[data-platform="codeforces"]:hover {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55), 0 0 24px rgba(56, 189, 248, 0.16);
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.08) 0%, rgba(13, 16, 32, 0.82) 70%);
}
.coding-profile-card[data-platform="codeforces"]:hover .profile-card-action-btn {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.45);
  color: #fff;
}

/* CodeChef Custom Aura */
.coding-profile-card[data-platform="codechef"]::before {
  background: linear-gradient(90deg, #d97706, #b45309);
}
.coding-profile-card[data-platform="codechef"]:hover {
  border-color: rgba(217, 119, 6, 0.55);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55), 0 0 24px rgba(217, 119, 6, 0.16);
  background: radial-gradient(circle at 50% 0%, rgba(217, 119, 6, 0.08) 0%, rgba(13, 16, 32, 0.82) 70%);
}
.coding-profile-card[data-platform="codechef"]:hover .profile-card-action-btn {
  background: rgba(217, 119, 6, 0.15);
  border-color: rgba(217, 119, 6, 0.45);
  color: #fff;
}

/* HackerRank Custom Aura */
.coding-profile-card[data-platform="hackerrank"]::before {
  background: linear-gradient(90deg, #00ea64, #059669);
}
.coding-profile-card[data-platform="hackerrank"]:hover {
  border-color: rgba(0, 234, 100, 0.55);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 234, 100, 0.16);
  background: radial-gradient(circle at 50% 0%, rgba(0, 234, 100, 0.08) 0%, rgba(13, 16, 32, 0.82) 70%);
}
.coding-profile-card[data-platform="hackerrank"]:hover .profile-card-action-btn {
  background: rgba(0, 234, 100, 0.15);
  border-color: rgba(0, 234, 100, 0.45);
  color: #fff;
}

/* Card Top Row */
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.platform-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.platform-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.coding-profile-card:hover .platform-icon {
  background: rgba(255, 255, 255, 0.09);
  transform: scale(1.06);
}

.platform-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.platform-name {
  font-family: var(--hero-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.2px;
}

.card-ext-link {
  color: var(--muted);
  font-size: 0.8rem;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}

.card-ext-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transform: translate(2px, -2px);
}

/* Card Body & Metrics */
.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.metric-block {
  margin-bottom: 12px;
}

.metric-val {
  font-family: var(--hero-title);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.4px;
}

.metric-lbl {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Meta Row (Knight / Streaks) */
.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
  margin-bottom: 14px;
  gap: 8px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-item.text-right {
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 1px;
}

.meta-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.meta-icon.knight-icon { color: #f59e0b; }
.meta-icon.flame-icon { color: #f97316; }
.meta-icon.trophy-icon { color: #38bdf8; }
.meta-icon.medal-icon { color: #a855f7; }
.meta-icon.hr-badge-icon { color: #00ea64; font-size: 1.1rem; }

.meta-texts {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.meta-bold {
  font-family: var(--hero-title);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

.meta-sub {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
}

/* Action Button */
.profile-card-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  transition: all 0.25s ease;
  width: 100%;
}

.profile-card-action-btn i {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.profile-card-action-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-2px);
}

.profile-card-action-btn:hover i {
  transform: translate(2px, -2px);
}

/* Light theme overrides */
body[data-theme="dawn"] .coding-profile-card {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

body[data-theme="dawn"] .coding-profile-card:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

/* LeetCode in Dawn mode */
body[data-theme="dawn"] .coding-profile-card[data-platform="leetcode"]:hover {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.12), 0 0 20px rgba(245, 158, 11, 0.08);
  background: radial-gradient(circle at 50% 0%, rgba(254, 243, 199, 0.45) 0%, rgba(255, 255, 255, 0.95) 70%);
}

body[data-theme="dawn"] .coding-profile-card[data-platform="leetcode"] .profile-card-action-btn:hover,
body[data-theme="dawn"] .coding-profile-card[data-platform="leetcode"]:hover .profile-card-action-btn {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(217, 119, 6, 0.5);
  color: #78350f;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15);
}

/* GeeksforGeeks in Dawn mode */
body[data-theme="dawn"] .coding-profile-card[data-platform="geeksforgeeks"]:hover {
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 16px 36px rgba(34, 197, 94, 0.12), 0 0 20px rgba(34, 197, 94, 0.08);
  background: radial-gradient(circle at 50% 0%, rgba(220, 252, 231, 0.45) 0%, rgba(255, 255, 255, 0.95) 70%);
}

body[data-theme="dawn"] .coding-profile-card[data-platform="geeksforgeeks"] .profile-card-action-btn:hover,
body[data-theme="dawn"] .coding-profile-card[data-platform="geeksforgeeks"]:hover .profile-card-action-btn {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(22, 163, 74, 0.5);
  color: #14532d;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.15);
}

/* Codeforces in Dawn mode */
body[data-theme="dawn"] .coding-profile-card[data-platform="codeforces"]:hover {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 16px 36px rgba(56, 189, 248, 0.12), 0 0 20px rgba(56, 189, 248, 0.08);
  background: radial-gradient(circle at 50% 0%, rgba(224, 242, 254, 0.45) 0%, rgba(255, 255, 255, 0.95) 70%);
}

body[data-theme="dawn"] .coding-profile-card[data-platform="codeforces"] .profile-card-action-btn:hover,
body[data-theme="dawn"] .coding-profile-card[data-platform="codeforces"]:hover .profile-card-action-btn {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.5);
  color: #1e40af;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}

/* CodeChef in Dawn mode */
body[data-theme="dawn"] .coding-profile-card[data-platform="codechef"]:hover {
  border-color: rgba(217, 119, 6, 0.55);
  box-shadow: 0 16px 36px rgba(217, 119, 6, 0.12), 0 0 20px rgba(217, 119, 6, 0.08);
  background: radial-gradient(circle at 50% 0%, rgba(254, 243, 199, 0.45) 0%, rgba(255, 255, 255, 0.95) 70%);
}

body[data-theme="dawn"] .coding-profile-card[data-platform="codechef"] .profile-card-action-btn:hover,
body[data-theme="dawn"] .coding-profile-card[data-platform="codechef"]:hover .profile-card-action-btn {
  background: rgba(217, 119, 6, 0.16);
  border-color: rgba(180, 83, 9, 0.5);
  color: #78350f;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.15);
}

/* HackerRank in Dawn mode */
body[data-theme="dawn"] .coding-profile-card[data-platform="hackerrank"]:hover {
  border-color: rgba(0, 234, 100, 0.55);
  box-shadow: 0 16px 36px rgba(0, 234, 100, 0.12), 0 0 20px rgba(0, 234, 100, 0.08);
  background: radial-gradient(circle at 50% 0%, rgba(209, 250, 229, 0.45) 0%, rgba(255, 255, 255, 0.95) 70%);
}

body[data-theme="dawn"] .coding-profile-card[data-platform="hackerrank"] .profile-card-action-btn:hover,
body[data-theme="dawn"] .coding-profile-card[data-platform="hackerrank"]:hover .profile-card-action-btn {
  background: rgba(5, 150, 105, 0.16);
  border-color: rgba(5, 150, 105, 0.5);
  color: #064e3b;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.15);
}

/* Card External Link in Dawn mode */
body[data-theme="dawn"] .card-ext-link {
  background: rgba(15, 23, 42, 0.04);
  color: #64748b;
}

body[data-theme="dawn"] .card-ext-link:hover {
  background: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

body[data-theme="dawn"] .card-meta-row {
  border-color: rgba(15, 23, 42, 0.06);
}

/* Action Button in Dawn Mode: Default legible dark slate text */
body[data-theme="dawn"] .profile-card-action-btn {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
  font-weight: 600;
}

body[data-theme="dawn"] .profile-card-action-btn i {
  color: inherit;
}

body[data-theme="dawn"] .profile-card-action-btn:hover,
body[data-theme="dawn"] .coding-profile-card:hover .profile-card-action-btn {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.22);
  color: #0f172a;
}

.stats-card {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(13, 16, 32, 0.58) 50%, rgba(8, 10, 24, 0.68) 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.18), inset 0 0 32px rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(30px) saturate(210%);
  -webkit-backdrop-filter: blur(30px) saturate(210%);
  padding: 1.4rem 1.7rem;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  min-height: auto;
  contain: layout;
}

/* Tab content wrapper */
#stats-tab-content {
  min-height: auto;
}

body[data-theme="dawn"] .stats-card {
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 100%);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 0 32px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
}

.stats-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.18), inset 0 0 40px rgba(255, 255, 255, 0.02);
}

body[data-theme="dawn"] .stats-card:hover {
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 35px 70px rgba(15, 23, 42, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.75), inset 0 0 40px rgba(255, 255, 255, 0.15);
}

/* Header Section */
.stats-card .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Navigation Tabs */
.stats-card .tabs {
  display: flex;
  gap: 18px;
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
  flex-wrap: wrap;
}

.stats-card .tab {
  font-family: var(--hero-title);
  font-size: 0.82rem;
  letter-spacing: 1.2px;
  color: var(--muted);
  cursor: pointer;
  padding-bottom: 5px;
  position: relative;
  transition: color 0.25s ease;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tab-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.tab-brand-icon svg {
  display: block;
}

.stats-card .tab:hover {
  color: var(--text);
}

.stats-card .tab.active {
  color: var(--text);
}

.stats-card .tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* View Profile Button */
.stats-card .view-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(180, 130, 255, 0.08);
  border: 1px solid rgba(180, 130, 255, 0.22);
  border-radius: 99px;
  text-decoration: none;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}

.stats-card .view-profile-btn:hover {
  background: rgba(180, 130, 255, 0.18);
  border-color: rgba(180, 130, 255, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(180, 130, 255, 0.25);
}

.stats-card .view-profile-btn i {
  color: var(--accent-warm);
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.stats-card .view-profile-btn:hover i {
  transform: translate(2px, -2px);
}

body[data-theme="dawn"] .stats-card .view-profile-btn {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.22);
  color: #312e81;
}

body[data-theme="dawn"] .stats-card .view-profile-btn:hover {
  background: rgba(79, 70, 229, 0.18);
  border-color: rgba(79, 70, 229, 0.45);
  color: #1e1b4b;
}

body[data-theme="dawn"] .stats-card .view-profile-btn i {
  color: #4f46e5;
}

/* Upper Summary Cards: 3 Metrics in 1 Row */
.stats-card .summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .stats-card .summary-grid {
    grid-template-columns: 1fr;
  }
}

.stats-card .stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease, background-color 0.3s ease;
}

body[data-theme="dawn"] .stats-card .stat-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.stats-card .stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

body[data-theme="dawn"] .stats-card .stat-card:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.15);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.stats-card .stat-value {
  font-family: var(--hero-title);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}

.stats-card .stat-label {
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.stats-card .stat-sub {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.4px;
}

/* Metric Colors */
.stats-card .val-purple {
  color: #b482ff;
  text-shadow: 0 0 10px rgba(180, 130, 255, 0.25);
}

.stats-card .val-blue {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.stats-card .val-orange {
  color: #f59e0b;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.stats-card .val-green {
  color: #22c55e;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.25);
}

/* Main Split Panels: 2 Columns */
.stats-card .main-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .stats-card .main-content {
    grid-template-columns: 1fr;
  }
}

.stats-card .panel-box {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body[data-theme="dawn"] .stats-card .panel-box {
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.04);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.stats-card .box-header {
  font-family: var(--hero-title);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stats-card .box-header::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 12px;
  background-color: var(--accent);
  border-radius: 99px;
  box-shadow: 0 0 8px var(--accent);
}

/* Circular Arc Display */
.stats-card .circles-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.stats-card .circle-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stats-card .progress-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  background: rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

body[data-theme="dawn"] .stats-card .progress-circle {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.05);
}

.stats-card .circle-easy {
  border: 4px solid rgba(34, 197, 94, 0.12);
  border-left-color: #22c55e;
  border-top-color: #22c55e;
}

.stats-card .circle-medium {
  border: 4px solid rgba(245, 158, 11, 0.12);
  border-left-color: #f59e0b;
  border-top-color: #f59e0b;
}

.stats-card .circle-hard {
  border: 4px solid rgba(239, 68, 68, 0.12);
  border-left-color: #ef4444;
}

.stats-card .circle-val {
  font-family: var(--hero-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.stats-card .circle-total {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 1px;
}

.stats-card .circle-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.stats-card .lbl-easy { color: #22c55e; }
.stats-card .lbl-medium { color: #f59e0b; }
.stats-card .lbl-hard { color: #ef4444; }

/* Progress Bars rows */
.stats-card .bar-row {
  margin-bottom: 16px;
}

.stats-card .bar-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 6px;
  letter-spacing: 1px;
  font-weight: 600;
}

.stats-card .bar-label {
  font-weight: 700;
}

.stats-card .bar-count {
  color: var(--muted);
}

.stats-card .bar-count span {
  color: var(--text);
  font-weight: 700;
}

.stats-card .bar-bg {
  width: 100%;
  height: 6px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 99px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

body[data-theme="dawn"] .stats-card .bar-bg {
  background-color: rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.stats-card .bar-fill {
  height: 100%;
  border-radius: 99px;
  box-shadow: 0 0 8px currentColor;
}

.stats-card .fill-easy {
  background-color: #22c55e;
  color: rgba(34, 197, 94, 0.4);
}

.stats-card .fill-medium {
  background-color: #f59e0b;
  color: rgba(245, 158, 11, 0.4);
}

.stats-card .fill-hard {
  background-color: #ef4444;
  color: rgba(239, 68, 68, 0.4);
}

/* Meta Info Rows */
.stats-card .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.stats-card .meta-label {
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 500;
}

.stats-card .meta-val-blue {
  color: #38bdf8;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
}

.stats-card .meta-val-orange {
  color: #f59e0b;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

/* Heatmap Section */
.stats-card .heatmap-box {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body[data-theme="dawn"] .stats-card .heatmap-box {
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.04);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.stats-card .heatmap-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

body[data-theme="dawn"] .stats-card .heatmap-wrapper {
  scrollbar-color: rgba(15, 23, 42, 0.1) transparent;
}

/* Customize scrollbar for heatmap overflow */
.stats-card .heatmap-wrapper::-webkit-scrollbar {
  height: 4px;
}

.stats-card .heatmap-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.stats-card .heatmap-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
}

body[data-theme="dawn"] .stats-card .heatmap-wrapper::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.08);
}

.stats-card .heatmap-cell {
  width: clamp(8px, 1vw, 10px);
  height: clamp(8px, 1vw, 10px);
  border-radius: 2px;
  flex-shrink: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.stats-card .heatmap-cell:hover {
  transform: scale(1.18);
  filter: brightness(1.2);
}

.stats-card .cell-0 {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

body[data-theme="dawn"] .stats-card .cell-0 {
  background-color: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.stats-card .cell-1 { background-color: rgba(34, 197, 94, 0.15); }
.stats-card .cell-2 { background-color: rgba(34, 197, 94, 0.35); }
.stats-card .cell-3 { background-color: rgba(34, 197, 94, 0.65); }
.stats-card .cell-4 { background-color: rgba(34, 197, 94, 0.95); box-shadow: 0 0 6px rgba(34, 197, 94, 0.4); }

/* LeetCode badges */
.stats-card .badges-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 480px) {
  .stats-card .badges-container {
    grid-template-columns: 1fr;
  }
}

.stats-card .badge-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.25s ease, background-color 0.25s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stats-card .badge-knight {
  background: rgba(245, 158, 11, 0.03);
  border-color: rgba(245, 158, 11, 0.15);
}

.stats-card .badge-knight:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.06);
}

.stats-card .badge-streak {
  background: rgba(56, 189, 248, 0.03);
  border-color: rgba(56, 189, 248, 0.15);
}

.stats-card .badge-streak:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.06);
}

body[data-theme="dawn"] .stats-card .badge-item {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-theme="dawn"] .stats-card .badge-knight {
  background: rgba(254, 243, 199, 0.55);
  border-color: rgba(245, 158, 11, 0.2);
}

body[data-theme="dawn"] .stats-card .badge-knight:hover {
  background: rgba(254, 243, 199, 0.85);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.15);
}

body[data-theme="dawn"] .stats-card .badge-streak {
  background: rgba(224, 242, 254, 0.55);
  border-color: rgba(56, 189, 248, 0.2);
}

body[data-theme="dawn"] .stats-card .badge-streak:hover {
  background: rgba(224, 242, 254, 0.85);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.15);
}

.stats-card .badge-icon-knight {
  font-size: 1.8rem;
  color: #f59e0b;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.3));
}

.stats-card .badge-icon-streak {
  font-size: 1.8rem;
  color: #38bdf8;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.3));
}

.stats-card .badge-name {
  font-family: var(--hero-title);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}

.stats-card .badge-desc {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.3;
}

/* LeetCode circular progress */
.stats-card .solve-rate-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;  
}

.stats-card .solve-rate-left {
  flex: 1;
  display: flex;
  justify-content: center;
}

.stats-card .solve-rate-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .stats-card .solve-rate-container {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .stats-card .solve-rate-left,
  .stats-card .solve-rate-right {
    justify-content: center;
    width: 100%;
  }
  .stats-card .difficulty-cards-stack {
    align-items: center !important;
  }
}

.stats-card .circle-indicator-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 146px;
  height: 146px;
  flex-shrink: 0;
}

.stats-card .circle-indicator-wrapper svg {
  width: 100%;
  height: 100%;
}

/* Background circular indicator tracks */
.stats-card svg circle#graycircle,
.stats-card svg circle.track-segment {
  stroke: rgba(255, 255, 255, 0.08) !important;
}

body[data-theme="dawn"] .stats-card svg circle#graycircle,
body[data-theme="dawn"] .stats-card svg circle.track-segment {
  stroke: rgba(15, 23, 42, 0.12) !important;
}

.stats-card .circle-inner-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
}

.stats-card .circle-inner-content .solved-count {
  font-family: var(--hero-title);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stats-card .circle-inner-content .total-count {
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 1px;
}

.stats-card .circle-inner-content .solved-label {
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  margin-top: 4px;
  white-space: nowrap;
}

/* Diff Legend Item Interactive Hover */
.diff-legend-item {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
}

.diff-legend-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

body[data-theme="dawn"] .diff-legend-item:hover {
  background: rgba(15, 23, 42, 0.06);
}


.stats-card .difficulty-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
  width: 100%;
  align-items: center;
}

.stats-card .diff-card-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

body[data-theme="dawn"] .stats-card .diff-card-item {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.stats-card .diff-card-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  transform: translateX(2px);
}

body[data-theme="dawn"] .stats-card .diff-card-item:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.15);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.stats-card .diff-card-item .card-label-easy {
  color: #06b6d4;
  font-family: var(--hero-title);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.stats-card .diff-card-item .card-label-medium {
  color: #fbbf24;
  font-family: var(--hero-title);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.stats-card .diff-card-item .card-label-hard {
  color: #ef4444;
  font-family: var(--hero-title);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.stats-card .diff-card-item .card-values {
  color: var(--text);
  font-family: var(--hero-title);
  font-size: 0.95rem;
  font-weight: 600;
}

.stats-card .diff-card-item .card-values span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

/* HackerRank matrix and dashboard layout */
.hackerrank-matrix-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

.stats-card .matrix-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.stats-card .matrix-row:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.03);
}

body[data-theme="dawn"] .stats-card .matrix-row {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(15, 23, 42, 0.04);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
  margin-bottom: 4px;
}

body[data-theme="dawn"] .stats-card .matrix-row:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

/* HackerRank Multi-color mappings */
.hr-green {
  color: #22c55e !important;
}
.hr-green-fill {
  background: #22c55e !important;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4) !important;
}

.hr-cyan {
  color: #06b6d4 !important;
}
.hr-cyan-fill {
  background: #06b6d4 !important;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.4) !important;
}

.hr-yellow {
  color: #fbbf24 !important;
}
.hr-yellow-fill {
  background: #fbbf24 !important;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.4) !important;
}

.hr-blue {
  color: #38bdf8 !important;
}
.hr-blue-fill {
  background: #38bdf8 !important;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4) !important;
}

.hr-orange {
  color: #f97316 !important;
}
.hr-orange-fill {
  background: #f97316 !important;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.4) !important;
}

.hr-purple {
  color: #a855f7 !important;
}
.hr-purple-fill {
  background: #a855f7 !important;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.4) !important;
}

.matrix-name {
  width: 130px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.matrix-stars {
  color: #fbbf24; /* HackerRank Gold */
  letter-spacing: 2px;
  font-size: 0.82rem;
  width: 85px;
}

.matrix-stars .star-empty {
  color: rgba(148, 163, 184, 0.25); /* Adapts to dark/light theme */
}

.matrix-bar-bg {
  flex-grow: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

body[data-theme="dawn"] .matrix-bar-bg {
  background: rgba(15, 23, 42, 0.08);
}

.matrix-bar-fill {
  height: 100%;
  background: #2ec866; /* HackerRank Brand Green */
  border-radius: 99px;
  box-shadow: 0 0 8px rgba(46, 200, 102, 0.4);
}

.matrix-score {
  width: 45px;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

/* HackerRank Score Circle & Breakdown */
.hackerrank-right-content {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 16px;
  align-items: center;
  height: 100%;
  padding: 6px 0;
}

.hackerrank-score-circle-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hackerrank-score-circle-wrapper .circle-indicator-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 2px;
}

.hackerrank-score-circle-wrapper .circle-inner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hackerrank-score-circle-wrapper .circle-inner-content .score-val {
  font-family: var(--hero-title);
  font-size: 2.2rem;
  font-weight: 700;
  color: #22c55e;
  filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.35));
}

.hackerrank-score-circle-wrapper .circle-inner-content .score-total {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: -2px;
}

.hackerrank-score-circle-wrapper .score-footer {
  margin-top: 8px;
  font-family: var(--hero-title);
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  text-align: center;
}

.hackerrank-score-circle-wrapper .score-footer span {
  font-size: 0.65rem;
  color: var(--text);
}

.hackerrank-right-content .breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hackerrank-right-content .breakdown-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hackerrank-right-content .breakdown-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hackerrank-right-content .breakdown-label {
  color: #2ec866;
  text-transform: uppercase;
}

.hackerrank-right-content .breakdown-val {
  color: var(--text);
}

.hackerrank-right-content .breakdown-val span {
  color: var(--muted);
  font-size: 0.68rem;
}

.hackerrank-right-content .breakdown-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  overflow: hidden;
}

body[data-theme="dawn"] .hackerrank-right-content .breakdown-track {
  background: rgba(15, 23, 42, 0.08);
}

.hackerrank-right-content .breakdown-fill {
  height: 100%;
  background: #2ec866;
  border-radius: 99px;
}

@media (max-width: 768px) {
  .stats-card .hackerrank-bottom-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

.stats-card .heatmap-legend {
  margin-top: 10px !important;
}

#stats-panel-section .section-heading {
  align-self: flex-start;
  width: 100%;
  max-width: 100%;
  margin-bottom: clamp(2.2rem, 3.8vw, 3.2rem);
}

/* HackerRank badge hexagons */
.stats-card .hackerrank-badges-section {
  width: 100%;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.stats-card .badges-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stats-card .badges-title-row i {
  color: var(--text);
  font-size: 1.1rem;
}

.stats-card .badges-title {
  font-family: var(--hero-title);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
}

.stats-card .badges-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;

}

.stats-card .badge-hexagon-wrapper {
  position: relative;
  width: 110px;
  height: 126px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

.stats-card .badge-hexagon-wrapper:hover {
  transform: translateY(-4px) scale(1.05);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
}

.stats-card .badge-hexagon-border {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.05) 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  padding: 1.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body[data-theme="dawn"] .stats-card .badge-hexagon-border {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.05) 100%);
}

.stats-card .badge-hexagon-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: #1e293b;
  text-align: center;
}

body[data-theme="dawn"] .stats-card .badge-hexagon-inner {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: #0f172a;
}

/* Ruby colored badge */
.stats-card .badge-ruby .badge-hexagon-border {
  background: linear-gradient(180deg, rgba(251, 146, 60, 0.6) 0%, rgba(251, 146, 60, 0.2) 100%);
}

.stats-card .badge-ruby .badge-hexagon-inner {
  background: linear-gradient(135deg, #ffbc99 0%, #f0a37b 100%);
  color: #431407;
}

.stats-card .badge-hexagon-inner .badge-icon {
  font-size: 1.6rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
}

.stats-card .badge-hexagon-inner .badge-text-icon {
  font-family: var(--hero-title);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.stats-card .badge-hexagon-inner .badge-label {
  font-family: var(--body-font);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2px;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stats-card .badge-hexagon-inner .badge-stars {
  color: #f59e0b;
  font-size: 0.62rem;
  letter-spacing: 1px;
}

/* GEEKSFORGEEKS  */
.stats-card .main-content.gfg-three-columns {
  grid-template-columns: 1.35fr 1.35fr 1fr;
  gap: 16px;
}

@media (max-width: 992px) {
  .stats-card .main-content.gfg-three-columns {
    grid-template-columns: 1fr;
  }
}

.gfg-centered-header {
  justify-content: center !important;
}

.gfg-centered-header::before {
  display: none !important;
}

.gfg-problems-overview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 15px 0;
  width: 100%;
}

@media (max-width: 1200px) {
  .gfg-problems-overview {
    flex-direction: column;
    gap: 16px;
  }
}

.gfg-donut-wrapper {
  position: relative;
  width: 146px;
  height: 146px;
  flex-shrink: 0;
}

.gfg-donut-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gfg-solve-num {
  font-family: var(--hero-title);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.gfg-solve-lbl {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
  white-space: nowrap;
}

.gfg-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gfg-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}

.legend-dot.school { background-color: #38bdf8; }
.legend-dot.basic { background-color: #84cc16; }
.legend-dot.easy { background-color: #22c55e; }
.legend-dot.medium { background-color: #f59e0b; }
.legend-dot.hard { background-color: #ef4444; }

/* GFG Metrics List */
.gfg-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  justify-content: center;
}

.gfg-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform 0.2s ease, background-color 0.25s ease, border-color 0.25s ease;
  height: 52px;
}

body[data-theme="dawn"] .gfg-metric-row {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.gfg-metric-row.clickable {
  cursor: pointer;
}

.gfg-metric-row.clickable:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-strong);
}

body[data-theme="dawn"] .gfg-metric-row.clickable:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.15);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.gfg-metric-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gfg-metric-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.gfg-metric-icon.score-icon { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.gfg-metric-icon.solved-icon { background: rgba(56, 189, 248, 0.1); color: #38bdf8; }
.gfg-metric-icon.rank-icon { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.gfg-metric-icon.articles-icon { background: rgba(249, 115, 22, 0.1); color: #f97316; }

.gfg-metric-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.gfg-metric-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gfg-metric-val-pill {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 99px;
  font-family: var(--hero-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  min-width: 44px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.gfg-metric-val-pill.pill-green { border-color: rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.04); }
.gfg-metric-val-pill.pill-blue { border-color: rgba(56, 189, 248, 0.3); background: rgba(56, 189, 248, 0.04); }
.gfg-metric-val-pill.pill-purple { border-color: rgba(168, 85, 247, 0.3); background: rgba(168, 85, 247, 0.04); }
.gfg-metric-val-pill.pill-orange { border-color: rgba(249, 115, 22, 0.3); background: rgba(249, 115, 22, 0.04); }

body[data-theme="dawn"] .gfg-metric-val-pill {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
  color: var(--text);
}

body[data-theme="dawn"] .gfg-metric-val-pill.pill-green { border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.08); }
body[data-theme="dawn"] .gfg-metric-val-pill.pill-blue { border-color: rgba(56, 189, 248, 0.4); background: rgba(56, 189, 248, 0.08); }
body[data-theme="dawn"] .gfg-metric-val-pill.pill-purple { border-color: rgba(168, 85, 247, 0.4); background: rgba(168, 85, 247, 0.08); }
body[data-theme="dawn"] .gfg-metric-val-pill.pill-orange { border-color: rgba(249, 115, 22, 0.4); background: rgba(249, 115, 22, 0.08); }

.gfg-metric-right .chevron {
  font-size: 0.75rem;
  color: var(--muted);
}

/* GFG Streaks Box */
.gfg-streaks-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gfg-streak-banner {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
  transition: transform 0.25s ease;
  height: 54px;
}

.gfg-streak-banner:hover {
  transform: translateY(-2px);
}

.gfg-streak-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.banner-fire-wrapper {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.banner-fire {
  font-size: 1.15rem;
  color: #fff;
  animation: fire-flicker 1.5s infinite alternate;
}

@keyframes fire-flicker {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255,255,255,0.5)); }
  100% { transform: scale(1.15); filter: drop-shadow(0 0 6px rgba(255,255,255,0.8)); }
}

.gfg-banner-text {
  font-family: var(--hero-title);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.gfg-streak-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform 0.2s ease;
  height: 76px;
}

body[data-theme="dawn"] .gfg-streak-card {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.gfg-streak-card:hover {
  transform: translateY(-2px);
}

.gfg-streak-icon-box {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

body[data-theme="dawn"] .gfg-streak-icon-box {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
}

.gfg-streak-icon-gold {
  color: #f59e0b;
}

.gfg-streak-details {
  display: flex;
  flex-direction: column;
}

.gfg-streak-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.gfg-streak-value {
  font-family: var(--hero-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2px;
  line-height: 1.1;
}