/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #06070f;
  --bg-card:      #111328;
  --bg-panel:     rgba(13, 15, 30, 0.85);
  --bg-hover:     #181a35;
  --border:       rgba(255,255,255,0.08);
  --border-glow:  rgba(255,107,53,0.35);

  --accent:       #ff6b35;
  --accent-dim:   rgba(255,107,53,0.15);
  --gold:         #FFD700;
  --green:        #10b981;
  --red:          #ef4444;
  --purple:       #7C3AED;

  --text-primary: #F0F2FF;
  --text-sub:     #9BA3C9;
  --text-muted:   #5D6490;

  --font-display: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'Fira Code', monospace;

  --topbar-h:  4.5rem;
  --sidebar-w: 20rem;
  --r:  1rem;
  --rs: 0.5rem;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 14px; /* Base for smaller screens */
}
@media (min-width: 1600px) { html { font-size: 15px; } }
@media (min-width: 1920px) { html { font-size: 16px; } } /* 1080p standard */
@media (min-width: 2560px) { html { font-size: 22px; } } /* 1440p */
@media (min-width: 3840px) { html { font-size: 32px; } } /* 4K */

body {
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== APP BACKGROUND ===== */
.app-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.app-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.25;
}
.app-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(6,7,15,0.7) 0%,
    rgba(6,7,15,0.5) 50%,
    rgba(6,7,15,0.85) 100%
  );
}
.particles {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: floatUp var(--dur) linear infinite;
  animation-delay: var(--delay);
}
@keyframes floatUp {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  10% { opacity: 0.6; }
  90% { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-100vh) scale(1.2); }
}

/* ===== APP SHELL ===== */
#app {
  display: grid;
  grid-template-rows: var(--topbar-h) auto 1fr;
  height: 100vh;
  width: 100%;
  position: relative;
  z-index: 10;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 0.5rem; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== TOPBAR ===== */
#topbar {
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  background: rgba(11, 13, 30, 0.6);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}

.tb-logo-container {
  position: relative;
  height: 4.5rem;
  width: 14rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  flex-shrink: 0;
  cursor: pointer;
}

.tb-logo-banner-img {
  position: relative;
  z-index: 2;
  height: 9rem;
  width: 9rem;
  object-fit: contain;
  mix-blend-mode: screen;
  /* Smooth radial gradient fade to dissolve the square borders and blend the logo naturally */
  -webkit-mask-image: radial-gradient(58% 36% at 50% 46%, black 55%, transparent 82%);
  mask-image: radial-gradient(58% 36% at 50% 46%, black 55%, transparent 82%);
  filter: brightness(1.25) contrast(1.1);
  transition: transform var(--transition), filter var(--transition);
  pointer-events: none;
}

.tb-logo-container:hover .tb-logo-banner-img {
  transform: scale(1.08);
  filter: brightness(1.4) contrast(1.15);
}

/* 4-pointed lens flare stars matching the banner design */
.logo-star-spec {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  fill: #ffffff;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.8));
  opacity: 0.15;
  transform: scale(0.7) rotate(0deg);
  animation: starFlareTwinkle 6s ease-in-out infinite;
  animation-fill-mode: both;
}

@keyframes starFlareTwinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.7) rotate(0deg); }
  50% { opacity: 0.85; transform: scale(1.1) rotate(15deg); filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.9)); }
}

/* Circular glowing star dots matching the banner background */
.logo-star-dot {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  width: 3px;
  height: 3px;
  background: #ffffff;
  border-radius: 50%;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
  opacity: 0.2;
  transform: scale(0.8);
  animation: starDotTwinkle 4s ease-in-out infinite;
  animation-fill-mode: both;
}

@keyframes starDotTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1.2); }
}

