:root {
  --bg-deep: #030305;
  --bg-surface: rgba(20, 20, 30, 0.4);
  --bg-glass: rgba(255, 255, 255, 0.02);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-light: rgba(255, 255, 255, 0.15);
  --color-cyber: #ff2a5f;
  --color-cyber-glow: rgba(255, 42, 95, 0.6);
  --color-prog: #00e5ff;
  --color-prog-glow: rgba(0, 229, 255, 0.6);
  --color-ai: #b534ff;
  --color-ai-glow: rgba(181, 52, 255, 0.6);
  --gold: #f59e0b;
  --emerald: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Outfit, sans-serif;
}
body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -3;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(255, 42, 95, 0.06) 0,
      transparent 40%
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(0, 229, 255, 0.06) 0,
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(181, 52, 255, 0.06) 0,
      transparent 50%
    );
  filter: blur(60px);
  animation: 15s ease-in-out infinite alternate pulse-mesh;
}
@keyframes pulse-mesh {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(
    circle at center,
    black 20%,
    transparent 80%
  );
}
.particles {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
}
.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: linear infinite float-up;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}
@keyframes float-up {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
    scale: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) scale(0.5);
    opacity: 0;
  }
}
.learning-header {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 96%;
  max-width: 1440px;
  z-index: 1000;
}
.learning-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 18, 24, 0.7);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 10px 16px 10px 24px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.learning-nav:hover {
  background: rgba(22, 22, 30, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.nav-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: opacity 0.3s;
}
.brand-link:hover {
  opacity: 0.9;
}
.brand-logo {
  width: 44px;
  height: 44px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}
.brand-link:hover .brand-logo {
  background: linear-gradient(
    135deg,
    rgba(0, 229, 255, 0.2),
    rgba(0, 229, 255, 0.05)
  );
  border-color: rgba(0, 229, 255, 0.3);
  color: var(--color-prog);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
  transform: scale(1.05);
}
.brand-info {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
  line-height: 1.1;
}
.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 4px;
}
.nav-center {
  display: flex;
  flex: 1;
  justify-content: center;
  margin: 0 20px;
  min-width: 0;
}
.breadcrumb-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 8px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  white-space: nowrap;
}
.breadcrumb-container::-webkit-scrollbar {
  display: none;
}
.breadcrumb-current,
.breadcrumb-link {
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 14px;
  text-decoration: none;
  transition: 0.3s;
}
.breadcrumb-link {
  color: var(--text-muted);
}
.breadcrumb-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.breadcrumb-divider {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.15);
  font-weight: 300;
}
.breadcrumb-current {
  color: var(--color-prog);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.15);
  font-weight: 600;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}
.user-stats {
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: 0.3s;
  cursor: default;
}
.stat-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
.stat-item i {
  font-size: 1.1rem;
}
.stat-item.energy i {
  color: var(--emerald);
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.6));
}
.stat-item.xp i {
  color: #00e5ff;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.6));
}
.stat-item.streak i {
  color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
}
.stat-value {
  color: #fff;
}
.stat-label,
.stat-max {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 2px;
}
.nav-divider {
  width: 1px;
  height: 32px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.action-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
}
.action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.pulse-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: var(--color-cyber);
  border-radius: 50%;
  border: 2px solid #16161e;
  box-shadow: 0 0 10px var(--color-cyber);
  animation: 2s infinite pulse-dot;
}
@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 42, 95, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(255, 42, 95, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 42, 95, 0);
  }
}
.profile-dropdown-toggle {
  display: block;
  border-radius: 14px;
  transition: transform 0.3s;
}
.profile-dropdown-toggle:hover {
  transform: scale(1.05);
}
.avatar-container {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.1);
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  transition: border-color 0.3s;
}
.profile-dropdown-toggle:hover .avatar-container {
  border-color: rgba(0, 229, 255, 0.4);
}
.avatar-container img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}
.status-ring {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--emerald);
  border: 2px solid #16161e;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}
