body.page-ranks .page-title {
  text-align: center;
  font-weight: 900;
  font-size: 2rem;
  margin: 2rem 0 1rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.45);
}

body.page-ranks .rank-section {
  padding: 2rem 1rem 3rem;
}

body.page-ranks .divider {
  width: 80%;
  height: 2px;
  background: var(--border);
  margin: 2rem auto;
  border-radius: 1px;
}

body.page-ranks .tabs .tab-btn {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Inter, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  border-radius: 10px 10px 0 0;
  letter-spacing: 0.45px;
  transition: all 160ms ease;
  border-bottom: none;
}

body.page-ranks .tabs .tab-btn.active,
body.page-ranks .tabs .tab-btn[aria-selected="true"] {
  color: var(--panel);
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  border-color: var(--accent-strong);
  transform: translateY(-1px);
}

body.page-ranks .rank-group-title {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Inter, sans-serif;
  color: var(--accent);
  font-size: var(--rs-group-size, 1.05rem);
  font-weight: 800;
  text-align: left;
  margin: 0 0 1.5rem 0;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body.page-ranks .rank-group {
  padding: 2rem 1rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--panel), var(--card));
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

body.page-ranks .rank-group > header {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  background: transparent;
  position: relative;
  z-index: 1;
}

body.page-ranks .rank-group .rank-cards {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

body.page-ranks .rank-group .rank-cards .card {
  width: 220px;
  min-height: 240px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.16s ease;

  background: linear-gradient(180deg, var(--panel), var(--card));
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

body.page-ranks .rank-group .rank-cards .card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 44px rgba(81,35,168,0.28); 
  background: linear-gradient(145deg,
    color-mix(in srgb, var(--accent) 6%, var(--card) 94%),
    var(--card));
  border-color: color-mix(in srgb, var(--accent) 12%, var(--border));
}

body.page-ranks .rank-group .rank-cards .card::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 10px;
  background: radial-gradient(ellipse at center, rgba(127,87,255,0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}
body.page-ranks .rank-group .rank-cards .card:hover::after { opacity: 1; }

body.page-ranks .card-content {
  z-index: 2;
  position: relative;
  text-align: center;
}

body.page-ranks .card-icon {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
}
body.page-ranks .rank-group .rank-cards .card:hover .card-icon {
  transform: scale(1.18) rotate(-5deg);
}

body.page-ranks .card-title {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Inter, sans-serif;
  font-size: var(--rs-card-title, 1.05rem);
  font-weight: 700;
  margin: 0.25rem 0;
  letter-spacing: 0.5px;
  color: var(--text);
}
body.page-ranks .card-requirement {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

@keyframes ranks-shimmer { 0% { left: -85%; } 100% { left: 125%; } }
body.page-ranks .rank-group .rank-cards .card.staff::before,
body.page-ranks .rank-group.leadership .rank-cards > .card:last-child::before {
  content: "";
  position: absolute;
  top: 0;
  left: -85%;
  width: 55%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: ranks-shimmer 1.9s linear infinite;
  pointer-events: none;
  z-index: 1;
}

body.page-ranks #tab-staff .stats-panel > header {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  background: transparent !important;
}

body.page-ranks #tab-staff .stats-title {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Inter, sans-serif;
  font-weight: 800;
  color: var(--accent);
  text-align: left;
  margin: 0;
  text-decoration: none;
  text-transform: uppercase;
  font-size: var(--rs-group-size, 1.05rem);
}

body.page-ranks .staff-title .section-title {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Inter, sans-serif;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  margin: 0;
  text-decoration: none;
  text-transform: uppercase;
  font-size: var(--rs-card-title, 1.05rem);
}

body.page-ranks #tab-staff .muted {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Inter, sans-serif;
  color: var(--text);
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
  margin: 0.25rem 0 0.9rem 0;
  line-height: 1.6;
}

body.page-ranks .staff-section {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(180deg, var(--panel), var(--card));
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.12s;
}
body.page-ranks .staff-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(81,35,168,0.18);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 4%, var(--card) 96%), var(--card));
  border-color: color-mix(in srgb, var(--accent) 8%, var(--border));
}

body.page-ranks .staff-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

body.page-ranks .staff-section > header {
  background: transparent !important;
  border: none !important;
  padding: 0 0 1rem 0 !important;
  border-bottom: 2px solid var(--accent);
}

body.page-ranks .staff-list .staff-member {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 6px 14px rgba(0,0,0,0.10);
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease, border-color 0.12s;
}
body.page-ranks .staff-list .staff-member:hover {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent) 6%, rgba(255,255,255,0.02) 94%),
    rgba(0,0,0,0.02));
  border-color: color-mix(in srgb, var(--accent) 10%, rgba(255,255,255,0.03));
  box-shadow: 0 10px 28px rgba(81,35,168,0.12);
  transform: translateY(-3px);
}
body.page-ranks .staff-list .staff-member span {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Inter, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
body.page-ranks .staff-list .staff-member .staff-links {
  display: flex;
  gap: 0.25rem;
}
body.page-ranks .staff-list .staff-member .staff-links img {
  width: 18px;
  height: 18px;
  opacity: 0.95;
}
body.page-ranks .staff-list .staff-member .staff-links img:hover { opacity: 1; }
.staff-title img.rank-icon { width: 38px; height: 38px; }

body.page-ranks .rank-group > header,
body.page-ranks #tab-staff .stats-panel > header,
body.page-ranks .staff-section > header {
  border-bottom: 2px solid var(--accent) !important;
}

@media (max-width: 900px) {
  body.page-ranks .rank-group .rank-cards { justify-content: center; gap: 1rem; }
  body.page-ranks .card { width: calc(50% - 1rem); }
}
@media (max-width: 520px) {
  body.page-ranks .card { width: 100%; }
  body.page-ranks .page-title { font-size: 1.6rem; margin: 1.25rem 0; }
}