.tb-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 2rem;
  flex: 1;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 99px;
  color: var(--text-sub);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.tab-btn svg {
  width: 1.2rem; height: 1.2rem;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.tab-btn:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.tab-btn.active {
  background: linear-gradient(135deg, rgba(255,107,53,0.25) 0%, rgba(124,58,237,0.25) 100%);
  color: var(--text-primary);
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(255,107,53,0.25);
}

.tb-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}
.tb-event {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.tb-countdown {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  background: rgba(0,0,0,0.3);
  border-radius: 99px;
  border: 1px solid var(--border);
}
.cd-val { color: var(--accent); font-weight: 700; }
.cd-lbl { font-size: 0.75rem; color: var(--text-muted); margin-right: 0.2rem; text-transform: uppercase; }
.cd-sep { color: var(--text-muted); margin: 0 0.2rem; }

/* ===== PROFILE HEADER ===== */
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  gap: 20px;
}
.ph-search {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 300px;
  max-width: 100%;
}
.ph-search.loading {
  opacity: 0.7;
  pointer-events: none;
}
.ph-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}
.ph-search.error {
  border-color: #ff4d4d;
  box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.2);
}
.ph-search.error #ign-input::placeholder {
  color: #ff4d4d;
}
#ign-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}
#ign-search-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
#ign-search-btn:hover {
  color: var(--accent);
}
.ph-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 16px 6px 6px;
  border-radius: 40px;
  border: 1px solid var(--border);
  position: relative;
  animation: glideUp 0.3s ease-out;
}
.ph-avatar-wrap {
  width: 65px;
  height: 65px;
  margin: -12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
#ph-avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.ph-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ph-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.ph-details {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ph-clear-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s;
}
.ph-card:hover .ph-clear-btn {
  opacity: 1;
}
.ph-clear-btn:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

@media (max-width: 900px) {
  .profile-header {
    padding: 8px 12px;
    gap: 8px;
  }
  .ph-search {
    flex: 1;
    min-width: 100px;
    max-width: 300px;
  }
  .ph-card {
    flex-shrink: 0; /* Never shrink the character card, let the search bar compress instead */
  }
  .ph-name {
    font-size: 0.95rem;
  }
}

/* ===== MAIN LAYOUT ===== */
#main-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 100%;
  overflow: hidden;
}

/* ===== SIDEBAR ===== */
#sidebar {
  background: rgba(17, 19, 40, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}
#sidebar::-webkit-scrollbar { width: 4px; }
#sidebar::-webkit-scrollbar-track { background: transparent; }
#sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 99px; }
#sidebar::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.sb-section {
  padding: 1.5rem 1.2rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sb-daily-section {
  display: flex;
  flex-direction: column;
  padding-bottom: 2rem;
}

.sb-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.sb-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.sb-label-row .sb-label { margin-bottom: 0; }

/* Rank badge */
.sb-rank-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.sb-rank-img {
  width: 3.5rem; height: 3.5rem;
  object-fit: contain;
  transition: opacity 0.3s;
  animation: floatBadge 3s ease-in-out infinite;
}
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.sb-rank-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(255,255,255,0.2);
}
.sb-rank-pts { font-size: 0.85rem; color: var(--text-sub); }

.sb-progress-wrap {
  height: 0.4rem;
  background: rgba(255,255,255,0.05);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}
.sb-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 10px rgba(255,107,53,0.5);
}
.sb-next-rank { font-size: 0.8rem; color: var(--text-muted); }

/* Points */
.sb-points-val {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 20px rgba(255,107,53,0.3);
}
.sb-pts-sub { font-size: 0.85rem; color: var(--text-muted); }

/* Input */
.sb-input-row { display: flex; gap: 0.5rem; }
.sb-input {
  flex: 1;
  min-width: 0;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-radius: var(--rs);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: 0.6rem 0.8rem;
  outline: none;
  transition: all var(--transition);
}
.sb-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,107,53,0.2); }
.sb-input::placeholder { color: var(--text-muted); }
.sb-apply-btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
  border: none;
  border-radius: var(--rs);
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0 1.2rem;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(255,107,53,0.3);
  flex-shrink: 0;
  white-space: nowrap;
}
.sb-apply-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,107,53,0.4); }