@media (max-width: 1280px) {
  .nav-center {
    display: none;
  }
}
@media (max-width: 992px) {
  .nav-divider,
  .user-stats {
    display: none;
  }
}
@media (max-width: 640px) {
  .learning-header {
    top: 12px;
    width: calc(100% - 24px);
  }
  .learning-nav {
    padding: 8px 12px;
    border-radius: 20px;
  }
  .brand-subtitle {
    display: none;
  }
  .brand-logo {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  .brand-name {
    font-size: 1.1rem;
  }
  .action-btn {
    width: 38px;
    height: 38px;
  }
  .avatar-container {
    width: 40px;
    height: 40px;
  }
}
.learning-layout {
  display: flex;
  justify-content: center;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  padding-top: 120px;
  gap: 40px;
}
.sidebar-widget {
  width: 300px;
  height: fit-content;
  position: sticky;
  top: 120px;
  background: rgba(18, 18, 22, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  margin-left: 20px;
}
.user-welcome {
  display: flex;
  align-items: center;
  gap: 16px;
}
.user-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-prog);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow:
    0 0 0 4px rgba(0, 229, 255, 0.1),
    0 0 25px rgba(0, 229, 255, 0.4);
  flex-shrink: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.user-welcome-info {
  display: flex;
  flex-direction: column;
}
.user-welcome-info h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 2px;
}
.user-welcome-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.widget-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  width: 100%;
}
.widget-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.widget-title {
  font-size: 1.1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.widget-title i {
  color: var(--color-prog);
}
.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-prog), var(--color-cyber));
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}
.map-progress-gradient {
  background: linear-gradient(90deg, #00e5ff, #ff2a5f) !important;
}
.progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.badges-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.badge-item {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(20, 20, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.badge-item:hover {
  transform: translateY(-2px);
  background: rgba(30, 30, 35, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}
.badge-item.shield {
  color: #fbbf24;
}
.badge-item.drop {
  color: #f59e0b;
}
.badge-item.code {
  color: #6b7280;
}
.badge-item.locked {
  color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}
.quest-card {
  background: rgba(25, 25, 32, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quest-card h4 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}
.quest-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 4px;
}
.quest-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}
.quest-bar {
  height: 100%;
  background: var(--color-prog);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}
.quest-progress-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  margin-bottom: 4px;
  font-weight: 500;
}
.quest-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 10px;
  background: rgba(0, 229, 255, 0.05);
  color: var(--color-prog);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.3s;
  cursor: pointer;
}
.quest-btn:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: rgba(0, 229, 255, 0.6);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}
.map-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-bottom: 250px;
}
.map-header {
  text-align: center;
  margin-bottom: 140px;
  position: relative;
  z-index: 10;
  padding: 0 20px;
}
.map-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 255, 0.05);
  color: var(--color-prog);
  border: 1px solid rgba(0, 229, 255, 0.15);
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.map-header h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #f8fafc;
  letter-spacing: -1px;
}
.map-header p {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.map-nodes-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 1100px;
  margin: 0 auto;
}
.map-legend {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(15, 15, 22, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 20px;
  display: flex;
  gap: 20px;
  z-index: 10;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.legend-item .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.legend-item .dot.mastered {
  background: var(--color-cyber);
  box-shadow: 0 0 8px var(--color-cyber);
}
.legend-item .dot.active {
  background: var(--color-prog);
  box-shadow: 0 0 8px var(--color-prog);
}
.legend-item .dot.locked {
  background: rgba(255, 255, 255, 0.2);
}
.svg-path-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.neon-path-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.03);
  stroke-width: 16;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.neon-path-active {
  fill: none;
  stroke: var(--color-prog);
  stroke-width: 6;
  stroke-linecap: round;
  filter: drop-shadow(0 0 12px var(--color-prog-glow));
  stroke-dasharray: 12 24;
  animation: 20s linear infinite reverse flowDash;
  vector-effect: non-scaling-stroke;
}
.mobile-path {
  display: none;
}
@media (max-width: 900px) {
  .desktop-path {
    display: none;
  }
  .mobile-path {
    display: inline;
  }
}
@keyframes flowDash {
  to {
    stroke-dashoffset: 1000;
  }
}
.node-group {
  position: absolute;
  z-index: 2;
  width: 0;
  height: 0;
}
.node-btn {
  position: absolute;
  top: -65px;
  left: -65px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  outline: 0;
  background: rgba(15, 15, 22, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 30px rgba(255, 255, 255, 0.03),
    0 15px 35px rgba(0, 0, 0, 0.6);
  transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.node-btn::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent,
    var(--node-color),
    transparent 30%
  );
  animation: 4s linear infinite rotate-border;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: -1;
  padding: 4px;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
@keyframes rotate-border {
  100% {
    transform: rotate(360deg);
  }
}
.progress-ring {
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  pointer-events: none;
  width: 154px;
  height: 154px;
}
.progress-ring circle {
  fill: transparent;
  stroke: var(--node-color);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 440;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 12px var(--node-glow));
  transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}
.node-btn i.main-icon {
  font-size: 2.8rem;
  color: #fff;
  background: linear-gradient(135deg, #fff 0, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
  transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
}
.node-group:hover .node-btn:not(.locked) {
  transform: scale(1.12) translateY(-12px);
  border-color: rgba(var(--node-color-rgb), 0.4);
  background: rgba(22, 22, 32, 0.85);
  box-shadow:
    inset 0 0 50px rgba(var(--node-color-rgb), 0.1),
    0 30px 60px rgba(0, 0, 0, 0.7),
    0 0 35px var(--node-glow);
}
.node-group:hover .node-btn:not(.locked)::before {
  opacity: 1;
}
.node-group:hover .node-btn:not(.locked) i.main-icon {
  transform: scale(1.1);
}
.node-group.active .node-btn {
  animation: 3s infinite node-pulse;
}
@keyframes node-pulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(var(--node-color-rgb), 0.5),
      inset 0 0 30px rgba(255, 255, 255, 0.03),
      0 15px 35px rgba(0, 0, 0, 0.6);
  }
  70% {
    box-shadow:
      0 0 0 25px rgba(var(--node-color-rgb), 0),
      inset 0 0 30px rgba(255, 255, 255, 0.03),
      0 15px 35px rgba(0, 0, 0, 0.6);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(var(--node-color-rgb), 0),
      inset 0 0 30px rgba(255, 255, 255, 0.03),
      0 15px 35px rgba(0, 0, 0, 0.6);
  }
}
.node-btn.locked {
  cursor: not-allowed;
  background: rgba(10, 10, 15, 0.7);
  border-color: rgba(255, 255, 255, 0.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.node-btn.locked i.main-icon {
  opacity: 0.15;
  filter: grayscale(100%);
}
.lock-overlay {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 44px;
  height: 44px;
  background: linear-gradient(145deg, #2a2a35, #151520);
  border: 1px solid var(--border-glass-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  transition: 0.4s;
  z-index: 3;
}
.node-group:hover .node-btn.locked .lock-overlay {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1) rotate(10deg);
}
.node-group.cyber {
  --node-color: var(--color-cyber);
  --node-glow: var(--color-cyber-glow);
  --node-color-rgb: 255, 42, 95;
}
.node-group.prog {
  --node-color: var(--color-prog);
  --node-glow: var(--color-prog-glow);
  --node-color-rgb: 0, 229, 255;
}
.node-group.ai {
  --node-color: var(--color-ai);
  --node-glow: var(--color-ai-glow);
  --node-color-rgb: 181, 52, 255;
}
.node-info-card {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: 320px;
  background: rgba(15, 15, 22, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 20;
}
.node-info-card::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(15, 15, 22, 0.9);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.4s;
}
.node-group:hover .node-info-card {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.node-group:hover .node-btn:not(.locked) + .node-info-card {
  border-color: rgba(var(--node-color-rgb), 0.3);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(var(--node-color-rgb), 0.15);
}
.node-group:hover .node-btn:not(.locked) + .node-info-card::before {
  border-left-color: rgba(var(--node-color-rgb), 0.3);
  border-top-color: rgba(var(--node-color-rgb), 0.3);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.node-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}
.node-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-mastered {
  background: rgba(255, 42, 95, 0.1);
  color: var(--color-cyber);
  border: 1px solid rgba(255, 42, 95, 0.3);
}
.status-progress {
  background: rgba(0, 229, 255, 0.1);
  color: var(--color-prog);
  border: 1px solid rgba(0, 229, 255, 0.3);
}
.status-locked {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.node-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.node-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-top: 4px;
  margin-bottom: 8px;
}
.node-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.node-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.3s;
}
.node-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.node-action-btn.primary {
  background: rgba(var(--node-color-rgb), 0.15);
  border-color: rgba(var(--node-color-rgb), 0.3);
  color: var(--color-prog);
}
.node-action-btn.primary:hover {
  background: rgba(var(--node-color-rgb), 0.25);
  box-shadow: 0 4px 15px rgba(var(--node-color-rgb), 0.2);
}
.unlock-req {
  font-size: 0.8rem;
  color: #ef4444;
  text-align: center;
  margin-top: 4px;
  padding: 8px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.node-group[style*="top: 10%"] {
  left: 25%;
}
.node-group[style*="top: 45%"] {
  left: 75%;
}
.node-group[style*="top: 80%"] {
  left: 25%;
}
.node-group.active[style*="top: 10%"] {
  left: 50%;
  transform: translateX(-50%);
}
.crown-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.5);
  z-index: 10;
  border: 2px solid #1a1a24;
  animation: 3s ease-in-out infinite float-badge;
}
@keyframes float-badge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
@media (max-width: 900px) {
  .map-nodes-container {
    height: 700px;
    display: block;
    padding: 20px 0;
    width: 100%;
    max-width: 500px;
    margin: 80px auto 0;
    transform: none;
  }
  .node-group[style*="top: 10%"] {
    left: 50% !important;
    transform: none !important;
  }
  .node-group[style*="top: 45%"] {
    left: 25% !important;
    transform: none !important;
  }
  .node-group[style*="top: 80%"] {
    left: 75% !important;
    transform: none !important;
  }
  .map-legend {
    position: absolute;
    top: -65px;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0;
    justify-content: center;
    flex-wrap: wrap;
    width: 90%;
    max-width: 400px;
    z-index: 20;
  }
  .svg-path-container {
    display: block;
  }
  .map-nodes-container::before {
    display: none;
  }
  .node-group {
    position: absolute !important;
    display: block !important;
    width: 0 !important;
    height: 0 !important;
    transform: none !important;
  }
  .node-btn {
    position: absolute !important;
    top: -55px !important;
    left: -55px !important;
    width: 110px !important;
    height: 110px !important;
    flex-shrink: 0;
  }
  .progress-ring {
    width: 134px !important;
    height: 134px !important;
    top: -12px !important;
    left: -12px !important;
  }
  .node-btn i.main-icon {
    font-size: 2.2rem !important;
  }
  .crown-badge {
    width: 32px !important;
    height: 32px !important;
    font-size: 1rem !important;
    top: -5px !important;
    right: -5px !important;
  }
  .node-group:hover .node-btn:not(.locked) {
    transform: translateY(-8px) !important;
  }
  .node-info-card {
    position: absolute !important;
    top: 70px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    width: 220px !important;
    padding: 12px !important;
    z-index: 30;
  }
  .node-btn:focus + .node-info-card,
  .node-group:hover .node-info-card {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) !important;
  }
  .node-info-card::before {
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg) !important;
  }
  .node-desc,
  .node-meta {
    display: none !important;
  }
  .node-title {
    font-size: 1rem !important;
    text-align: center;
    width: 100%;
  }
  .card-header {
    flex-direction: column;
    gap: 5px;
  }
}
@media (max-width: 600px) {
  .node-btn {
    top: -50px !important;
    left: -50px !important;
    width: 100px !important;
    height: 100px !important;
  }
  .progress-ring {
    width: 124px !important;
    height: 124px !important;
    top: -12px !important;
    left: -12px !important;
  }
  .node-btn i.main-icon {
    font-size: 2rem !important;
  }
  .node-info-card {
    top: 60px !important;
    width: 200px !important;
  }
}
@media (max-width: 1100px) {
  .learning-layout {
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    gap: 30px;
  }
  .sidebar-widget {
    width: 90%;
    max-width: 600px;
    position: relative;
    top: 0;
    margin-left: 0;
    margin-bottom: 10px;
  }
  .map-viewport {
    width: 100%;
    padding-bottom: 100px;
  }
}
@media (max-width: 768px) {
  .map-header {
    margin-bottom: 80px;
    padding: 0 15px;
  }
  .map-header h1 {
    font-size: 2.5rem;
  }
  .map-header p {
    font-size: 1rem;
  }
}
.learning-map-page .journey-hud-wrapper {
  top: 20px;
  padding: 0 clamp(16px, 3vw, 48px);
}
.learning-map-page .journey-hud-bar {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1520px;
  height: 82px;
  padding: 0 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: linear-gradient(
    110deg,
    rgba(16, 24, 40, 0.96),
    rgba(10, 14, 27, 0.91) 54%,
    rgba(12, 18, 34, 0.94)
  );
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.32),
    0 2px 0 rgba(255, 255, 255, 0.04) inset,
    0 -1px 0 rgba(2, 6, 23, 0.5) inset;
}
.learning-map-page .journey-hud-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(34, 211, 238, 0.08),
      transparent 22%,
      transparent 76%,
      rgba(139, 92, 246, 0.08)
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.07),
      transparent 18%,
      transparent 82%,
      rgba(255, 255, 255, 0.04)
    );
}
.learning-map-page .journey-hud-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 20px;
}
.learning-map-page .journey-hud-left,
.learning-map-page .journey-hud-right {
  min-width: 0;
  flex: none;
}
.learning-map-page .journey-hud-left {
  gap: 16px;
}
.learning-map-page .journey-hud-right {
  justify-self: end;
  gap: 16px;
}
.learning-map-page .journey-brand {
  flex-shrink: 0;
  gap: 11px;
}
.learning-map-page .journey-brand:hover {
  opacity: 1;
}
.learning-map-page .journey-brand-icon {
  position: relative;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.26);
  border-radius: 13px;
  background: linear-gradient(
    145deg,
    rgba(34, 211, 238, 0.2),
    rgba(59, 130, 246, 0.11)
  );
  box-shadow:
    0 8px 20px rgba(8, 145, 178, 0.15),
    0 1px 0 rgba(255, 255, 255, 0.16) inset;
}
.learning-map-page .journey-brand-icon::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
}
.learning-map-page .journey-brand:hover .journey-brand-icon {
  transform: translateY(-1px);
  border-color: rgba(103, 232, 249, 0.48);
  background: linear-gradient(
    145deg,
    rgba(34, 211, 238, 0.27),
    rgba(99, 102, 241, 0.18)
  );
}
.learning-map-page .journey-brand-icon i {
  position: relative;
  z-index: 1;
  color: #dffcff;
  font-size: 1.05rem;
  background: padding-box initial;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: currentColor;
  filter: none;
}
.learning-map-page .journey-brand-text {
  gap: 4px;
}
.learning-map-page .journey-brand .brand-name {
  color: #f8fafc;
  font-size: 1.06rem;
  font-weight: 750;
  letter-spacing: -0.35px;
  line-height: 1;
}
.learning-map-page .journey-brand .brand-sub {
  color: #67e8f9;
  font-size: 0.59rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.35px;
  text-transform: uppercase;
  background: padding-box initial;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: currentColor;
}
.learning-map-page .journey-brand-divider {
  display: block;
  width: 1px;
  height: 30px;
  flex: 0 0 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(148, 163, 184, 0.42),
    transparent
  );
}
.learning-map-page .journey-breadcrumb {
  min-width: 0;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 11px;
  background: rgba(2, 6, 23, 0.3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.035) inset;
}
.learning-map-page .journey-breadcrumb .crumb {
  gap: 6px;
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}
.learning-map-page .journey-breadcrumb .crumb i {
  width: 14px;
  color: #64748b;
  font-size: 0.74rem;
  text-align: center;
  opacity: 1;
}
.learning-map-page .journey-breadcrumb .crumb:hover {
  color: #e2e8f0;
}
.learning-map-page .journey-breadcrumb .crumb.active {
  color: #e0faff;
  font-weight: 700;
}
.learning-map-page .journey-breadcrumb .crumb.active i {
  color: #22d3ee;
}
.learning-map-page .journey-breadcrumb .crumb-separator {
  margin: 0 1px;
  color: #475569;
  font-size: 0.58rem;
}
.learning-map-page .journey-hud-center {
  display: flex;
  flex: none;
}
.learning-map-page .journey-context {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 182px;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
.learning-map-page .journey-context-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.23);
  border-radius: 10px;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.09);
  font-size: 0.8rem;
}
.learning-map-page .journey-context-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.learning-map-page .journey-context-label {
  color: #64748b;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 1.05px;
  text-transform: uppercase;
}
.learning-map-page .journey-context strong {
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 700;
}
.learning-map-page .journey-stats-group {
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(148, 163, 184, 0.11);
  border-radius: 15px;
  background: rgba(2, 6, 23, 0.28);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.035) inset;
}
.learning-map-page .journey-stats-group .stat-pill {
  position: relative;
  gap: 8px;
  padding: 5px 9px 5px 5px;
  border: 0;
  border-radius: 11px;
  background: 0 0;
}
.learning-map-page .journey-stats-group .stat-pill + .stat-pill::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -1px;
  width: 1px;
  height: 25px;
  transform: translateY(-50%);
  background: rgba(148, 163, 184, 0.12);
}
.learning-map-page .journey-stats-group .stat-pill:hover {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.045);
  transform: none;
}
.learning-map-page .journey-stats-group .stat-icon-wrap {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #111827;
  box-shadow: none;
  font-size: 0.82rem;
}
.learning-map-page .journey-stats-group .stat-pill.battery .stat-icon-wrap {
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.18);
  background: rgba(16, 185, 129, 0.12);
  box-shadow: none;
}
.learning-map-page .journey-stats-group .stat-pill.xp .stat-icon-wrap {
  color: #67e8f9;
  border-color: rgba(34, 211, 238, 0.18);
  background: rgba(34, 211, 238, 0.1);
  box-shadow: none;
}
.learning-map-page .journey-stats-group .stat-pill.streak .stat-icon-wrap {
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.19);
  background: rgba(245, 158, 11, 0.12);
  box-shadow: none;
}
.learning-map-page .journey-stats-group .stat-info {
  gap: 2px;
  line-height: 1;
}
.learning-map-page .journey-stats-group .stat-val {
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.1px;
  font-variant-numeric: tabular-nums;
}
.learning-map-page .journey-stats-group .stat-label {
  color: #94a3b8;
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.75px;
}
.learning-map-page .journey-stats-group .stat-label[lang="ar"] {
  font-family: Tajawal, Outfit, sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0;
  text-transform: none;
}
.learning-map-page .journey-actions-divider {
  display: block;
  width: 1px;
  height: 34px;
  flex: 0 0 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(148, 163, 184, 0.38),
    transparent
  );
}
.learning-map-page .journey-actions {
  gap: 7px;
}
.learning-map-page .journey-action {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  color: #aab8cb;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  font-size: 0.9rem;
}
.learning-map-page .journey-action:hover {
  border-color: rgba(103, 232, 249, 0.34);
  color: #e0faff;
  background: rgba(34, 211, 238, 0.12);
  box-shadow: 0 8px 18px rgba(8, 145, 178, 0.14);
  transform: translateY(-1px);
}
.learning-map-page .journey-action .indicator {
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border: 2px solid #111827;
  background: #fb7185;
  box-shadow: 0 0 0 2px rgba(251, 113, 133, 0.12);
}
.learning-map-page .journey-profile-wrap {
  margin-left: 2px;
}
.learning-map-page .journey-profile {
  width: 42px;
  height: 42px;
  padding: 2px;
  overflow: visible;
  border: 1px solid rgba(103, 232, 249, 0.3);
  border-radius: 13px;
  background: linear-gradient(
    145deg,
    rgba(34, 211, 238, 0.28),
    rgba(99, 102, 241, 0.18)
  );
  box-shadow: 0 5px 16px rgba(8, 145, 178, 0.12);
}
.learning-map-page .journey-profile:hover {
  border-color: rgba(103, 232, 249, 0.55);
  background: linear-gradient(
    145deg,
    rgba(34, 211, 238, 0.44),
    rgba(99, 102, 241, 0.28)
  );
  box-shadow: 0 8px 20px rgba(8, 145, 178, 0.2);
  transform: translateY(-1px);
}
.learning-map-page .journey-profile img {
  border: 2px solid #111827;
  border-radius: 10px;
}
.learning-map-page .journey-profile .status-dot {
  right: -3px;
  bottom: -3px;
  width: 11px;
  height: 11px;
  border: 2px solid #111827;
  background: #34d399;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.12);
}
.learning-map-page .journey-action:focus-visible,
.learning-map-page .journey-brand:focus-visible,
.learning-map-page .journey-breadcrumb a:focus-visible,
.learning-map-page .journey-profile:focus-visible {
  outline: #67e8f9 solid 2px;
  outline-offset: 3px;
}
@media (max-width: 1360px) {
  .learning-map-page .journey-hud-left {
    gap: 0;
  }
  .learning-map-page .journey-brand-divider,
  .learning-map-page .journey-breadcrumb {
    display: none;
  }
}
@media (max-width: 1180px) {
  .learning-map-page .journey-hud-container {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .learning-map-page .journey-hud-center {
    display: none;
  }
}
@media (max-width: 960px) {
  .learning-map-page .journey-hud-bar {
    padding: 0 14px;
  }
  .learning-map-page .journey-hud-right {
    gap: 11px;
  }
  .learning-map-page .journey-stats-group .stat-pill {
    gap: 6px;
    padding-right: 7px;
  }
  .learning-map-page .journey-stats-group .stat-label {
    display: none;
  }
}
@media (max-width: 760px) {
  .learning-map-page .journey-hud-wrapper {
    top: 14px;
    padding: 0 14px;
  }
  .learning-map-page .journey-hud-bar {
    height: 66px;
    padding: 0 12px;
    border-radius: 16px;
  }
  .learning-map-page .journey-hud-container {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  .learning-map-page .journey-brand-text {
    display: flex;
  }
  .learning-map-page .journey-actions-divider,
  .learning-map-page .journey-brand .brand-sub,
  .learning-map-page .journey-stats-group {
    display: none;
  }
  .learning-map-page .journey-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  .learning-map-page .journey-brand .brand-name {
    font-size: 1rem;
  }
  .learning-map-page .journey-actions {
    gap: 6px;
  }
  .learning-map-page .journey-action {
    width: 38px;
    height: 38px;
  }
  .learning-map-page .journey-profile {
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 430px) {
  .learning-map-page .journey-action:first-child {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .learning-map-page .journey-action,
  .learning-map-page .journey-brand-icon,
  .learning-map-page .journey-hud-bar,
  .learning-map-page .journey-profile {
    transition: none;
  }
}