/* Reset btn */
.sb-reset-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.2rem;
  transition: all var(--transition);
}
.sb-reset-btn:hover { color: var(--accent); transform: rotate(-90deg); }

/* Daily checks */
.daily-checks {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.daily-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
  padding: 0.8rem;
  border-radius: var(--rs);
  transition: background var(--transition);
}
.daily-item:hover { background: rgba(255,255,255,0.05); }
/* ===== CUSTOM PRETTY CHECKBOXES ===== */
.daily-item input[type="checkbox"],
.step-item input[type="checkbox"],
.boss-check {
  appearance: none;
  -webkit-appearance: none;
  width: 1.4rem;
  height: 1.4rem;
  background: rgba(0,0,0,0.3);
  border: 2px solid var(--text-muted);
  border-radius: 6px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  margin-top: 0.1rem;
}

.daily-item input[type="checkbox"]:hover,
.step-item input[type="checkbox"]:hover,
.boss-check:hover {
  border-color: var(--accent);
  background: rgba(255,107,53,0.1);
}

.daily-item input[type="checkbox"]:checked,
.step-item input[type="checkbox"]:checked,
.boss-check:checked {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(255,107,53,0.5);
  animation: checkPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.daily-item input[type="checkbox"]:checked::after,
.step-item input[type="checkbox"]:checked::after,
.boss-check:checked::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 65%;
  background-position: center;
  background-repeat: no-repeat;
}

@keyframes checkPop {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.daily-item span { font-size: 0.95rem; color: var(--text-sub); transition: all var(--transition); line-height: 1.4; }
.daily-item:has(input:checked) span { text-decoration: line-through; color: var(--text-muted); }

/* ===== PANEL AREA ===== */
#panel-area {
  position: relative;
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-width: 0; /* CRITICAL: Prevents grid item from expanding beyond viewport and causing scroll loss */
}

.tab-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow-y: auto;
  overflow-x: auto; /* Changed from hidden to allow horizontal scroll on small screens */
}
.tab-panel.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.panel-inner {
  padding: 3rem 4rem 4.5rem 4rem;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 105rem;
  margin: 0 auto;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #b8bdff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
}
.panel-title-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ===== PATH TAB (MODERN VERTICAL DESIGN) ===== */
.path-modern-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: clamp(1300px, 90vw, 2000px);
  margin: 0 auto;
  padding: clamp(2rem, 3vw, 4rem) clamp(2rem, 5vw, 6rem) clamp(4rem, 5vw, 6rem);
}

.path-header-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.path-main-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(255,255,255,0.1);
}
.path-sub-title {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ===== 3-COLUMN PATH SELECTION GRID ===== */

.path-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem; /* Restored for pop-outs */
  width: 100%;
  min-width: 500px; /* Allow cards to aggressively compress to fit half a 1080p screen before forcing scroll */
}

.path-col-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: none;
  border-radius: 20px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08),
              inset 0 1px 1px rgba(255, 255, 255, 0.15),
              0 8px 32px rgba(0, 0, 0, 0.3);
  margin-top: 40px;
}

.path-col-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15),
              inset 0 1px 1px rgba(255, 255, 255, 0.3),
              0 12px 40px rgba(0, 0, 0, 0.5);
}

.path-col-img-wrap {
  width: 100%;
  height: clamp(120px, 10vw, 200px);
  background: transparent;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  border-bottom: none;
}

.path-col-img {
  width: 90%;
  height: clamp(200px, 16vw, 300px);
  object-fit: contain;
  object-position: bottom;
  margin-top: clamp(-60px, -5vw, -100px);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
}

.path-col-card:hover .path-col-img {
  transform: scale(1.1) translateY(-10px);
}

.dual-img-wrap {
  position: relative;
  width: 100%;
  height: clamp(120px, 10vw, 200px);
}

.dual-img-left, .dual-img-right {
  position: absolute;
  bottom: 0;
  object-fit: contain;
  object-position: bottom;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
}

.dual-img-left {
  width: 92%;
  height: clamp(230px, 18vw, 340px);
  left: -22%;
  bottom: clamp(-15px, -1vw, -25px);
  z-index: 2;
}

.dual-img-right {
  width: 75%;
  height: clamp(180px, 14vw, 280px);
  right: -15%;
  z-index: 1;
}

.path-col-card:hover .dual-img-left {
  transform: scale(1.1) translateY(-10px) translateX(-5px) rotate(-2deg);
}

.path-col-card:hover .dual-img-right {
  transform: scale(1.1) translateY(-10px) translateX(5px) rotate(2deg);
}

.fallback-img {
  object-fit: contain;
  opacity: 0.3;
  filter: none;
}

.path-col-content {
  padding: clamp(1.5rem, 2vw, 3rem);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.path-col-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.5vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 1.2rem;
}

.path-col-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 1.2rem;
}

.path-col-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.path-col-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: clamp(1rem, 1.1vw, 1.25rem);
  color: var(--text-sub);
  line-height: 1.5;
}

.path-col-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: -2px;
  color: var(--accent);
  font-size: 1.5rem;
}

/* Responsive Adjustments for Path Cards */


/* ===== PATH DETAIL VIEW ===== */
.path-detail-view {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: fadeIn 0.4s ease;
}

.path-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition);
  align-self: flex-start;
}
.path-back-btn:hover {
  color: var(--accent);
}

.path-detail-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-top: 1rem;
}

/* Accordion Container */
.path-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.path-phase-header {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1.5rem 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 0.5rem;
}

.path-accordion {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: none;
  border-radius: 12px;
  overflow: visible;
  transition: all var(--transition);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08),
              inset 0 1px 1px rgba(255, 255, 255, 0.15),
              0 8px 24px rgba(0, 0, 0, 0.3);
}
.path-accordion.open {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15),
              inset 0 1px 1px rgba(255, 255, 255, 0.2),
              0 12px 32px rgba(0, 0, 0, 0.4);
}

.path-accordion-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  text-align: left;
}
.path-accordion-btn:hover {
  background: rgba(255,255,255,0.03);
}
.path-accordion-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.path-accordion-counter {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(255,107,53,0.1);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,107,53,0.2);
}
.path-accordion-icon {
  transition: transform 0.3s ease;
  color: var(--text-muted);
}
.path-accordion.open .path-accordion-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.path-accordion-content {
  display: none;
  padding: 0 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 0 0 12px 12px;
}
.path-accordion.open .path-accordion-content {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Steps inside accordion */
.path-step-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
  position: relative;
}
.path-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.4s ease, background 0.3s ease, opacity 0.4s ease, box-shadow 0.3s ease;
  position: relative;
}
.path-step-item.active-mission {
  transform: scale(1.02);
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.15) 0%, rgba(10, 132, 255, 0.05) 100%);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  box-shadow: inset 3px 0 0 0 rgba(10, 132, 255, 1),
              inset 0 0 0 1px rgba(255, 255, 255, 0.1),
              inset 0 1px 2px rgba(255, 255, 255, 0.3),
              0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 2;
}
.path-step-item.active-mission::before {
  content: '▶';
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(10, 132, 255, 1);
  font-size: 1.2rem;
  text-shadow: 0 0 10px rgba(10, 132, 255, 0.5);
  animation: premiumBounce 2s infinite ease-in-out;
  pointer-events: none;
}
@keyframes premiumBounce {
  0%, 100% { transform: translate(0, -50%); opacity: 0.7; }
  50% { transform: translate(6px, -50%); opacity: 1; }
}
.path-step-item.active-mission .path-step-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.path-step-item.active-mission:hover {
  transform: scale(1.02) translateX(4px);
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.2) 0%, rgba(10, 132, 255, 0.08) 100%);
  box-shadow: inset 3px 0 0 0 rgba(10, 132, 255, 1),
              inset 0 0 0 1px rgba(255, 255, 255, 0.15),
              inset 0 1px 2px rgba(255, 255, 255, 0.4),
              0 12px 35px rgba(0, 0, 0, 0.6);
}
.path-step-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}
.path-step-item.done {
  opacity: 0.5;
  filter: grayscale(1);
}
.path-step-item input[type="checkbox"] {
  display: none;
}

.path-step-text {
  font-size: 1.05rem;
  color: var(--text-sub);
  line-height: 1.6;
  position: relative;
  display: inline-block;
  overflow: visible;
  transition: text-decoration-color 0.3s ease-out;
}

.path-step-item.dismissing {
  transform: translateX(100px);
  opacity: 0;
  pointer-events: none;
}
.path-step-item.dismissing .path-step-text {
  text-decoration: line-through;
}

/* Final done state — no animation, just grey */
.path-step-item.done .path-step-text {
  color: var(--text-muted);
  opacity: 0.35;
  text-decoration: line-through;
  text-decoration-color: currentColor;
}


@keyframes strikeFadeIn {
  0%   { text-decoration-color: transparent; }
  100% { text-decoration-color: currentColor; }
}

@keyframes textGlowFlash {
  0%   { color: var(--text-sub); text-shadow: none; }
  10%  { color: #ffffff; text-shadow: 0 0 15px rgba(255,255,255,0.9), 0 0 30px rgba(255,255,255,0.5); }
  25%  { color: #ffffff; text-shadow: 0 0 10px rgba(255,255,255,0.7), 0 0 20px rgba(255,255,255,0.3); }
  50%  { color: #c0c0d0; text-shadow: 0 0 5px rgba(255,255,255,0.2); }
  100% { color: var(--text-muted); text-shadow: none; opacity: 0.35; }
}

/* Particles spawned by JS */
.dismiss-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 20;
  background: radial-gradient(circle, #ffffff, rgba(255,240,220,0.6));
  box-shadow: 0 0 6px 2px rgba(255,255,255,0.8), 0 0 12px 4px rgba(255,255,255,0.3);
  animation: particleFloat var(--dur) ease-out forwards;
}

@keyframes particleFloat {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  40%  { opacity: 0.8; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* Subheaders within content */
.path-step-subheader {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--accent);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.path-step-miniheader {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-sub);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.path-step-info {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.6;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.2);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.path-step-info strong {
  color: var(--text-primary);
}

.path-step-tip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 193, 7, 0.06);
  border-left: 4px solid #ffc107;
  border-radius: 6px;
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-sub);
  line-height: 1.6;
}
.path-step-tip-icon {
  width: 24px;
  height: 24px;
  color: #ffc107;
  flex-shrink: 0;
  margin-top: 2px;
}

.path-step-save {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(41, 182, 246, 0.06);
  border-left: 4px solid #29b6f6;
  border-radius: 6px;
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-sub);
  line-height: 1.6;
}
.path-step-save-icon {
  width: 24px;
  height: 24px;
  color: #29b6f6;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== BOSS TAB ===== */
.boss-pts-display { display: flex; align-items: baseline; gap: 0.8rem; margin-left: auto; }
.boss-pts-num { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--accent); }
.boss-pts-lbl { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }

.boss-info-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: -10px;
  margin-bottom: 20px;
  color: var(--text-sub);
  font-size: 0.9rem;
}
.boss-info-note strong { color: var(--accent); }


.reset-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-sub);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: all var(--transition);
}
.reset-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); border-color: rgba(255,255,255,0.2); }

.boss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  align-content: start;
}

.boss-group-header {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 2rem 0 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}
.boss-group-header:first-child { padding-top: 0; }

.boss-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: none;
  border-radius: var(--rs);
  padding: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  --diff-color: #10b981;
  box-shadow: inset 3px 0 0 0 var(--diff-color),
              inset 0 0 0 1px rgba(255, 255, 255, 0.08),
              inset 0 1px 1px rgba(255, 255, 255, 0.15),
              0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}
.boss-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  transform: translateX(2px);
  box-shadow: inset 4px 0 0 0 var(--diff-color),
              inset 0 0 0 1px rgba(255, 255, 255, 0.2),
              inset 0 1px 1px rgba(255, 255, 255, 0.25),
              0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Glowing checked state matching selected difficulty */
.boss-card.checked {
  opacity: 1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, color-mix(in srgb, var(--diff-color) 12%, transparent) 100%);
  box-shadow: inset 3px 0 0 0 var(--diff-color),
              inset 0 0 0 1px var(--diff-color),
              inset 0 1px 1px rgba(255, 255, 255, 0.2),
              0 0 16px color-mix(in srgb, var(--diff-color) 25%, transparent);
}
.boss-card.checked .boss-name {
  text-decoration: none;
  color: var(--text-primary);
  text-shadow: 0 0 8px color-mix(in srgb, var(--diff-color) 40%, transparent);
}
.boss-card.checked .boss-check:checked {
  background: var(--diff-color);
  border-color: var(--diff-color);
  box-shadow: 0 0 12px color-mix(in srgb, var(--diff-color) 50%, transparent);
}

/* Hover options overlay for boss cards */
.boss-hover-rewards {
  position: absolute;
  inset: 0;
  background: rgba(13, 15, 30, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  transform: translateY(101%);
  transition: transform var(--transition);
  z-index: 5;
}

.boss-card:hover .boss-hover-rewards {
  transform: translateY(0);
}

.boss-diff-btn {
  flex: 1;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: all var(--transition);
  border-right: 1px solid var(--border);
  padding: 0.4rem;
}

.boss-diff-btn:last-child {
  border-right: none;
}

.boss-diff-btn:hover {
  background: color-mix(in srgb, var(--btn-diff-color) 12%, transparent);
}

.boss-diff-btn.active {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--btn-diff-color) 25%, transparent) 0%, color-mix(in srgb, var(--btn-diff-color) 8%, transparent) 100%);
  box-shadow: inset 0 0 10px color-mix(in srgb, var(--btn-diff-color) 15%, transparent);
}

.btn-diff-name {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 99px;
  color: var(--btn-diff-color);
  background: color-mix(in srgb, var(--btn-diff-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--btn-diff-color) 25%, transparent);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: all var(--transition);
}

.boss-diff-btn.active .btn-diff-name {
  background: var(--btn-diff-color);
  color: #fff;
  border-color: var(--btn-diff-color);
  box-shadow: 0 0 8px color-mix(in srgb, var(--btn-diff-color) 60%, transparent);
}

.btn-diff-rewards {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: flex-start;
}

.btn-reward-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-sub);
}

.btn-reward-icon {
  width: 0.9rem;
  height: 0.9rem;
  object-fit: contain;
}

.boss-diff-btn.active .btn-reward-item {
  color: var(--text-primary);
}

.boss-meta-unselected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.8rem;
  margin-top: 0.3rem;
}

.unselected-diff-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.boss-pts-mini {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-sub);
  font-weight: 600;
}

/* Rank rewards display in rank tracker */
.rank-rewards-mini {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-top: 0.4rem;
  padding-left: 0.8rem;
  border-left: 2px solid var(--purple);
  line-height: 1.4;
}

.rank-rewards-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding-left: 0.8rem;
  border-left: 2px solid var(--purple);
}

.rank-reward-item {
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.3;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.rank-reward-bullet {
  color: var(--purple);
  font-size: 0.7rem;
  opacity: 0.8;
  margin-top: 0.1rem;
}

.rank-header-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.rank-columns-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 0.8rem;
}

.rank-col {
  flex: 1;
  min-width: 15rem;
}

.rank-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
}

.rank-buffs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem 1rem;
  padding-left: 0.8rem;
  border-left: 2px solid var(--accent);
}

.rank-buff-item {
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.rank-buff-bullet {
  color: var(--accent);
  font-size: 0.75rem;
}



.boss-img { width: 3.5rem; height: 3.5rem; object-fit: contain; background: rgba(0,0,0,0.3); border-radius: 0.4rem; padding: 0.2rem; }
.boss-details { flex: 1; min-width: 0; }
.boss-name { font-size: 1.05rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.3rem; }
.boss-meta { display: flex; align-items: center; gap: 0.6rem; }
.boss-diff {
  font-size: 0.75rem; font-weight: 700; padding: 0.1rem 0.6rem; border-radius: 99px;
  color: var(--diff-color); background: color-mix(in srgb, var(--diff-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--diff-color) 25%, transparent);
}
.boss-pts { font-family: var(--font-mono); font-size: 0.8rem; color: var(--gold); }
.boss-lvl { font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-mono); }

/* ===== RANK TAB ===== */
.rank-ladder {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 60rem;
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.2rem 2rem;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.rank-row.achieved { opacity: 0.6; box-shadow: none; }
.rank-row.current-rank {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 30px rgba(255,107,53,0.15);
  transform: scale(1.02);
}

.rank-img { width: 4rem; height: 4rem; object-fit: contain; }
.rank-info { flex: 1; min-width: 150px; }
.rank-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.3rem; }
.rank-pts-req { font-size: 0.9rem; color: var(--text-sub); font-family: var(--font-mono); }

.rank-bar-wrap { width: 12rem; height: 0.5rem; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
.rank-bar-fill { height: 100%; border-radius: 99px; transition: width 0.8s ease; }

.rank-badge-label {
  font-size: 0.8rem; font-weight: 700; padding: 0.4rem 1rem; border-radius: 99px; min-width: 6rem; text-align: center;
}

/* ===== TIPS TAB ===== */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}

.tip-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: none;
  border-radius: var(--r);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08),
              inset 0 1px 1px rgba(255, 255, 255, 0.15),
              0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}
.tip-card:hover { 
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  transform: translateY(-2px); 
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2),
              inset 0 1px 1px rgba(255, 255, 255, 0.3),
              0 12px 30px rgba(0, 0, 0, 0.5); 
}

.tip-icon { width: 3.5rem; height: 3.5rem; background: var(--accent-dim); border-radius: var(--rs); display: flex; align-items: center; justify-content: center; }
.tip-icon svg { width: 1.8rem; height: 1.8rem; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tip-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--text-primary); letter-spacing: 0.04em; }
.tip-card p { font-size: 1rem; color: var(--text-sub); line-height: 1.6; }

/* ===== RESOURCES TAB ===== */
.resources-list { display: flex; flex-direction: column; gap: 1rem; max-width: 65rem; }
.resource-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: none;
  border-radius: var(--r);
  padding: 1.5rem 2rem;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08),
              inset 0 1px 1px rgba(255, 255, 255, 0.15),
              0 8px 24px rgba(0, 0, 0, 0.3);
}
.resource-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2),
              inset 0 1px 1px rgba(255, 255, 255, 0.3),
              0 12px 30px rgba(0, 0, 0, 0.5);
}
.res-icon { width: 4rem; height: 4rem; background: var(--accent-dim); border-radius: var(--rs); display: flex; align-items: center; justify-content: center; }
.res-icon svg { width: 2rem; height: 2rem; stroke: var(--accent); }
.res-info { flex: 1; }
.res-title { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.4rem; }
.res-sub { font-size: 0.95rem; color: var(--text-sub); }
.res-arrow { color: var(--text-muted); font-size: 1.5rem; transition: all var(--transition); }
.resource-card:hover .res-arrow { transform: translateX(5px); color: var(--accent); }

/* ===== PATH GUIDE (MILESTONES) ===== */

.panel-inner-path {
  padding: 2.5rem 3rem;
  gap: 1.5rem;
}

.path-guide-header {
  flex-shrink: 0;
}

.path-guide-subtitle {
  font-size: 1rem;
  color: var(--text-sub);
  margin-top: 0.8rem;
  max-width: 70rem;
  line-height: 1.7;
}

.milestone-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: 0.5rem;
  padding-bottom: 1rem;
}

/* ---- Milestone Card ---- */
.milestone-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.milestone-card:hover {
  border-color: rgba(255,255,255,0.15);
}
.milestone-card.open {
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

/* ---- Milestone Header ---- */
.milestone-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 1.8rem;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
  position: relative;
}
.milestone-header::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: currentColor;
  opacity: 0.6;
  transition: opacity var(--transition);
  border-radius: 0 2px 2px 0;
}
.milestone-card.open .milestone-header::before { opacity: 1; }
.milestone-header:hover { background: rgba(255,255,255,0.03); }
.milestone-card.open .milestone-header { background: rgba(255,255,255,0.04); }

.milestone-rank-img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.2));
  flex-shrink: 0;
}

.milestone-header-info {
  flex: 1;
  min-width: 0;
}

.milestone-rank-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.milestone-tagline {
  font-size: 0.95rem;
  color: var(--text-sub);
  margin-top: 0.25rem;
  line-height: 1.5;
}

.milestone-pts-req {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.milestone-progress-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.milestone-chevron {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: transform var(--transition);
  width: 1.5rem;
  text-align: center;
}

/* ---- Milestone Body (accordion) ---- */
.milestone-body {
  display: none;
  border-top: 1px solid var(--border);
  animation: fadeInDown 0.3s ease;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.milestone-card.open .milestone-body {
  display: block;
}

.milestone-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

/* ---- Individual Section ---- */
.milestone-section {
  padding: 1.8rem 2rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.milestone-section:nth-child(2n) { border-right: none; }
.milestone-section:nth-last-child(-n+2) { border-bottom: none; }
/* If only 1 section in last row, span full width */
.milestone-section:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: none;
}

.milestone-section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}

.milestone-sec-icon {
  font-size: 1.2rem;
  line-height: 1;
}

/* ---- Steps ---- */
.milestone-steps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.milestone-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--rs);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  background: rgba(255,255,255,0.02);
}
.milestone-step-item:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
  transform: translateX(4px);
}
.milestone-step-item input[type="checkbox"] {
  margin-top: 0.15rem;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
  cursor: pointer;
}
.milestone-step-item span {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.55;
}
.milestone-step-item.done {
  opacity: 0.45;
  background: rgba(0,0,0,0.15);
}
.milestone-step-item.done span {
  text-decoration: line-through;
  color: var(--text-muted);
}
.milestone-step-item.done:hover {
  transform: none;
  border-color: transparent;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .milestone-sections { grid-template-columns: 1fr; }
  .milestone-section { border-right: none !important; }
  .milestone-section:last-child:nth-child(odd) { grid-column: 1; }
}

/* ===== RESPONSIVE TOPBAR ===== */
@media (max-width: 1300px) {
  .tb-event { display: none; } /* Free up space by hiding the date string */
  .tb-tabs { margin-left: 0.5rem; gap: 0.2rem; }
  #topbar { padding: 0 0.5rem; gap: 0.5rem; }
}

@media (max-width: 1200px) {
  /* Extreme Squeeze for Cards so they fit half-1080p without sliding */
  .path-col-card {
    padding: 130px 1rem 1.5rem !important;
  }
  .path-grid-3col {
    gap: 1rem !important;
  }
  .path-col-title {
    font-size: 1.1rem !important;
  }
  .path-col-list li {
    font-size: 0.85rem !important;
    padding-left: 1rem !important;
  }
  .path-col-img-wrap {
    height: 100px !important;
  }
  .path-col-img {
    height: 140px !important;
  }
  .dual-img-left {
    height: 140px !important;
    bottom: -10px !important;
  }
  .dual-img-right {
    height: 110px !important;
  }
  .tb-countdown { font-size: 0.9rem; padding: 0.4rem 0.8rem; }
  .tab-btn { font-size: 0.9rem; padding: 0.5rem 0.8rem; }
  .tab-btn svg { width: 16px; height: 16px; }
  .tb-logo-container { width: 10rem; }
  .tb-logo-banner-img { height: 7rem; width: 7rem; }
}
